metarecover - recover soft partition information
/sbin/metarecover [-n] [-v] [-s setname] component -p
/sbin/metarecover [-n] [-v] [-s setname] component -p {-d}
/sbin/metarecover [-n] [-v] [-s setname] component -p {-m}
The metarecover command scans a specified component to look for soft partition configuration information and to regenerate the configuration.
The following options are supported:
-d
-m
-n
-p
-s setname
This option is required to recover former sps from a diskset component or raw-device. setname must be identical to the former setname in which the sps were created. The set numbers, however, seem irrelevant.
-v
The following operand is supported:
component
component can be a slice name, component name, /dev/dsk path, or /dev/rdsk path.
Example 1 Updating Metadevice State Database Based on Disk Extent Headers
A disk containing soft partitions is moved from one system to another. The system administrator would like to use the existing soft partitions. metarecover updates the metadevice state database based on the extent headers on the disk.
# metarecover -v c0t3d0s2 -p -d
Example 2 Updating Metadevice State Database Based on Incomplete Soft Partition Creation
A system crashes in the middle of creating a new soft partition. The soft partition is in the creating state and the driver does not let that device be opened. metarecover rewrites the extent headers for the partially created soft partition and mark it as Okay.
# metarecover -v c0t3d0s2 -p -m
Example 3 Updating Extent Headers Based on Metadevice State Database
Someone accidentally overwrote a portion of a disk leaving extent headers destroyed. metarecover rewrites the extent headers to ensure a valid soft partition configuration, though user data is not recovered.
# metarecover -v d5 -m
The following example implements the same command using a descriptive name.
# metarecover -v myvolume -m
Example 4 Validating Soft Partition Configuration
To validate the existing soft partition configuration, use metarecover with only the -p flag.
# metarecover c0t3d0s2 -p
The following exit values are returned:
0
>0
See attributes(5) for descriptions of the following attributes:
|
mdmonitord(1M), metaclear(1M), metadb(1M), metadetach(1M), metahs(1M), metainit(1M), metaoffline(1M), metaonline(1M), metaparam(1M), metarename(1M), metareplace(1M), metaroot(1M), metaset(1M), metassist(1M), metastat(1M), metasync(1M), metattach(1M), md.tab(4), md.cf(4), mddb.cf(4), md.tab(4), attributes(5), md(7D)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |