To create a hot spare pool, use one of the following methods:
From the Enhanced Storage tool within the Solaris Management Console, open the Hot Spare Pools node, then choose Action->Create Hot Spare Pool. For more information, see the online help.
Use the following form of the metainit command:
metainit hot-spare-pool-name ctds-for-slice
where ctds-for-slice is repeated for each slice in the hot spare pool. See the metainit(1M) man page for more information.
The metahs command can also be used to create hot spare pools.
# metainit hsp001 c2t2d0s2 c3t2d0s2 hsp001: Hotspare pool is setup
In this example, the hot spare pool hsp001 contains two disks as the hot spares. The system confirms that the hot spare pool has been set up.
Solaris Volume Manager will not warn you if you create a hot spare that is not large enough. If the hot spare is not equal to, or larger than, the volume to which it is attached, the hot spare will not work.
To add more hot spares to the hot spare pool, see How to Add Additional Slices to a Hot Spare Pool. After you create the hot spare pool, you need to associate it with a submirror or RAID 5 volume. See How to Associate a Hot Spare Pool With a Volume.