<chapter id="tasks-hotspares-1"><title>Hot Spare
Pools (Tasks)</title><highlights><para>This chapter explains how to work with Solaris Volume Manager's hot spares and
hot spare pools. For information about related concepts, see <olink targetptr="about-hotspares-40444" remap="internal">Chapter&nbsp;16, Hot Spare
Pools (Overview)</olink>.</para>
</highlights><sect1 id="tasks-hotspares-10"><title>Hot Spare Pools (Task Map)</title><para>The following task map identifies the procedures that are needed to
manage Solaris Volume Manager hot spare pools. </para><informaltable frame="all"><tgroup cols="3" colsep="1" rowsep="1"><colspec colname="colspec0" colwidth="110.00*"/><colspec colname="colspec1" colwidth="167.00*"/><colspec colname="colspec2" colwidth="119.00*"/><thead><row><entry><para>Task</para>
</entry><entry><para>Description</para>
</entry><entry><para>For Instructions</para>
</entry>
</row>
</thead><tbody><row><entry><para>Create a hot spare pool</para>
</entry><entry><para>Use the Solaris Volume Manager GUI or the <command>metainit</command> command
to create a hot spare pool. </para>
</entry><entry><para><olink targetptr="addtasks-14933" remap="internal">How to Create a Hot Spare Pool</olink></para>
</entry>
</row><row><entry><para>Add slices to a hot spare pool</para>
</entry><entry><para>Use the Solaris Volume Manager GUI or the <command>metahs</command> command
to add slices to a hot spare pool. </para>
</entry><entry><para><olink targetptr="addtasks-42201" remap="internal">How to Add Additional Slices to a Hot Spare
Pool</olink></para>
</entry>
</row><row><entry><para>Associate a hot spare pool with a volume</para>
</entry><entry><para>Use the Solaris Volume Manager GUI or the <command>metaparam</command> command
to associate a hot spare pool with a volume. </para>
</entry><entry><para><olink targetptr="addtasks-32105" remap="internal">How to Associate a Hot Spare Pool With a
Volume</olink></para>
</entry>
</row><row><entry><para>Change which hot spare pool is associated with a volume</para>
</entry><entry><para>Use the Solaris Volume Manager GUI or the <command>metaparam</command> command
to change which hot spare pool is associated with a volume. </para>
</entry><entry><para><olink targetptr="addtasks-38399" remap="internal">How to Change the Associated Hot Spare
Pool</olink></para>
</entry>
</row><row><entry><para>Check the status of hot spares and hot spare pools</para>
</entry><entry><para>Use the Solaris Volume Manager GUI, the <command>metastat</command> command,
or <command>metahs -i</command> command to check the status of a hot spare
or hot spare pool. </para>
</entry><entry><para><olink targetptr="maintaintasksnew-26732" remap="internal">How to Check the Status of Hot Spares
and Hot Spare Pools</olink></para>
</entry>
</row><row><entry><para>Replace a hot spare in a hot spare pool</para>
</entry><entry><para>Use the Solaris Volume Manager GUI or the <command>metahs</command> command
to replace a hot spare in a hot spare pool. </para>
</entry><entry><para><olink targetptr="maintaintasksnew-10276" remap="internal">How to Replace a Hot Spare in a Hot
Spare Pool</olink></para>
</entry>
</row><row><entry><para>Delete a hot spare from a hot spare pool</para>
</entry><entry><para>Use the Solaris Volume Manager GUI or the <command>metahs</command> command
to delete a hot spare from a hot spare pool. </para>
</entry><entry><para><olink targetptr="maintaintasksnew-10276a" remap="internal">How to Delete a Hot Spare From a
Hot Spare Pool</olink></para>
</entry>
</row><row><entry><para>Enable a hot spare</para>
</entry><entry><para>Use the Solaris Volume Manager GUI or the <command>metahs</command> command
to enable a hot spare in a hot spare pool. </para>
</entry><entry><para><olink targetptr="maintaintasksnew-23845" remap="internal">How to Enable a Hot Spare</olink></para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</sect1><sect1 id="tasks-hotspares-6"><title>Creating a Hot Spare Pool</title><task id="addtasks-14933"><title>How to Create a Hot Spare Pool</title><tasksummary><caution><para>Do not create volumes or hot spares larger than 1 Tbyte if
you expect to run the Solaris software with a 32&ndash;bit kernel or if you
expect to use a version of the Solaris OS prior to the Solaris 9 4/03 release.
See <olink targetptr="large-volume-overview" remap="internal">Overview of Multi-Terabyte Support
in Solaris Volume Manager</olink> for more information about multiterabyte
volume support in Solaris Volume Manager.</para>
</caution><caution><para>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.</para>
</caution>
</tasksummary><taskprerequisites><para>Check <olink targetptr="addtasks-20933" remap="internal">Prerequisites for Creating Solaris
Volume Manager Components</olink>.</para>
</taskprerequisites><procedure><step id="tasks-hotspares-step-10"><para>Become superuser.</para>
</step><step id="tasks-hotspares-step-11"><para>To create a hot spare pool, use one
of the following methods:</para><itemizedlist><listitem><para>From the Enhanced Storage tool within the Solaris Management Console, open the Hot Spare Pools node. Then, choose
Action&rArr;Create Hot Spare Pool. For more information, see the online help.</para>
</listitem><listitem><para>Use the following form of the <command>metainit</command> command:</para><screen># <userinput>metainit <replaceable>hot-spare-pool-name</replaceable> <replaceable>ctds-for-slice</replaceable></userinput></screen><variablelist><varlistentry><term><replaceable>hot-spare-pool-name</replaceable></term><listitem><para>Specifies the name of the hot spare pool.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>ctds-for-slice</replaceable></term><listitem><para>Specifies the slice being added to the hot spare pool. The
option is repeated for each slice being added to the hot spare pool.</para>
</listitem>
</varlistentry>
</variablelist><para>See the <olink targetdoc="refman1m" targetptr="metainit-1m" remap="external"><citerefentry><refentrytitle>metainit</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man
page for more information.</para>
</listitem>
</itemizedlist><note><para>The <command>metahs</command> command can also be used to create
hot spare pools. </para>
</note>
</step>
</procedure><example id="egjwr"><title>Creating a Hot Spare Pool</title><screen># <userinput>metainit hsp001 c2t2d0s2 c3t2d0s2</userinput>
hsp001: Hotspare pool is setup</screen><para>In this example, the hot spare pool <filename>hsp001</filename> contains
two disks as the hot spares. The system confirms that the hot spare pool has
been set up.</para>
</example><taskrelated role="see-also"><para>To add more hot spares to the hot spare pool, see <olink targetptr="addtasks-42201" remap="internal">How to Add Additional Slices to a Hot Spare
Pool</olink>. After you create
the hot spare pool, you need to associate it with a submirror or RAID-5 volume.
See <olink targetptr="addtasks-32105" remap="internal">How to Associate a Hot Spare Pool With a
Volume</olink>. </para>
</taskrelated>
</task><task id="addtasks-42201"><title>How to Add Additional Slices to a Hot Spare
Pool</title><taskprerequisites><para>Check <olink targetptr="addtasks-20933" remap="internal">Prerequisites for Creating Solaris
Volume Manager Components</olink>.</para>
</taskprerequisites><procedure><step id="tasks-hotspares-step-13"><para>Become superuser.</para>
</step><step id="tasks-hotspares-step-14"><para>To add a slice to an existing hot
spare pool, use one of the following methods:</para><itemizedlist><listitem><para>From the Enhanced Storage tool within the Solaris Management Console, open the Hot Spare Pools node. Choose the
hot spare pool you want to change. Choose Action&rArr;Properties. Then, choose
the Hot Spares panel. For more information, see the online help.</para>
</listitem><listitem><para>Use one of the following forms of the <command>metahs</command> command:</para><screen># <userinput>metahs -a <replaceable>hot-spare-pool-name</replaceable> <replaceable>slice-to-add</replaceable></userinput></screen><screen># <userinput>metahs -a -all <replaceable>hot-spare-pool-name</replaceable> <replaceable>slice-to-add</replaceable></userinput></screen><variablelist><varlistentry><term><option>a</option> <replaceable>hot-spare-pool-name</replaceable></term><listitem><para>Specifies to add the slice to the specified hot spare pool.</para>
</listitem>
</varlistentry><varlistentry><term><option>a</option> <literal>all</literal></term><listitem><para>Specifies to add the slice to all hot spare pools.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>slice-to-add</replaceable></term><listitem><para>Specifies the slice to add to the hot spare pool.</para>
</listitem>
</varlistentry>
</variablelist><para>See the <olink targetdoc="refman1m" targetptr="metahs-1m" remap="external"><citerefentry><refentrytitle>metahs</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man
page for more information.</para>
</listitem>
</itemizedlist><note><para>You can add a hot spare to one or more hot spare pools. When you
add a hot spare to a hot spare pool, the hot spare is added to the end of
the list of slices in the hot spare pool.</para>
</note>
</step>
</procedure><example id="egjwm"><title>Adding a Hot Spare Slice to One Hot Spare Pool</title><para>In this example, the <option>a</option> option adds the slice <filename>/dev/dsk/c3t0d0s2</filename> to hot spare pool <filename>hsp001</filename>.
The system verifies that the slice has been added to the hot spare pool.</para><screen># <userinput>metahs -a hsp001 /dev/dsk/c3t0d0s2</userinput>
hsp001: Hotspare is added</screen>
</example><example id="egjwt"><title>Adding a Hot Spare Slice to All Hot Spare Pools</title><para>In this example, the <option>a</option> option used with <literal>all</literal> adds the slice <filename>/dev/dsk/c3t0d0s2</filename> to all hot spare pools configured on the system.
The system verifies that the slice has been added to all hot spare pools.</para><screen># <userinput>metahs -a -all /dev/dsk/c3t0d0s2</userinput>
hsp001: Hotspare is added
hsp002: Hotspare is added
hsp003: Hotspare is added</screen>
</example>
</task>
</sect1><sect1 id="tasks-hotspares-7"><title>Associating a Hot Spare Pool With Volumes</title><task id="addtasks-32105"><title>How to Associate a Hot Spare Pool With a
Volume</title><taskprerequisites><para>Check <olink targetptr="addtasks-20933" remap="internal">Prerequisites for Creating Solaris
Volume Manager Components</olink>.</para>
</taskprerequisites><procedure><step id="tasks-hotspares-step-16"><para>Become superuser.</para>
</step><step id="tasks-hotspares-step-17"><para>To associate a hot spare pool with
a RAID-5 volume or submirror, use one of the following methods:</para><itemizedlist><listitem><para>From the Enhanced Storage tool within the Solaris Management Console, open the Volumes and choose a volume. Choose
Action&rArr;Properties. Then, choose the Hot Spare Pool panel. Finally, choose
Attach HSP. For more information, see the online help.</para>
</listitem><listitem><para>Use the following form of the <command>metaparam</command> command:</para><screen># <userinput>metaparam -h <replaceable>hot-spare-pool</replaceable> <replaceable>component</replaceable></userinput></screen><variablelist><varlistentry><term><option>h</option></term><listitem><para>Specifies to modify the named hot spare pooll.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>hot-spare-pool</replaceable></term><listitem><para>Specifies the name of the hot spare pool.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>component</replaceable></term><listitem><para>Specifies the name of the submirror or RAID-5 volume to which
the hot spare pool is being associated.</para>
</listitem>
</varlistentry>
</variablelist><para>See the <olink targetdoc="refman1m" targetptr="metaparam-1m" remap="external"><citerefentry><refentrytitle>metaparam</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man
page for more information. </para>
</listitem>
</itemizedlist>
</step>
</procedure><example id="egjwp"><title>Associating a Hot Spare Pool With Submirrors</title><para>In the following example, the <option>h</option> option associates a
hot spare pool, <filename>hsp100</filename>, with two submirrors, <filename>d10</filename> and <filename>d11</filename>, of mirror, <filename>d0</filename>.
The <command>metastat</command> command shows that the hot spare pool is associated
with the submirrors.</para><screen># <userinput>metaparam -h hsp100 d10</userinput>
# <userinput>metaparam -h hsp100 d11</userinput>
# <userinput>metastat d0</userinput>
d0: Mirror
    Submirror 0: d10
      State: Okay        
    Submirror 1: d11
      State: Okay        
