SVM – How to add a disk to a disk set

Expanding Disk Sets
ProcedureHow to Add Disks to a Disk Set
Caution � Caution �

Do not add disks larger than 1Tbyte to disk sets 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 multi-terabyte volume support in Solaris Volume Manager.

Only disks that meet the following conditions can be added to a disk set:

*

The disk must not be in use in a volume or hot spare pool.
*

The disk must not contain a state database replica.
*

The disk must not be currently mounted, swapped on, or otherwise opened for use by an application.

Before You Begin

Check Guidelines for Working With Disk Sets.
Steps

1.

To add disks to a disk set, use one of the following methods:
*

From the Enhanced Storage tool within the Solaris Management Console, open the Disk Sets node. Select the disk set that you want to modify. Then click the right mouse button and choose Properties. Select the Disks tab. Click Add Disk. Then follow the instructions in the wizard. For more information, see the online help.
*

To add disks to a disk set from the command line, use the following form of the metaset command:

# metaset -s diskset-name -a disk-name

-s diskset-name

Specifies the name of a disk set on which the metaset command will work.
-a

Adds disks to the named disk set.
disk-name

Specifies the disks to add to the disk set. disk names are in the form cxtxdx. N The �sx� slice identifiers are not included when adding a disk to a disk set.

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

The first host to add a disk to a disk set becomes the owner of the disk set.
Caution � Caution �

Do not add a disk with data to a disk set. The process of adding a disk with data to a disk set might repartition the disk, destroying the data.
2.

Verify the status of the disk set and disks.

# metaset

Example 19�3 Adding a Disk to a Disk Set

# metaset -s blue -a c1t6d0
# metaset
Set name = blue, Set number = 1

Host Owner
host1 Yes

Drive Dbase
c1t6d0 Yes

In this example, the host name is host1. The shared disk set is blue. Only the disk, c1t6d0, has been added to the disk set blue.

Optionally, you could add multiple disks at once by listing each disk on the command line. For example, you could use the following command to add two disks to the disk set simultaneously:

# metaset -s blue -a c1t6d0 c2t6d0

Leave a Reply

Your email address will not be published. Required fields are marked *