Escolar Documentos
Profissional Documentos
Cultura Documentos
/etc/lvm/md.tab
1. The file is empty by default. The file is only used when metainit command is issued by the
administrator. It is configured manually.
2. It can be populated by appending the output of # metastat -p. For example #metastat -p
>> /etc/lvm/md.tab.
3. It can be used to recreate all the metadevices in one go. Best used in recovery of SVM
configurations.
For example
# metainit -a
# metainit dxx
/etc/lvm/md.cf
The configuration file /etc/lvm/md.cf contains the automatically generated configuration
information for the default (unspecified or local) disk set.
This file can also be used to recover the SVM configuration If your system loses the
information maintained in the state database.
Again do not edit this file manually.
/kernel/drv/md.conf
The configuration file md.conf contains fields like nmd (i.e. number of volumes
(metadevices) that the configuration supports) etc. The file can be edited to change the default
values for various such parameters.
/etc/rcS.d/S35svm.init
The RC script configures and starts SVM at boot and can be used to start/stop the daemons.
/etc/rc2.d/S95svm.sync
The RC script checks the SVM configuration at boot, start sync of mirrors if necessary and
start the active monitoring daemon (mdmonitord).
first blk
block count
a m pc luo
a
pc luo
W pc l
16
16
8192
8192
unknown
/dev/dsk/c0t0d0s7
/dev/dsk/c0t1d0s7
8192
/dev/dsk/c0t2d0s7
Check for the W flag or unknown first block for the 3rd replica. W or unknown indicates a
failed replica.
- the metadevice
- the meatadevice
# metastat -p
To check the configuration and status of a particular device :
# metastat d3
Hot spare pools
To create a hot spare pool with no disks :
# metainit hsp01
To add a slice/disk to the hot spare pool :
# metahs -a hsp01 c0t1d0s4
Remember to add hot spare disk/slice in a order smallest to largets. So when there is a need of
hot spare disk smallest capable disk will be used from the host spare pool to replace the failed
one.
To add a slice to all hot spare pools :
# metahs -a all c1t1d0s4
To make hot spare pool hsp01 available to metadevice d1 (submirror or RAID 5) :
# metaparam -h hsp01 d1
Replacing the disk slice in hot spare (c1t1d0s4 is replaced by c2t1d0s4) :
# metahs -r hsp001 c1t1d0s4 c2t1d0s4
Remove a disk slice (c1t1d0s4) from all hot spares :
# metahs -d all c1t1d0s4
Remove a disk slice from the host spare pool hsp01 :
# metahs -d hsp01 c1t1d0s4
Re-enable a hot spare that was previously unavailable :
# metahs -e c1t1d0s4
To remove a hot spare pool :
# metahs -d hsp001
To check the status of hot spare pools :
# metahs -i
# metastat
Disksets
The syntax of command to use on metasets is similar to those of the metadevices :
# command -s options
Troubleshooting commands
Below are some of the troubleshooting commands. Use the -s [metaset] option when using
the commands on the metasets.
# metastat
# metastat -t
state/status.)
# metastat -p
# metadb -i
# prtvtoc (on relevant devices)
# mount
# iostat -iE
# format
Also check for any changes or errors in the files :
/var/adm/messages
/etc/lvm/md.cf
/etc/lvm/mddb.cf