JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Solaris Volume Manager Administration Guide
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)

18.  Disk Sets (Overview)

19.  Disk Sets (Tasks)

Disk Sets (Task Map)

Creating Disk Sets

How to Create a Disk Set

Expanding Disk Sets

How to Add Disks to a Disk Set

How to Add Another Host to a Disk Set

How to Create Solaris Volume Manager Components in a Disk Set

Maintaining Disk Sets

How to Check the Status of a Disk Set

How to Delete Disks From a Disk Set

How to Take a Disk Set

How to Release a Disk Set

How to Delete a Host or Disk Set

Importing Disk Sets

How to Print a Report on Disk Sets Available for Import

How to Import a Disk Set From One System to Another System

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

Maintaining Disk Sets

How to Check the Status of a Disk Set

Example 19-6 Checking the Status of a Specified Disk Set

The following example shows the metaset command with the -s option followed by the name of the disk set, blue. The output from this command displays status information for that disk set. The output indicates that host1 is the disk set owner. The metaset command also displays the disks in the disk set.

red# metaset -s blue


Set name = blue, Set number = 1

Host                Owner
  host1             Yes 

Drive               Dbase
  c1t6d0             Yes 
  c2t6d0             Yes 

The metaset command by itself displays the status of all disk sets.

How to Delete Disks From a Disk Set

  1. To delete a disk from a disk set, use one of the following methods:
    • From the Enhanced Storage tool within the Solaris Management Console, open the Disk Sets node. Click the right mouse on the Disk Set that you want to release. Then choose Properties from the menu. Click the Disks tab. Follow the instructions in the online help.

    • Use the following form of the metaset command to delete a disk from a disk set.

      # metaset -s diskset-name -d disk-name
      -s diskset-name

      Specifies the name of a disk set on which to delete the disk.

      -d disk-name

      Specifies the disks to delete from the disk set. Disk names are in the form cxtxdx. The “sx” slice identifiers are not included when deleting a disk from a disk set.

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

  2. Verify that the disk has been deleted from the disk.
    # metaset -s diskset-name

    Note - To delete a disk set, you must first delete all the disks from the disk set.


Example 19-7 Deleting a Disk from a Disk Set

The following example shows the deletion of the disk, c1t6d0 from the disk set, blue.

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

Host                Owner
  host1            
    host2 

Drive               Dbase
  c2t6d0             Yes 
 

How to Take a Disk Set


Note - This option is not available for multi-owner disk sets.


Example 19-8 Taking a Disk Set

In the following example, the host, host1, communicates with the host, host2. This communication ensures that the host host2 has released the disk set before the host, host1, attempts to take the disk set.

host1# metaset
...
Set name = blue, Set number = 1
 
Host                Owner
  host1
  host2
...
host1# metaset -s blue -t
host2# metaset
...
Set name = blue, Set number = 1
 
Host                Owner
  host1                Yes
  host2
...

If host2 owned the disk set, blue, the “Owner” column in the preceding output would still have been blank. The metaset command only shows whether the host issuing the command owns the disk set.

Example 19-9 Taking a Disk Set Forcibly

In the following example, the host that is taking the disk set does not communicate with the other host. Instead, the -f option allows the disks in the disk set to be forcibly taken without warning. If the other host had owned the disk set, that host would panic when it attempted an I/O operation on the disk set.

# metaset -s blue -t -f

How to Release a Disk Set

Releasing a disk set is useful when you perform maintenance on the physical disks in the disk set. When a disk set is released, it cannot be accessed by the host. If both hosts in a disk set release the set, neither host in the disk set can access directly the volumes or hot spare pools that are defined in the disk set . However, if both hosts release the disk set, the hosts can access the disks directly through their c*t*d* names.


Note - This option is not available for multi-owner disk sets.


Before You Begin

Check Guidelines for Working With Disk Sets.

  1. Use one of the following methods to release a disk set:
    • From the Enhanced Storage tool within the Solaris Management Console, open the Disk Sets node. Click the right mouse on the disk set that you want to release. Then choose Release Ownership from the menu. For more information, see the online help.

    • To release ownership of the disk set, use the following form of the metaset command:

      # metaset -s diskset-name -r
      -s diskset-name

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

      -r

      Releases ownership of a disk set. The reservation of all the disks within the disk set is removed. The volumes within the disk set are no longer accessible.

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


      Note - Disk set ownership is only shown on the owning host.


  2. Verify that the disk set has been released on this host.
    # metaset

Example 19-10 Releasing a Disk Set

The following example shows the release of the disk set, blue. Note that there is no owner of the disk set. Viewing status from the host host1 could be misleading. A host can only determine if it does or does not own a disk set. For example, if he host, host2, were to take ownership of the disk set, the ownership would not appear from the host, host1. Only the host, host2, would display that host2 has ownership of the disk set.

host1# metaset -s blue -r
host1# metaset -s blue
 
Set name = blue, Set number = 1

Host                Owner
  host1            
    host2

Drive               Dbase
  c1t6d0             Yes 
  c2t6d0             Yes 
 

How to Delete a Host or Disk Set

Deleting a disk set requires that the disk set contains no disks and that no other hosts are attached to the disk set. Deleting the last host destroys the disk set.

  1. Use one of the following methods to delete a host from a disk set, or to delete a disk set:
    • From the Enhanced Storage tool within the Solaris Management Console, open the Disk Sets node. Click the right mouse on the disk set you want to release, then choose Delete from the menu. Follow the instructions in the online help.

    • To delete the host use the following form of the metaset command.

      metaset -s diskset-name -d -h hostname
      -s diskset-name

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

      -d

      Deletes a host from a disk set.

      -h hostname

      Specifies the name of the host to delete.

      Use the same form of the preceding metaset command to delete a disk set. Deleting a disk set requires that the disk set contains no disks and that no other hosts own the disk set. Deleting the last host destroys the disk set.

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

  2. Verify that the host has been deleted from the disk set by using the metaset command. Note that only the current (owning) host is shown. Other hosts have been deleted.
    # metaset -s disk-set

Example 19-11 Deleting a Host From a Disk Set

The following example shows the deletion of the host, host2 from the disk set, blue.

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

Host                Owner
  host1            Yes 
..host2

Drive               Dbase
  c1t2d0             Yes 
  c1t3d0             Yes 
  c1t4d0             Yes 
  c1t5d0             Yes 
  c1t6d0             Yes 
  c2t1d0             Yes
# metaset -s blue -d -h host2
# metaset -s blue
Set name = blue, Set number = 1

Host                Owner
  host1            Yes 

Drive               Dbase
  c1t2d0             Yes 
  c1t3d0             Yes 
  c1t4d0             Yes 
  c1t5d0             Yes 
  c1t6d0             Yes 
  c2t1d0             Yes

Example 19-12 Deleting the Last Host from a Disk Set

The following example shows the deletion of the last host from the disk set, blue.

host1# metaset -s blue -d -h host1
host1# metaset -s blue
 
metaset: host: setname "blue": no such set