...
 
d10: Submirror of d0
    State: Okay        
    Hot spare pool: hsp100
...
 
 
d11: Submirror of d0
    State: Okay        
    Hot spare pool: hsp100
...</screen>
</example><example id="egjwu"><title>Associating a Hot Spare Pool With a RAID-5 Volume</title><para>In the following example, the <option>h</option> option associates a hot spare, <filename>hsp001</filename>, with
a RAID-5 volume,<filename>d10</filename>. The <command>metastat</command> command
shows that the hot spare pool is associated with the RAID-5 volume. </para><screen># <userinput>metaparam -h hsp001 d10</userinput>
# <userinput>metastat d10</userinput>
d10: RAID
    State: Okay        
    Hot spare pool: hsp001
...</screen>
</example>
</task><task id="addtasks-38399"><title>How to Change the Associated Hot Spare Pool</title><taskprerequisites><para>Check <olink targetptr="addtasks-20933" remap="internal">Prerequisites for Creating Solaris
Volume Manager Components</olink>.</para>
</taskprerequisites><procedure><step id="tasks-hotspares-step-19"><para>Become superuser.</para>
</step><step id="tasks-hotspares-step-20"><para>To change a volume's associated hot
spare pool, use one of the following methods:</para><itemizedlist><listitem><para>From the Enhanced Storage tool within the Solaris Management Console, open the Volumes node and choose the volume.
Choose Action&rArr;Properties. Then choose the Hot Spare Pool panel. Detach
the unwanted hot spare pool and attach the new hot spare pool by following
the onscreen instructions. For more information, see the online help.</para>
</listitem><listitem><para>Use the following form of the <command>metaparam</command> command:</para><screen># <userinput>metaparam -h <replaceable>hot-spare-pool-name</replaceable> <replaceable>RAID5-volume-or-submirror-name</replaceable></userinput></screen><variablelist><varlistentry><term><option>h</option></term><listitem><para>Specifies to modify the hot spare pool named.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>hot-spare-pool</replaceable></term><listitem><para>Specifies the name of the new hot spare pool, or the special
keyword <literal>none</literal> to remove hot spare pool associations.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>component</replaceable></term><listitem><para>Specifies the name of the submirror or RAID-5 volume to which
the hot spare pool is being attached.</para>
</listitem>
</varlistentry>
</variablelist><para>See the <olink targetdoc="refman1m" targetptr="metaparam-1m" remap="external"><citerefentry><refentrytitle>metaparam</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man
page for more information. </para>
</listitem>
</itemizedlist>
</step>
</procedure><example id="egjwx"><title>Changing the Hot Spare Pool Association</title><para>In the following example, the
hot spare pool, <filename>hsp001</filename>, is initially associated with
a RAID-5 volume,<filename>d4</filename>. The hot spare pool association for
the volume is then changed to <filename>hsp002</filename>. The <command>metastat</command> command shows the hot spare pool association before and after this
change.</para><screen># <userinput>metastat d4</userinput>
d4: RAID
    State: Okay        
    Hot spare pool: hsp001
