On Mar 29, 2009, at 12:17, Michael Shadle wrote:
Okay so riddle me this - can I create a raidz2 using the new disks
and move all the data from the existing zdev to it. Then recreate a
raidz2 this time using the old 7 disks?
And have them all stay in the same Zpool?
Yes, I believe so.
Create new pool, move data to it (zfs send/recv), destroy old RAID-Z1
pool.
At this point you would have one pool with your data, and a bunch of
unused disks. You could then use the old disks to create a new RAID-Z2
pool and do another zfs send/recv.
Side note: does the port I plug the drive into matter on the
controller? Does it have to be the same drive lineup or does it work
based on drive uuid or something like that?
UUIDs are used, so placement shouldn't matter. When you do a 'zpool
import poolX' the ZFS codes to all the disks accessible by the system
and "tastes" them to see if they're party of "poolX".
If you want to play around with this, what you can actually do it
using plain files instead of disks. The ZFS commands work just as well
on files:
# mkdir /zfstest
# mkfile 200m /zfstest/myfile1
# mkfile 200m /zfstest/myfile2
# mkfile 200m /zfstest/myfile3
# mkfile 200m /zfstest/myfile4
# mkfile 200m /zfstest/myfile5
# zpool create testfiles raidz2 /zfstest/myfile1 zfstest/myfile2
zfstest/myfile3 zfstest/myfile4 zfstest/myfile5
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss