Orvar, Two choices are described below, where safety is the priority. I prefer the first one (A).
Cindy A. Replace each 500GB disk in the existing pool with a 1 TB drive. Then, add the 5th 1TB drive as a spare. Depending on the Solaris release you are running, you might need to export/import the pool to see the expanded capacity (as a step 8) due to an existing bug. 1. Physically connect the new disks. 2. Replace the first disk. # zpool replace pool 500GB-1 1TB-1 3. Let resilver complete, then scrub. # zpool scrub pool 4. Replace the second disk. # zpool replace pool 500GB-2 1TB-2 5. Let resilver complete, then scrub. # zpool scrub pool 6. Repeat steps 2-5 until 4 disks are replaced. 7. Add 1TB-5 as a spare: # zpool add pool spare 1TB-5 B. Use zfs send/receive to copy ZFS datasets to new pool. 1. Physically connect the new disks. 2. Create the new pool with new disks. 3. Use zfs send/receive to copy ZFS datasets from old pool to new pool. 4. Make sure all data is available in the new pool between each zfs send/receive operation. Don't destroy the old pool until all data is verified. Orvar Korvar wrote: > I have a ZFS raid with 4 samsung 500GB disks. I now want 5 drives samsung 1TB > instead. So I connect the 5 drives, create a zpool raidz1 and copy the > content from the old zpool to the new zpool. > > Is there a way to safely copy the zpool? Make it sure that it really have > been copied safely? Ideally I would like a tool that copies from source to > destination and checks that the copy went through. A night mare would be if > the copy get interrupted, and I have to copy again. How can I be sure that > the new invocation has copied everything, from the interruption? Using gnu > commander feels a bit unsafe. It will only copy blindly(?), and no more. Will > it tell me if something went wrong? > > How do you make sure the copy has been correct? Is there any utility that > does exactly that? (Does cp warn if there was any error?) _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss