Solaris Volume Manager Administration Guide

Importing Disk Sets

The metaimport command allows you to import disk sets from one system to another.


Note –

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


ProcedureHow to Print a Report on Disk Sets Available for Import

Steps
  1. Become superuser.

  2. Obtain a report on disk sets available for import.


    # metaimport -r -v
    
    -r

    Provides a report of the unconfigured disk sets available for import on the system.

    -v

    Provides detailed information about the state database replica location and status on the disks of unconfigured disk sets available for import on the system.


Example 21–12 Reporting on Disk Sets Available for Import

The following examples show how to print a report on disk sets available for import.


# metaimport -r
Drives in diskset including disk c1t2d0:
  c1t2d0
  c1t3d0
  c1t8d0
More info:
  metaimport -r -v c1t2d0
Import:
  metaimport -s <newsetname> c1t2d0

# metaimport -r -v c1t2d0
Import: metaimport -s <newsetname> c1t2d0
Last update: Mon Dec 29 14:13:35 2003
Device       offset       length replica flags
c1t2d0           16         8192      a        u     
c1t3d0           16         8192      a        u     
c1t8d0           16         8192      a        u     

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

Steps
  1. Become superuser.

  2. Determine if the volume names are within the range of the nmd value. Modify the nmd field in /kernel/drv/md.conf, if needed. For more information, see How to Increase the Number of Default Volumes.

  3. Verify that a disk set is available for import.


    # metaimport -r -v
    
  4. Import an available disk set.


    # metaimport -s diskset-name drive-name
    
    - s diskset-name

    Specifies the name of the disk set being created.

    drive-name

    Identifies a disk (c#t#d#) containing a state database replica from the disk set being imported.

  5. Verify that the disk set has been imported.


    # metaset -s diskset-name
    

Example 21–13 Importing a Disk Set

The following example shows how to import a disk set.


# metaimport -s red c1t2d0
Drives in diskset including disk c1t2d0:
  c1t2d0
  c1t3d0
  c1t8d0
More info:
  metaimport -r -v c1t2d0
# metaset -s red


Set name = red, Set number = 1

Host                Owner
  lexicon            Yes

Drive    Dbase

c1t2d0   Yes  

c1t3d0   Yes  

c1t8d0   Yes