Personal tools
You are here: Home Issue tracker Split Pool Disappears If -R Option isn't Used

#139 — Split Pool Disappears If -R Option isn't Used

State Unconfirmed
Version: 0.7.0
Area Process
Issue type Bug
Severity Medium
Submitted by (anonymous)
Submitted on Nov 08, 2011
Responsible
Target release:
Return to tracker
Last modified on Nov 08, 2011
Additionally, splitting a pool should mount
the split pool as the pool name under slash
by default unless the -R option is used.

Created a mirrored pool.
Added an additional disk to each mirror.
Split the mirror without using -R.
zpool status
Added an additional disk to each mirror.
Split the mirror using -R.
zpool status
export mirror
import mirror
zpool status
Steps to reproduce:
zpool create -f tank \
 mirror `pwd`/vdev00 `pwd`/vdev01 \
 mirror `pwd`/vdev02 `pwd`/vdev03

zpool attach -f tank `pwd`/vdev00 `pwd`/vdev06
zpool attach -f tank `pwd`/vdev02 `pwd`/vdev07

# Unless the -R option is provided, the split pool
# disappears (bug?)
zpool split tank tank-backup

# show original and MISSING split pool
zpool status

# Reattach disk to mirrors
zpool attach -f tank `pwd`/vdev00 `pwd`/vdev06
zpool attach -f tank `pwd`/vdev02 `pwd`/vdev07

zpool split -R /bak tank tank-backup

# show original and split pool
# original: /tank
# split pool: /bak/tank-backup
zpool status

# This last zpool split should mount the split pool
# on a directory called /tank-backup if the -R option
# isn't used.

# Why?
# Using the split which uses the -R option,
# and exporting the tank-backup pool and then
# importing the pool, the default import command
# will mount the mirror under the mirror name,
# /tank-backup in this case.

zpool export tank-backup
zpool import tank-backup -d `pwd`

# show original and split pool
# (split pool is mounted on /tank-backup)
zpool status