HP Cluster Management Utility CMU Installation Guide with Serviceguard Version 4.0 (May 2009)

17
create /etc/lvm_[hostname] files
On both nodes, execute the following command:
WARNING!
The command below create the file /etc/lvm/lvm_[hostname].conf. The presence of this
file ensures exclusive access of the shared volume by only one of the two cmu management servers at a
time.
# echo activation { volume_list=[\"@$(uname -n)\"] } >
/etc/lvm/lvm_$(uname -n).conf
Verify that the files have correctly been been created:
# ls /etc/lvm/lvm_*
/etc/lvm/lvm_cmumgt1.conf
#cat /etc/lvm/lvm_cmumgt1
activation { volume_list=["@cmumgt1"] }
run vgscan
On the first server (the one where the lg was created):
# vgscan
Reading all physical volumes. This may take a while...
Found volume group "vgcmu" using metadata type lvm2
On the second server:
# vgscan
Reading all physical volumes. This may take a while...
No volume groups found
Do not be surprised if the logical volume is not seen on the second server. It must be rebooted
in order to be able to see the logical volume.
Save LVM configuration to second node
Reboot the second node; after reboot, ssh to it and execute the following command:
# vgcfgbackup vgcmu
Activate the volume on one server
Activate
# vgchange --addtag $(uname -n) vgcmu
Volume group "vgcmu" successfully changed
# vgchange -a y vgcmu
1 logical volume(s) in volume group "cmu" now active
Verify tag status
# vgs -o +tags vgcmu
VG #PV #LV #SN Attr VSize VFree VG Tags
cmu 1 1 0 wz--n- 50.00G 30.00G cmumgt1
Format the shared volume
CAUTION:
This step has to be performed on only one server.
Check on which server the shared volume is active:
# vgs -o +tags vgcmu
VG #PV #LV #SN Attr VSize VFree VG Tags
cmu 1 1 0 wz--n- 50.00G 30.00G cmumgt2