Importing Disk Sets

importing a disk set

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

How to Print a Report on Disk Sets Available for Import

  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 (metadb) replica location and status on the disks of unconfigured disk sets available for import on the system.

Example 19.13. Reporting on Disk Sets Available for Import

The following examples show how to print a report on disk sets available for import. The output from the metaimport command distinguishes between regular disk sets and replicated disk sets.

# metaimport -r
Disksets eligible for import:

1)  Found replicated diskset containing disks :
  c1t2d0
  c1t3d0
    Creation time:      Tue May 3 14:27:29 2006
For more information about this set:
  metaimport -r -v c1t2d0
To import this set:
  metaimport -s <newsetname> c1t2d0


2)  Found replicated diskset containing disks :
  c1t12d0
  c1t9d0
    Creation time:      Tue May 3 14:30:00 2006
For more information about this set:
  metaimport -r -v c1t12d0
To import this set:
  metaimport -s <newsetname> c1t12d0

Number of disksets eligible for import: 2

# metaimport -r -v c1t2d0
Disksets eligible for import:

1)  Found regular diskset containing disks:
  c1t2d0
  c1t3d0
    Metadatabase information:
        flags           first blk       block count
         a        u     16              8192            /dev/dsk/c1t2d0s7
         a        u     16              8192            /dev/dsk/c1t3d0s7

    Metadevice information:

    Creation time:      Tue May 23 13:05:39 2006
    Last modified time: Tue May 23 13:05:39 2006
    To import this diskset:
      metaimport -s <newsetname> c1t2d0

The following output of metaimport r reports the following conditions in the system's disk set configuration.

  • A partial disk set in which one or more disks are unavailable

  • Disk conflicts where the disk is detected in more than one disk set

  • A replicated disk set

  • The recommended disk set to import

    Note

    A disk can also be reported as unavailable and in conflict at the same time.

# metaimport -r

Disksets eligible for import:

1)  Found partial regular diskset containing disks:
  c1t2d0 (CONFLICT)
  c3t50020F230000FA57d0 (UNAVAIL)
  c3t50020F230000FA57d1 (UNAVAIL)
    (UNAVAIL) WARNING: This disk is unavailable on this system.
    Import may corrupt data in the diskset.

    (CONFLICT) WARNING: This disk has been reused 
in another diskset or system c onfiguration.
    Import may corrupt data in the diskset.

    Creation time:      Tue May 23 13:05:39 2006
    For more information about this diskset:
      metaimport -r -v c1t2d0
    To import this diskset:
      metaimport -f -s <newsetname>  c1t2d0


2)  Found regular diskset containing disks:
  c1t2d0 (CONFLICT)
  c1t3d0
  c1t4d0
    (CONFLICT) WARNING: This disk has been reused 
in another diskset or system c onfiguration.
    Import may corrupt data in the diskset.


    Creation time:      Tue May 23 13:04:57 2006
    For more information about this diskset:
      metaimport -r -v c1t3d0
    To import this diskset:
      metaimport -f -s <newsetname> c1t3d0


3)  Found replicated diskset containing disks:
  c3t50020F23000100F7d13
  c3t50020F23000100F7d15
  c3t50020F23000100F7d14
    Creation time:      Thu May 25 14:56:13 2006
    For more information about this diskset:
      metaimport -r -v c3t50020F23000100F7d13
    To import this diskset:
      metaimport -s <newsetname> c3t50020F23000100F7d13


Number of disksets eligible for import: 3

Warning:  The following disks have been detected in more than one set.
Import recommendation based upon set creation time.
Proceed with the import with caution.
  c1t2d0  - must import with set created at : Tue May 23 13:05:39 2006
#

Importing a disk set is blocked if the disk set has disk conflicts. The preceding example recommends that c1t2d0 be imported with the set created at 13:05:39 on Tuesday, May 23. If you import a different disk set instead, the following message is displayed:

# metaimport -f -s <setname> c1t3d0

  Importing regular diskset containing disks:
   c1t2d0 (CONFLICT)
   c1t3d0
   c1t4d0

     (CONFLICT) WARNING: This disk has been reused in another diskset 
or system configuration.
     Import may corrupt data in the diskset.

      Creation time:      Tue May 23 13:04:57 2006

   Warning:  The following disks have been detected in more than one set. 
Import recommendation based upon set creation time. 
Proceed with the import with caution.
   c1t2d0  - must import with set created at : Tue May 23 13:05:39 2006 
To import this set, c1t2d0 must be removed from the system 
#

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

  1. Become superuser.

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

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

    # metaimport -s diskset-name disk-name
    
    
    s diskset-name

    Specifies the name of the disk set being created.

    disk-name

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

  4. Verify that the disk set has been imported.

    # metaset -s diskset-name
    
    

Example 19.14. 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
# metaset -s red


Set name = red, Set number = 1

Host                Owner
  host1            Yes

Drive    Dbase

c1t2d0   Yes  

c1t3d0   Yes  

c1t8d0   Yes