From: cindy on 30 Apr 2010 18:21 On Apr 30, 2:35 pm, jay <bigcra...(a)gmail.com> wrote: > i have a mirrored zfs filesystem, but it's a mirror > of the full disk -- so there's no issues w/ slice > sizes or disk partitioning. > > i want to split the mirror and then re-mount the > now "non-operating" part. once i detach the > mirror i can remove the device. all that > goes just fine. (maybe.) i thought the thing > to do would be to come up with a new pool > and try to put the device in there. but that > empties the prior contents of the disk. > > this begins to look impossible. is there > something i'm missing? Jay, Which Solaris release is this? Did you create a mirrored ZFS storage pool of two disks or are you doing something from a lower level? If you are running a recent OpenSolaris build, you can use the zpool split feature to split a mirrored pool. For example, a pool of two mirrored disks would be split into identical pools of one disk each. It might help to provide the zpool output of the existing pool so we can see what you have. Thanks, Cindy
From: ITguy on 2 May 2010 15:57 > i have a mirrored zfs filesystem, but it's a mirror > of the full disk -- so there's no issues w/ slice > sizes or disk partitioning. > > i want to split the mirror and then re-mount the > now "non-operating" part. once i detach the > mirror i can remove the device. If you are removing the disk in order to move it to another physical machine, DON'T detach the disk from the mirror. Just use something like cfgadm to spin down the disk and then remove it. The local ZFS pool will remain operational, although in a degraded state. The removed disk can then be forcefully imported on the other machine.
From: jay on 3 May 2010 12:30 On Apr 30, 5:21 pm, cindy <cindy.swearin...(a)sun.com> wrote: > On Apr 30, 2:35 pm, jay <bigcra...(a)gmail.com> wrote: > > > i have a mirrored zfs filesystem, but it's a mirror > > of the full disk -- so there's no issues w/ slice > > sizes or disk partitioning. > > > i want to split the mirror and then re-mount the > > now "non-operating" part. once i detach the > > mirror i can remove the device. all that > > goes just fine. (maybe.) i thought the thing > > to do would be to come up with a new pool > > and try to put the device in there. but that > > empties the prior contents of the disk. > > > this begins to look impossible. is there > > something i'm missing? > > Jay, > > Which Solaris release is this? > > Did you create a mirrored ZFS storage pool of two > disks or are you doing something from a lower level? > > If you are running a recent OpenSolaris build, you can > use the zpool split feature to split a mirrored pool. For > example, a pool of two mirrored disks would be split > into identical pools of one disk each. > > It might help to provide the zpool output of the existing > pool so we can see what you have. > > Thanks, > > Cindy (sigh) that sounds like exactly what i need, but it's not opensolaris. per /etc/release: Solaris 10 5/09 s10s_u7wos_08 SPARC i did the zpool upgrade rpool so i'm running version 15 of zpool/zfs. creepy# zpool status pool: rpool state: ONLINE status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state. action: Wait for the resilver to complete. scrub: resilver in progress for 0h11m, 68.41% done, 0h5m to go config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t0d0s0 ONLINE 0 0 0 c1t1d0s0 ONLINE 0 0 0 6.63G resilvered errors: No known data errors thanks, though. i run solaris at home. maybe i should switch to opensolaris. j.
From: jay on 3 May 2010 18:03 On May 2, 2:57 pm, ITguy <southa...(a)gmail.com> wrote: > > i have a mirrored zfs filesystem, but it's a mirror > > of the full disk -- so there's no issues w/ slice > > sizes or disk partitioning. > > > i want to split the mirror and then re-mount the > > now "non-operating" part. once i detach the > > mirror i can remove the device. > > If you are removing the disk in order to move it to another physical > machine, DON'T detach the disk from the mirror. Just use something > like cfgadm to spin down the disk and then remove it. The local ZFS > pool will remain operational, although in a degraded state. The > removed disk can then be forcefully imported on the other machine. ahh... how? i read the man page. remove seemed likely, but: creepy# cfgadm -c remove c1::dsk/c1t1d0 cfgadm: Configuration operation not supported creepy# cfgadm -c disconnect c1::dsk/c1t1d0 cfgadm: Hardware specific failure: operation not supported for SCSI device creepy# cfgadm -c unconfigure c1::dsk/c1t1d0 cfgadm: Hardware specific failure: failed to unconfigure SCSI device: I/O error thanks. zfs is still pretty new to me. j.
From: ITguy on 3 May 2010 20:13
> > > i have a mirrored zfs filesystem, but it's a mirror > > > of the full disk -- so there's no issues w/ slice > > > sizes or disk partitioning. > > > > i want to split the mirror and then re-mount the > > > now "non-operating" part. once i detach the > > > mirror i can remove the device. all that > > > goes just fine. (maybe.) i thought the thing > > > to do would be to come up with a new pool > > > and try to put the device in there. but that > > > empties the prior contents of the disk. What does splitting the mirror do for you that a snapshot/clone does not? If you really need the additional space, you can snapshot, detach a mirror, create a new second pool from the detached disk, and zfs send/receive a copy over to the new pool. Not as efficient as a zpool split, but gets the job done. |