Solaris Volume Manager Administration Guide

ProcedureHow to Create a Hot Spare Pool

Caution – Caution –

Do not create volumes or hot spares larger than 1 Tbyte if you expect to run the Solaris software with a 32–bit kernel or if you expect to use a version of the Solaris OS prior to the Solaris 9 4/03 release. See Overview of Multi-Terabyte Support in Solaris Volume Manager for more information about multiterabyte volume support in Solaris Volume Manager.

Caution – Caution –

Solaris Volume Manager does 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.

Before You Begin

Check Prerequisites for Creating Solaris Volume Manager Components.

  1. Become superuser.

  2. 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

      Specifies the name of the hot spare pool.


      Specifies the slice being added to the hot spare pool. The option is repeated for each slice being added to the hot spare pool.

      See the metainit(1M) man page for more information.

    Note –

    The metahs command can also be used to create hot spare pools.

Example 17–1 Creating a Hot Spare Pool

# 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.

See Also

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.