I found this posted on another site and its exactly what I want to do. I have 6 drives I want to replace with 6 larger drives. Can anyone help me with what commands I would need to run? Do I replace, Offline, etc? =================2) replace all the drives in the raidz, 1 by 1 (waiting for zfs to reconstruct the data on the new drive), and when you have replaced the final drive the zpool will "magically" increase in size. i.e replace the 500GB drives, 1 by 1, with 750GB drives, and when you finish the zpool effective storage will jump to 2250GB. ================= thanks, Chris -- This message posted from opensolaris.org
Cindy.Swearingen at Sun.COM
2008-Nov-12 16:34 UTC
[zfs-discuss] Replace Drives in RAIDZ Array
Chris, If you have created a RAIDZ storage pool then yes, you would use zpool replace to replace the existing disks with the larger disks. See the example below of a RAIDZ replacement example. A bug currently exists that means you might have to export and import the pool to see the expanded disk space. More device replacement tips are provided here: http://docs.sun.com/app/docs/doc/817-2271/gazgd?a=view Cindy # zpool status pool: pool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM pool ONLINE 0 0 0 raidz1 ONLINE 0 0 0 c7t40d0 ONLINE 0 0 0 c7t40d1 ONLINE 0 0 0 c7t40d2 ONLINE 0 0 0 # zpool replace pool c7t40d0 c3t1d0 # zpool status pool pool: pool state: ONLINE scrub: resilver completed after 0h0m with 0 errors on Wed Nov 12 09:18:02 2008 config: NAME STATE READ WRITE CKSUM pool ONLINE 0 0 0 raidz1 ONLINE 0 0 0 c3t1d0 ONLINE 0 0 0 c7t40d1 ONLINE 0 0 0 c7t40d2 ONLINE 0 0 0 errors: No known data errors zpool replace pool c7t40d1 c3t2d0 (and so on)... Chris wrote:> I found this posted on another site and its exactly what I want to do. I have 6 drives I want to replace with 6 larger drives. Can anyone help me with what commands I would need to run? Do I replace, Offline, etc? > > =================> 2) replace all the drives in the raidz, 1 by 1 (waiting for zfs to reconstruct the data on the new drive), and when you have replaced the final drive the zpool will "magically" increase in size. i.e replace the 500GB drives, 1 by 1, with 750GB drives, and when you finish the zpool effective storage will jump to 2250GB. > =================> > thanks, > Chris