...
# <userinput>metaparam -h hsp002 d4</userinput>
# <userinput>metastat d4</userinput>
d4: RAID
    State: Okay        
    Hot spare pool: hsp002
...</screen>
</example><example id="egjwh"><title>Removing a Volume's Hot Spare Pool Association</title><para>In the following example, the hot spare pool, <filename>hsp001</filename>,
is initially associated with a RAID-5 volume, <filename>d4</filename>. The
hot spare pool association is then changed to <filename>none</filename>, which
indicates that no hot spare pool should be associated with this volume. The <command>metastat</command> command shows the hot spare pool association before and
after this change.</para><screen># <userinput>metastat d4</userinput>
d4: RAID
    State: Okay        
    Hot spare pool: hsp001
...
# <userinput>metaparam -h none d4</userinput>
# <userinput>metastat d4</userinput>
d4: RAID
    State: Okay        
    Hot spare pool:
...</screen>
</example>
</task>
</sect1><sect1 id="tasks-hotspares-8"><title>Maintaining Hot Spare Pools</title><para>The following sections show how to perform maintenance tasks on hot
spare pools. </para><task id="maintaintasksnew-26732"><title>How to Check the Status of Hot Spares
and Hot Spare Pools</title><procedure remap="single-step"><step id="tasks-hotspares-step-22"><para>To view the status of a hot spare
pool and its hot spares, use one of the following methods:</para><itemizedlist><listitem><para>From the Enhanced Storage tool within the Solaris Management Console, open the Hot Spare Pools node and select
a hot spare pool. Choose Action&rArr;Properties to view detailed status information.
For more information, see the online help.</para>
</listitem><listitem><para>Run the following form of the <command>metastat</command> command:</para><screen># <userinput>metastat <replaceable>hot-spare-pool-name</replaceable></userinput></screen>
</listitem>
</itemizedlist>
</step>
</procedure><example id="egjvz"><title>Viewing the Status of a Hot Spare Pool</title><para>The following example shows sample output from the <command>metastat</command> command on a hot spare pool.</para><screen># <userinput>metastat hsp001</userinput>
hsp001: 1 hot spare
        c1t3d0s2                Available       16800 blocks</screen><para>The <command>metahs</command> command can also be used to check the
