To mount an HDLM-managed device automatically by setting a new HDLM device:
Identify the name of the logical device file of the HDLM device to be mounted automatically.
Execute the view operation of the HDLM command, and identify the applicable name of the logical device file of the HDLM and SCSI devices. For details on the view operation, see COM_MNL_VIEW_(DISPLAYS_INFORMATION)=GUID-311C4B1B-E8E6-4963-9C3C-6D33AD0261DD=3=EN=.html. The following is an actual example.
Example of executing the dlnkmgr command's view operation (with -drv specified):
# /opt/DynamicLinkManager/bin/dlnkmgr view -drv PathID HDevName Device LDEV 000000 sddlmaa /dev/sdh VSP_Gx00.410025.00280B 000001 sddlmab /dev/sdi VSP_Gx00.410025.00280C 000002 sddlmac /dev/sdj VSP_Gx00.410025.00280D 000003 sddlmaa /dev/sdk VSP_Gx00.410025.00280B 000004 sddlmab /dev/sdl VSP_Gx00.410025.00280C 000005 sddlmac /dev/sdm VSP_Gx00.410025.00280D 000006 sddlmaa /dev/sdn VSP_Gx00.410025.00280B 000007 sddlmab /dev/sdo VSP_Gx00.410025.00280C 000008 sddlmac /dev/sdp VSP_Gx00.410025.00280D 000009 sddlmaa /dev/sdq VSP_Gx00.410025.00280B 000010 sddlmab /dev/sdr VSP_Gx00.410025.00280C 000011 sddlmac /dev/sds VSP_Gx00.410025.00280D KAPL01001-I The HDLM command completed normally. Operation name = view(-vstv), completion time = yyyy/mm/dd hh:mm:ss #
In the example, the name of the logical device file of the HDLM device that corresponds to /dev/sdh can be identified as sddlmaa.
Add the name of the logical device file of the HDLM device that was confirmed in step 1 to the /etc/fstab file.
The following is an example of editing the /etc/fstab file:
For FC-SAN environments
/dev/sddlmaa /mnt/sdh ext2 defaults 0 0
For IP-SAN environments
If the OS is Red Hat Enterprise Linux 7:
/dev/sddlmaa /mnt/sdh ext2 _netdev 0 0
If the OS is SUSE LINUX Enterprise Server 12 or 15:
/dev/sddlmaa /mnt/sdh ext2 nofail 0 0
For QLogic 8400 Series (FCoE) environments
If the OS is Red Hat Enterprise Linux 7:
/dev/sddlmaa /mnt/sdh ext2 _netdev 0 0
This example adds a line for /dev/sddlmaa (name of the logical device file of the HDLM device). For IP-SAN environments, specify _netdev or nofail for the mount option.In addition, for QLogic 8400 Series (FCoE) environments, specify _netdev for the mount option.
Restart the host or manually mount the HDLM device.
HDLM-managed devices are mounted by using the logical device file name of the HDLM device.