Kory Wheatley
2008-Jan-10 19:54 UTC
[zfs-code] Break a ZFS mirror and concatenate the disks
We have a ZFS mirror setup of two 73GB''s disk, but we are running out of space. I want to break the mirror and join the disk to have a pool of 146GB, and of course not lose the data doing this. What are the commands? To break the mirror I would do zpool detach moodle c1t3d0 NAME STATE READ WRITE CKSUM moodle ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t2d0 ONLINE 0 0 0 c1t3d0 ONLINE 0 0 0 Then could I do zpool add moodle c1t3d0 without losing the data? -- This messages posted from opensolaris.org
George Wilson
2008-Jan-10 20:27 UTC
[zfs-code] Break a ZFS mirror and concatenate the disks
Kory Wheatley wrote:> We have a ZFS mirror setup of two 73GB''s disk, but we are running out of space. I want to break the mirror and join the disk to have a pool of 146GB, and of course not lose the data doing this. What are the commands? > To break the mirror I would do > > zpool detach moodle c1t3d0 > > NAME STATE READ WRITE CKSUM > moodle ONLINE 0 0 0 > mirror ONLINE 0 0 0 > c1t2d0 ONLINE 0 0 0 > c1t3d0 ONLINE 0 0 0 > > Then could I do > zpool add moodle c1t3d0 > > without losing the data? > -- > This messages posted from opensolaris.org > _______________________________________________ > zfs-code mailing list > zfs-code at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-codeKory, You can do exactly what you suggested to stripe the data across your two drives without losing data. Obviously, if your data is critical to you, then you should consider investing in two additional drives so you can mirror them them later. It''s worth noting that once you go to a stripe you won''t be able to remove that stripe later. BTW, you should send email to zfs-discuss at opensolaris.org if you need more assistance as there are more subscribers on that forum. This one devoted to the zfs code. Thanks, George
Kory Wheatley
2008-Jan-10 21:24 UTC
[zfs-code] Break a ZFS mirror and concatenate the disks
Currently c2t2d0 c2t3d0 are setup in a mirror. I want to break the mirror and save the data on c2t2d0 (which both drives are 73g. Then I want to concatenate c2t2do to c2t3d0 so I have a pool of 146GB no longer in a mirror just concatenated. But since their mirror right now I need the data save on one disk so I don''t lose everything. I don''t need to add new disks that not an option I want to break the mirror so I can expand the disks together in a pool but save the data. -- This messages posted from opensolaris.org