>I'm using zfs not to have access to a fail-safe backed up system, but to easily >manage my file system. I would like to be able to, as I buy new harddrives, >just >to be able to replace the old ones. I'm very environmentally concious, so I >don't want to leave old drives in there to consume power as they've already >been >replaced by larger ones. However, ZFS doesn't currently let me detach a non- >mirrored device. Is this planned for the future at all? I would imagine >something like this: > >zpool detach --non-mirrored dev ... > detaching non-mirrored dev... wait for data to be copied > >or even > >zpool detach --non-mirrored dev ... > detaching non-mirrored dev... there's not sufficient space to be able to > remove dev >
It is unfortunately that you ask this question after you've installed the new disks; now both the old and the new disks are part of the same zpool. zpool replace [-f] pool old_device [new_device] Replaces old_device with new_device. This is equivalent to attaching new_device, waiting for it to resilver, and then detaching old_device. The size of new_device must be greater than or equal to the minimum size of all the devices in a mirror or raidz configuration. new_device is required if the pool is not redundant. If new_device is not specified, it defaults to old_device. This form of replacement is useful after an existing disk has failed and has been physically replaced. In this case, the new disk may have the same /dev/dsk path as the old device, even though it is actually a dif- ferent disk. ZFS recognizes this. So in order to replace an old disk, you'd use: zpool replace pool olddisk newdisk Casper _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss