JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Solaris Volume Manager Administration Guide     Oracle Solaris 10 1/13 Information Library
search filter icon
search icon

Document Information

Preface

1.  Getting Started With Solaris Volume Manager

2.  Storage Management Concepts

3.  Solaris Volume Manager Overview

4.  Solaris Volume Manager for Sun Cluster (Overview)

5.  Configuring and Using Solaris Volume Manager (Scenario)

6.  State Database (Overview)

7.  State Database (Tasks)

8.  RAID-0 (Stripe and Concatenation) Volumes (Overview)

9.  RAID-0 (Stripe and Concatenation) Volumes (Tasks)

10.  RAID-1 (Mirror) Volumes (Overview)

11.  RAID-1 (Mirror) Volumes (Tasks)

12.  Soft Partitions (Overview)

13.  Soft Partitions (Tasks)

14.  RAID-5 Volumes (Overview)

15.  RAID-5 Volumes (Tasks)

16.  Hot Spare Pools (Overview)

17.  Hot Spare Pools (Tasks)

Hot Spare Pools (Task Map)

Creating a Hot Spare Pool

How to Create a Hot Spare Pool

How to Add Additional Slices to a Hot Spare Pool

Associating a Hot Spare Pool With Volumes

How to Associate a Hot Spare Pool With a Volume

How to Change the Associated Hot Spare Pool

Maintaining Hot Spare Pools

How to Check the Status of Hot Spares and Hot Spare Pools

How to Replace a Hot Spare in a Hot Spare Pool

How to Delete a Hot Spare From a Hot Spare Pool

How to Enable a Hot Spare

18.  Disk Sets (Overview)

19.  Disk Sets (Tasks)

20.  Maintaining Solaris Volume Manager (Tasks)

21.  Best Practices for Solaris Volume Manager

22.  Top-Down Volume Creation (Overview)

23.  Top-Down Volume Creation (Tasks)

24.  Monitoring and Error Reporting (Tasks)

25.  Troubleshooting Solaris Volume Manager (Tasks)

A.  Important Solaris Volume Manager Files

B.  Solaris Volume Manager Quick Reference

C.  Solaris Volume Manager CIM/WBEM API

Index

Creating a Hot Spare Pool

How 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
      hot-spare-pool-name

      Specifies the name of the hot spare pool.

      ctds-for-slice

      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.

How to Add Additional Slices to a Hot Spare Pool

Before You Begin

Check Prerequisites for Creating Solaris Volume Manager Components.

  1. Become superuser.
  2. To add a slice to an existing 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. Choose the hot spare pool you want to change. Choose Action⇒Properties. Then, choose the Hot Spares panel. For more information, see the online help.

    • Use one of the following forms of the metahs command:

      # metahs -a hot-spare-pool-name slice-to-add
      # metahs -a -all hot-spare-pool-name slice-to-add
      -a hot-spare-pool-name

      Specifies to add the slice to the specified hot spare pool.

      -a all

      Specifies to add the slice to all hot spare pools.

      slice-to-add

      Specifies the slice to add to the hot spare pool.

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


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


Example 17-2 Adding a Hot Spare Slice to One Hot Spare Pool

In this example, the -a option adds the slice /dev/dsk/c3t0d0s2 to hot spare pool hsp001. The system verifies that the slice has been added to the hot spare pool.

# metahs -a hsp001 /dev/dsk/c3t0d0s2
hsp001: Hotspare is added

Example 17-3 Adding a Hot Spare Slice to All Hot Spare Pools

In this example, the -a option used with all adds the slice /dev/dsk/c3t0d0s2 to all hot spare pools configured on the system. The system verifies that the slice has been added to all hot spare pools.

# metahs -a -all /dev/dsk/c3t0d0s2
hsp001: Hotspare is added
hsp002: Hotspare is added
hsp003: Hotspare is added