Configuring DMP to work with an LVM root disk over a SAN requires that the system is correctly configured to use the boot device over all possible paths.
To configure DMP support for booting over a SAN
The PVID and volume group entries in the second and third columns should be identical for all the paths. Use the lspv command for the root volume group to verify that the PVID and volume group entries are set correctly.
In this example, the LVM root disk is multipathed with 4 paths. The output from the lspv command for the root volume group (rootvg) is as follows:
# lspv | grep rootvg hdisk374 00cbf5ce56def54d rootvg active hdisk375 00cbf5ce56def54d rootvg hdisk376 00cbf5ce56def54d rootvg hdisk377 00cbf5ce56def54d rootvg
If the PVID and volume group entries are not set correctly on any of the paths, use the chdev command to set the correct value.
For example, the following output shows that the hdisk377
path is not set correctly:
# lspv | grep rootvg hdisk374 00cbf5ce56def54d rootvg active hdisk375 00cbf5ce56def54d rootvg hdisk376 00cbf5ce56def54d rootvg hdisk377 none None
To correct the setting for the path, use the following command:
# chdev -l hdisk377 -a pv=yes
hdisk377 changed
The output of the lspv command now shows the correct values:
# lspv | grep rootvg hdisk374 00cbf5ce56def54d rootvg active hdisk375 00cbf5ce56def54d rootvg hdisk376 00cbf5ce56def54d rootvg hdisk377 00cbf5ce56def54d rootvg
Check that the output from the bootlist command is correct:
# bootlist -m normal -o hdisk374 blv=hd5 hdisk375 blv=hd5 hdisk376 blv=hd5 hdisk377 blv=hd5
In this example, the output should show the default boot volume, hd5
, for each path.
If the blv option is not set for a path to the disk, use the bootlist command to set it:
# bootlist -m normal hdisk374 hdisk375 hdisk376 hdisk377 blv=hd5
Run the following command to configure DMP on the root disk:
# vxdmpadm native enable vgname=rootvg
Reboot the system. DMP takes control of the SAN boot device to perform load balancing and failover.
Verify whether DMP controls the root disk.
# vxdmpadm native list vgname=rootvg