status of a hot spare pool. </para><para>For information on the hot spare pool states and the possible actions
to take, see <olink targetptr="egjyg" remap="internal">Hot Spare Pool States</olink>.</para>
</example>
</task><task id="maintaintasksnew-10276"><title>How to Replace a Hot Spare in a Hot
Spare Pool</title><procedure><step><para>Become superuser.</para>
</step><step id="tasks-hotspares-step-27"><para>Verify whether the hot spare is currently
being used by using one of the following methods:</para><itemizedlist><listitem><para>From the Enhanced Storage tool within the Solaris Management Console, open the Hot Spare Pools node and select
a hot spare pool. Choose Action&rArr;Properties. Then choose the Hot Spares
panel. Follow the onscreen instructions. For more information, see the online
help.</para>
</listitem><listitem><para>Use the following form of the <command>metastat</command> command
to view the status of the hot spare pool:</para><screen># <userinput>metastat <replaceable>hot-spare-pool-name</replaceable></userinput></screen><para>For more information, see the <olink targetdoc="refman1m" targetptr="metastat-1m" remap="external"><citerefentry><refentrytitle>metastat</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man
page.</para>
</listitem>
</itemizedlist>
</step><step id="tasks-hotspares-step-28"><para>To replace the hot spare, use one
of the following methods:</para><itemizedlist><listitem><para>From the Enhanced Storage tool within the Solaris Management Console, open the Hot Spare Pools node and select
a hot spare pool. Choose Action&rArr;Properties. Then choose the Hot Spares
panel. Follow the onscreen instructions. For more information, see the online
help.</para>
</listitem><listitem><para>Use the following form of the <command>metahs</command> command:</para><screen># <userinput>metahs -r <replaceable>hot-spare-pool-name</replaceable> <replaceable>current-hot-spare</replaceable> <replaceable>replacement-hot-spare</replaceable></userinput></screen><variablelist><varlistentry><term><option>r</option></term><listitem><para>Specifies to replace disks in the named hot spare pool.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>hot-spare-pool-name</replaceable></term><listitem><para>Specifies the name of the hot spare pool. You can also use
the special keyword <literal>all</literal> to change all hot spare pool associations.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>current-hot-spare</replaceable></term><listitem><para>Specifies the name of the current hot spare that will be replaced.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>replacement-hot-spare</replaceable></term><listitem><para>Specifies the name of the slice that will replace the current
hot spare in the named hot spare pool.</para>
</listitem>
</varlistentry>
</variablelist><para>For more information, see the <olink targetdoc="refman1m" targetptr="metahs-1m" remap="external"><citerefentry><refentrytitle>metahs</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man
page.</para>
</listitem>
</itemizedlist>
</step>
</procedure><example id="egjwa"><title>Replacing a Hot Spare in One Hot Spare Pool</title><para>In the following example, the <command>metastat</command> command shows
that the hot spare is not in use. The <command>metahs <option>r</option></command> command
replaces the hot spare, <filename>/dev/dsk/c0t2d0s2</filename>, with the hot
spare, <filename>/dev/dsk/c3t1d0s2</filename>, in the hot spare pool, <filename>hsp003</filename>.</para><screen># <userinput>metastat hsp003</userinput>
hsp003: 1 hot spare
        c0t2d0s2                Broken       5600 blocks
