
a. Edit the
/etc/lvm/lvm.conf
file.
node/6#
vi -n 6 /etc/lvm/lvm.conf
b. Add the following custom filter to the configuration file:
filter = [ "a|/dev/disk/by-id/dm-uuid-.*mpath-.*|", "r/.*/" ]
c. Remove any previous filters from the configuration file.
5. Edit the
/etc/sysconfig/lvm
file to append the following string.
LVM_ACTIVATED_ON_DISCOVERED="enable" #LVM_VGS_ACTIVATED_ON_BOOT="`grep '/
dev/' /etc/fstab | sed 's/\t.*//g' | sed 's,/*[^/]\+/*$,,' | sed '$!N; /^\(.*\)
\n\1$/!P; D'`" LVM_VGS_ACTIVATED_ON_BOOT="fs1"
6. Initialize LVM physical disks and verify intitialization.
For this configuration, all the disks in
/dev/disk/by-id/
are for the LVM volumes.
a. Initialize LVM physical disks (while logged on to
nid00006
).
nid00006#
pvcreate /dev/disk/by-id/dm-uuid-
mpath-360080e50002ff41a0000040b517a2609
Physical volume "/dev/disk/by-id/dm-uuid-
mpath-360080e50002ff41a0000040b517a2609" successfully created
nid00006#
pvcreate /dev/disk/by-id/dm-uuid-
mpath-360080e50002ff41a0000040e517a261e
Physical volume "/dev/disk/by-id/dm-uuid-
mpath-360080e50002ff41a0000040e517a261e" successfully
created
b. Display the volumes to verify that the disks have been initialized.
nid00006#
pvdisplay
"/dev/disk/by-id/dm-uuid-mpath-360080e50002ff41a0000040b517a2609" is a new
physical \
volume of "7.28 TiB"
--- NEW Physical volume ---
PV Name /dev/disk/by-id/dm-uuid-mpath-360080e50002ff41a0000040b517a2609
VG Name
PV Size 7.28 TiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID Llb2m3-3AZC-LuWT-ttfH-2iB2-GH3J-oas5W1
"/dev/disk/by-id/dm-uuid-mpath-360080e50002ff41a0000040e517a261e" is a new
physical \
volume of "7.28 TiB"
--- NEW Physical volume ---
PV Name /dev/disk/by-id/dm-uuid-mpath-360080e50002ff41a0000040e517a261e
VG Name
PV Size 7.28 TiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Cray DVS
S3016
161