The introduction of device ID support for disk sets in Solaris Volume Manager allows you to recover storage from known disk sets. The metaimport command allows you to import known disk sets from one system to another system. Both systems must contain existing Solaris Volume Manager configurations that include device ID support. For more information on device ID support, see Asynchronous Shared Storage in Disk Sets.
Before you import a disk set, make sure that the value of the nmd field in the /kernel/drv/md.conf file is set to include the namespace of the volumes you are importing. If the disk set has volumes with names outside of the range set by the nmd field, the import fails. Set the value of the nmd field to include the namespace of the volumes, reboot the system, and then perform the import. For example, if the disk set has a volume named d200, the import fails if nmd is set to 128. You need to increase the value of the nmd field to at least 201 for the import to succeed. For information and procedures associated with changing the nmd field, see How to Increase the Number of Default Volumes.
Become superuser.
Obtain a report on disk sets available for import.
# metaimport -r -v |
Provides a report of the unconfigured disk sets available for import on the system.
Provides detailed information about the state database replica location and status on the disks of unconfigured disk sets available for import on the system.
The following example shows 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 |
Become superuser.
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 on modifying the nmd field, see How to Increase the Number of Default Volumes.
Verify that a disk set is available for import.
# metaimport -r -v |
Import an available disk set.
# metaimport -s diskset-name drive-name |
Specifies the name of the disk set being created.
Identifies a disk (c#t#d#) containing a state database replica from the disk set being imported.
Verify that the disk set has been imported.
# metaset -s diskset-name |
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 |