# <userinput>metahs -r hsp003 c0t2d0s2 c3t1d0s2</userinput>
hsp003: Hotspare c0t2d0s2 is replaced with c3t1d0s2</screen>
</example><example id="egjwn"><title>Replacing a Hot Spare in All Associated Hot Spare Pools</title><para>In the following
example, the keyword <option role="nodash">all</option> replaces the hot spare, <filename>/dev/dsk/c1t0d0s2</filename>, with the hot spare, <filename>/dev/dsk/c3t1d0s2</filename>, in all its associated hot spare pools.</para><screen># <userinput>metahs -r all c1t0d0s2 c3t1d0s2</userinput>
hsp001: Hotspare c1t0d0s2 is replaced with c3t1d0s2
hsp002: Hotspare c1t0d0s2 is replaced with c3t1d0s2
hsp003: Hotspare c1t0d0s2 is replaced with c3t1d0s2</screen>
</example>
</task><task id="maintaintasksnew-10276a"><title>How to Delete a Hot Spare From a
Hot Spare Pool</title><procedure><step><para>Become superuser.</para>
</step><step id="tasks-hotspares-step-27a"><para>Verify whether the hot spare is
currently being used by using one of the following methods:</para><itemizedlist><listitem><para>From the Enhanced Storage tool within the Solaris Management Console, open the Hot Spare Pools node and select
a hot spare pool. Choose Action&rArr;Properties. Then choose the Hot Spares
panel. Follow the onscreen instructions. For more information, see the online
help.</para>
</listitem><listitem><para>Use the following form of the <command>metastat</command> command
to view the status of the hot spare pool:</para><screen># <userinput>metastat <replaceable>hot-spare-pool-name</replaceable></userinput></screen><para>See the <olink targetdoc="refman1m" targetptr="metastat-1m" remap="external"><citerefentry><refentrytitle>metastat</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man
page.</para>
</listitem>
</itemizedlist>
</step><step id="tasks-hotspares-step-28a"><para>To delete the hot spare, use one
of the following methods:</para><itemizedlist><listitem><para>From the Enhanced Storage tool within the Solaris Management Console, open the Hot Spare Pools node and select
a hot spare pool. Choose Action&rArr;Properties. Then choose the Hot Spares
panel. Follow the onscreen instructions. For more information, see the online
help.</para>
</listitem><listitem><para>Use the following form of the <command>metahs</command> command:</para><screen># <userinput>metahs -d <replaceable>hot-spare-pool-name</replaceable> <replaceable>current-hot-spare</replaceable></userinput></screen><variablelist><varlistentry><term><option>d</option></term><listitem><para>Specifies to delete a hot spare from the named hot spare pool.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>hot-spare-pool</replaceable></term><listitem><para>Specifies the name of the hot spare pool. You can also use
the special keyword <literal>all</literal> to delete the hot spare from all
hot spare pools.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>current-hot-spare</replaceable></term><listitem><para>Specifies the name of the current hot spare that will be deleted.</para>
</listitem>
</varlistentry>
</variablelist><para>For more information, see the <olink targetdoc="refman1m" targetptr="metahs-1m" remap="external"><citerefentry><refentrytitle>metahs</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man
page.</para>
</listitem>
</itemizedlist>
</step>
</procedure><example id="egjvw"><title>Deleting a Hot Spare from One Hot Spare Pool</title><para>In the following example, the <command>metastat</command> command shows
that the hot spare is not in use. The <command>metahs <option>d</option></command> command
deletes the hot spare, <filename>/dev/dsk/c0t2d0s2</filename>, in the hot
spare pool, <filename>hsp003</filename>.</para><screen># <userinput>metastat hsp003</userinput>
hsp003: 1 hot spare
        c0t2d0s2                Broken       5600 blocks
