Solstice DiskSuite 4.2.1 User's Guide

Creating Disksets

This section describes how to create disksets, and populate them with hosts and disk drives.


Note -

Currently, disksets are only supported on SPARCstorage Array disks.


Preliminary Information for Creating Disksets


Note -

Disksets must be created and configured using the DiskSuite command line interface. After you have created a diskset, you can administer state database replicas, metadevices, and hot spare pools within a diskset using either DiskSuite Tool or the command line utilities.


How to Create a Diskset (Command Line)

The high-level steps in creating a diskset are:

Before creating a diskset:


Note -

If you are not familiar with how to configure the same device names for the shared drives in the diskset, refer to "How to Configure Disk Drive Device Names for a Diskset (Command Line)".


  1. Make sure you have met the prerequisites ("Prerequisites for Creating DiskSuite Objects") and have read the preliminary information ("Preliminary Information for Creating Disksets").

  2. Create the diskset by defining the host(s) that have access to the devices.


    # metaset -s setname -a -h host...
    

    In this command,

    -s setname

    Specifies the name of a diskset on which metaset(1M) will work.

    -a

    Adds hosts to the named diskset. DiskSuite supports a maximum of two hosts per diskset. 

    -h host...

    Specifies one or more hosts to be added to a diskset. Adding the first host creates the set. The second host can be added later, but it is not accepted if all the drives within the set cannot be found on the specified host. host is the same name found in /etc/nodename.

  3. Check the status of the new diskset with the metaset(1M) command.


    # metaset
    

Example -- Creating Two Disksets


red# metaset -s relo-red -a -h red blue
red# metaset -s relo-blue -a -h red blue
red# metaset
Set name = relo-red, Set number = 1
 
Host                Owner
  red
  blue
 
Set name = relo-blue, Set number = 2
 
Host                Owner
  red
  blue

In this example, you create two shared disksets, relo-red and relo-blue, from the host red. The host names are red and blue, each with their own local disksets. The metaset command shows the status. At this point, neither set has an owner. The host that adds disks to the set will become the owner by default.

How to Add Drives to a Diskset (Command Line)

The following conditions must be satisfied for a drive to be accepted into a diskset:

  1. Make sure you have met the prerequisites ("Prerequisites for Creating DiskSuite Objects") and have read the preliminary information ("Preliminary Information for Creating Disksets").

  2. Add drives to the diskset.


    # metaset -s setname -a drivename...
    

    In this command,

    -s setname

    Specifies the name of a diskset on which metaset(1M) will work.

    -a

    Adds drives to the named diskset. 

    drivename...

    Specifies the drives to add to the diskset. Drive names are in the form cxtxdx; no "sx" slice identifiers are at the end of the name. They need to be the same on all hosts in the diskset.

    The first host to add a drive to a diskset becomes the implicit owner of the diskset.


    Caution - Caution -

    Do not add a disk with data; the process of adding it to the diskset repartitions the disk, destroying any data.


  3. Use the metaset(1M) command to verify the status of the diskset and drives.


    # metaset
    

Example -- Adding Drives to a Diskset


red# metaset -s relo-red -a c1t2d0 c1t3d0 c2t2d0 c2t3d0 c2t4d0 c2t5d0
red# metaset
Set name = relo-red, Set number = 1
 
Host                Owner
  red                Yes
  blue
 
Drive               Dbase
  c1t2d0             Yes
  c1t3d0             Yes
  c2t2d0             Yes
  c2t3d0             Yes
  c2t4d0             Yes
  c2t5d0             Yes
 
Set name = relo-blue, Set number = 2
 
Host                Owner
  red
  blue

In this example, the host names are red and blue, each with their own local disksets. The two shared disksets are relo-red and relo-blue. The disks in the set relo-red are normally accessed by host red, but may be accessed by host blue if red fails. At this point, no disks have been added to the diskset relo-blue.