How to Add a Disk Set to a Zone Cluster (CLI)

Perform this procedure to add an entire Solaris Volume Manager disk set to a zone cluster.

Note:

Alternatively, you can use the clsetup utility to perform this task. See How to Add a Global Storage Device to a Zone Cluster (clsetup).
  1. Assume the root role on a node of the global cluster that hosts the zone cluster.

    You perform all steps of this procedure from a node of the global cluster.

  2. Identify the disk set to add to the zone cluster and determine whether it is online.
    phys-schost# cldevicegroup status
  3. If the disk set that you are adding is not online, bring it online.
    phys-schost# cldevicegroup online diskset
  4. Determine the set number that corresponds to the disk set to add.
    phys-schost# ls -l /dev/md/diskset
    lrwxrwxrwx  1 root root  8 Jul 22 23:11 /dev/md/diskset -> shared/set-number
  5. Add the disk set for use by the zone cluster.

    You must use a separate add device session for each set match= entry.

    Note:

    An asterisk (*) is used as a wildcard character in the path name.
    phys-schost# clzonecluster configure zone-cluster-name
    clzc:zone-cluster-name> add device
    clzc:zone-cluster-name:device> set match=/dev/md/diskset/*dsk/*
    clzc:zone-cluster-name:device> end
    clzc:zone-cluster-name> add device
    clzc:zone-cluster-name:device> set match=/dev/md/shared/set-number/*dsk/*
    clzc:zone-cluster-name:device> end
    clzc:zone-cluster-name> verify
    clzc:zone-cluster-name> commit
    clzc:zone-cluster-name> exit
    match=/dev/md/diskset/*dsk/*

    Specifies the full logical device path of the disk set

    match=/dev/md/shared/N/*dsk/*

    Specifies the full physical device path of the disk set number

  6. Reboot the zone cluster.

    The change becomes effective after the zone cluster reboots.

    phys-schost# clzonecluster reboot zone-cluster-name

Example 6-11 Adding a Disk Set to a Zone Cluster (CLI)

The following example adds the disk set oraset to the sczone zone cluster. The set number of the disk set is 3.

phys-schost-1# clzonecluster configure sczone
clzc:sczone> add device
clzc:sczone:device> set match=/dev/md/oraset/*dsk/*
clzc:sczone:device> end
clzc:sczone> add device
clzc:sczone:device> set match=/dev/md/shared/3/*dsk/*
clzc:sczone:device> end
clzc:sczone> verify
clzc:sczone> commit
clzc:sczone> exit

phys-schost-1# clzonecluster reboot sczone