How to Replace a Device in a Storage Pool
Example 4-11 Replacing Devices in a Mirrored Pool
In this example, two 16GB disks in the pool system1
are replaced with two 72GB disks. The autoexpand
property is enabled after the disk replacements to expand the full disk sizes.
$ zpool status system1 pool: system1 state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM system1 ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t16d0 ONLINE 0 0 0 c1t17d0 ONLINE 0 0 0 $ zpool list system1 NAME SIZE ALLOC FREE CAP HEALTH ALTROOT system1 16.8G 76.5K 16.7G 0% ONLINE - $ zpool replaced system1 c1t16d0 c1t1d0 $ zpool replaced system1 c1t17d0 c1t2d0 $ zpool list system1 NAME SIZE ALLOC FREE CAP HEALTH ALTROOT system1 16.8G 88.5K 16.7G 0% ONLINE - $ zpool set autoexpand=on system1 $ zpool list system1 NAME SIZE ALLOC FREE CAP HEALTH ALTROOT system1 68.2G 117K 68.2G 0% ONLINE -