# <userinput>metahs -d hsp003 c0t2d0s2</userinput></screen>
</example>
</task><task id="maintaintasksnew-23845"><title>How to Enable a Hot Spare</title><procedure><step><para>Become superuser.</para>
</step><step id="tasks-hotspares-step-31"><para>To return a hot spare to the &ldquo;available&rdquo;
state, use one of the following methods:</para><itemizedlist><listitem><para>From the Enhanced Storage tool within the Solaris Management Console, open the Hot Spare Pools node and select
a hot spare pool. Choose Action&rArr;Properties. Then, choose the Hot Spares
panel. Follow the onscreen instructions. For more information, see the online
help.</para>
</listitem><listitem><para>Use the following form of the <command>metahs</command> command:</para><screen># <userinput>metahs -e <replaceable>hot-spare-slice</replaceable></userinput></screen><variablelist><varlistentry><term><option>e</option></term><listitem><para>Specifies to enable a hot spare.</para>
</listitem>
</varlistentry><varlistentry><term><replaceable>hot-spare-slice</replaceable></term><listitem><para>Specifies the name of the slice to enable.</para>
</listitem>
</varlistentry>
</variablelist><para>For more information, see the <olink targetdoc="refman1m" targetptr="metahs-1m" remap="external"><citerefentry><refentrytitle>metahs</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink> man
page. </para>
</listitem>
</itemizedlist>
</step>
</procedure><example id="egjwy"><title>Enabling a Hot Spare</title><para>In the following example, the <command>metahs</command> command places
the hot spare, <filename>/dev/dsk/c0t0d0s2</filename> in the &ldquo;Available&rdquo;
state after it has been repaired. It is unnecessary to specify a hot spare
pool.</para><screen># <userinput>metahs -e c0t0d0s2</userinput></screen>
</example>
</task>
</sect1>
</chapter>