Creating a Mirrored Storage Pool
To create a mirrored pool, use the mirror
keyword. To configure multiple mirrors, repeat the keyword on the command line. The following command creates a pool system1
with two top-level virtual devices.
zpool create system1 mirror c1d0 c2d0 mirror c3d0 c4d0
Both virtual devices are two-way mirrors. Data is dynamically striped across both mirrors, with data being redundant between each disk appropriately.
For more information about recommended mirrored configurations, see Recommended Oracle Solaris ZFS Practices.
You can perform the following operations on ZFS mirrored configurations:
-
Add another top-level virtual device with a different set of disks. See Adding Devices to a Storage Pool.
-
Attach additional disks. See Attaching and Detaching Devices in a Storage Pool.
-
Replace disks. See Replacing Devices in a Storage Pool.
-
Detach disks. See Attaching and Detaching Devices in a Storage Pool.
-
Split a mirrored configuration to create a new, identical pool. See Splitting a Mirrored Storage Pool to Create a New Pool.
For an example of how to configure ZFS with a mirrored storage pool, see Configuring a Mirrored ZFS File System.