Daniel, You can replace the disks in both of the supported root pool configurations:
- single disk (non-redundant) root pool - mirrored (redundant) root pool I've tried both recently and I prefer attaching the replacement disk to the single-disk root pool and then detaching the old disk, using the steps below. I like to provide confirmation between various steps. The steps are included for replacing the root pool disk with zpool replace, which works fine too, but doesn't provide the safety nets that the first approach does. Cindy Before considering either approach, make sure you understand the boot device pathnames of the current and new disk. Replace root pool disk with zpool attach 1. Attach the new disk: # zpool attach rpool old-disk new-disk This step creates a mirrored root pool. 2. After the new disk is resilvered, apply the boot blocks to the new disk, like this: # installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk new-disk 3. Verify that you can boot from the new disk. 4. If the system boots from the new disk, detach the old disk: # zpool detach rpool old-disk 5. Set up the system to boot automatically from the new disk, either by using the eeprom command, the setenv from the SPARC boot prom, or configure the PC BIOS. Replace root pool disk with zpool replace 1. Replace the root pool disk: # zpool replace rpool c1t10d0s0 c4t0d0s0 2. Check the status of the disk replacement: # zpool replace rpool c1t10d0s0 c4t0d0s0 # zpool status rpool pool: rpool state: ONLINE status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state. action: Wait for the resilver to complete. scrub: resilver in progress for 0h0m, 4.73% done, 0h2m to go config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 replacing ONLINE 0 0 0 c1t10d0s0 ONLINE 0 0 0 c4t0d0s0 ONLINE 0 0 0 3. When the replacement and resilvering are complete, add the boot blocks to the new disk: # zpool status pool: rpool state: ONLINE scrub: resilver completed after 0h4m with 0 errors on Fri Dec 12 10:32:40 2008 config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 c4t0d0s0 ONLINE 0 0 0 # installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk c4t0d0s0 4. Confirm that you boot from the new disk. 5. Set up the system to boot automatically from the new disk, either by using the eeprom command, the setenv from the SPARC boot prom, or configure the x86 BIOS. Daniel wrote: > Is it possible to do a replace on / as well? _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss