How to Create an md.tab
File
Create an /etc/lvm/md.tab
file on each node in the cluster. Use the
md.tab
file to define Solaris Volume Manager volumes for the disk sets that you
created.
Note:
If you are using local volumes, ensure that local volume names are distinct from the device IDs that are used to form disk sets. For example, if the device ID/dev/did/dsk/d3
is used in a disk set, do not use the name /dev/md/dsk/d3
for a local volume. This requirement does not apply to shared volumes, which use the naming convention /dev/md/
setname
/{r}dsk/d
#.
Example 4-4 Sample md.tab
File
The following sample md.tab
file defines the disk set that is named
dg-schost-1
. The ordering of lines in the md.tab
file is
not important.
dg-schost-1/d0 -m dg-schost-1/d10 dg-schost-1/d20 dg-schost-1/d10 1 1 /dev/did/rdsk/d1s0 dg-schost-1/d20 1 1 /dev/did/rdsk/d2s0
The sample md.tab
file is constructed as follows.
-
The first line defines the device
d0
as a mirror of volumesd10
andd20
. The-m
signifies that this device is a mirror device.dg-schost-1/d0 -m dg-schost-1/d0 dg-schost-1/d20
-
The second line defines volume
d10
, the first submirror ofd0
, as a one-way stripe.dg-schost-1/d10 1 1 /dev/did/rdsk/d1s0
-
The third line defines volume
d20
, the second submirror ofd0
, as a one-way stripe.dg-schost-1/d20 1 1 /dev/did/rdsk/d2s0
Next Steps
Activate the volumes that are defined in the md.tab
files. Go to How to Activate Volumes.