====== HDLM ====== ===== Best Practice for HDLM on LPAR and VIOS ===== Settings for VIOS and LPARs to allow partition mobility. It's important to set the ODM parameter to allow NPIV, else no mobility. I change all these settings because it was locking all new devices and prevent them to be available. Check the settings: [root@vios1]:/home/padmin# /usr/DynamicLinkManager/bin/dlnkmgr view -sys; echo $? [root@vios1]:/home/padmin# /usr/DynamicLinkManager/bin/dlmodmset -o Change to best practice: [root@vios1]:/home/padmin# /usr/DynamicLinkManager/bin/dlnkmgr set -dpc on -s [root@vios1]:/home/padmin# /usr/DynamicLinkManager/bin/dlnkmgr set -iem on -s [root@vios1]:/home/padmin# /usr/DynamicLinkManager/bin/dlnkmgr set -afb on -intvl 15 -s [root@vios1]:/home/padmin# /usr/DynamicLinkManager/bin/dlnkmgr set -pchk on -intvl 15 -s [root@vios1]:/home/padmin# /usr/DynamicLinkManager/bin/dlmodmset -v on -s Change also default disk settings reserve_policy (to prevent a lock!, default is PR_exclusive)and queue_depth on VIOS for Hitachi: [root@vios1]:/home/padmin# odmget -q uniquetype="disk/fcp/Hitachi" PdAt | grep -p "reserve_policy|queue_depth" To change it's now easy with chdef command: [root@vios1]:/home/padmin# chdef -a reserve_policy=no_reserve -c disk -s fcp -t Hitachi [root@vios1]:/home/padmin# chdef -a queue_depth=20 -c disk -s fcp -t Hitachi Then Reboot Do it also on all LPARs ===== Use mksysb to clone LPARs or VIOS with HDLM ===== When you restore an mksysb from a partition that has HDLM installed, then Rebuild the HDLM devices, else your driver will be in a bad state: [root@vios1]:/home/padmin# /usr/DynamicLinkManager/bin/dlnkmgr view -sys; echo $? This will give you a non 0 value, or dead state... Then disable all Hitachi devices, if using it on VIOS, then unmap Hitachi disks, and put then in defined: for disk in $(lsdev -Cc | grep Hitachi | awk '{print $1}') do rmdev -l $disk done If boot on Hitachi disks, then the following command will reboot the LPAR or VIOS: [root@vios1]:/home/padmin# /usr/DynamicLinkManager/bin/dlmpostrestore It will recreate the /dev/dlmadrv, /dev/rdlmcldrv, /dev/rdlmfdrvio And reboot, then apply the Best practice parameters, and reboot again