POWERVC Quick Deployment Guide
POWERVC Quick Deployment Guide
POWERVC Quick Deployment Guide
2.2 Mount CD/DVD block device (if needed, since it could be a physical
DVD or a virtual DVD loaded from VIO VML)
# mkdir -p /media/rhel77dvd
# mount /dev/sr0 /media/rhel77dvd
3.2 Install the PowerVC software and update to latest fix if applicable
# cd /POWERVC_SOFTWARE_INSTALL_DIR
# ./install -t
# ./install
# cd /POWERVC_SOFTWARE_UPDATE_DIR
# ./update
- If you want to capture a non-rootvg volume, you need to create and run the following
script inside the cloud-init home (/opt/freeware/etc/cloud)
Each time before you capture the machine.
- This script is included in the RPM source:
---SCRIPT__START---
#!/usr/bin/sh
#############
# Save disk mappings to be restored during deploy
# Each line of the mapping file contains "<vgname> <pvid>" as output by the lspv
command.
#############
CLOUD_DIR="/etc/cloud"
PVID_VG_MAPPING_FILE="$CLOUD_DIR/pvid_to_vg_mappings"
if [ ! -d "$CLOUD_DIR" ]
then
/usr/bin/mkdir -p $CLOUD_DIR
fi
LANG=C; /usr/sbin/lspv | /usr/bin/awk '{if ($2 != "none" && $3 != "rootvg") print $3 " "
$2}' > $PVID_VG_MAPPING_FILE
###SCRIPT__END###
- You then shutdown the machine and start the capturing procedure from PowerVC.
- During the deployment, cloud-init modifies the /etc/resolv.conf file and added a line
“search localdomain” which might cause issues for the machine.
- For that reason, a custom script can be used as a post deployment script
---SCRIPT__START---
#!/usr/bin/ksh
cat /etc/resolv.conf | grep -v "localdomain" > /etc/resolv.conf
result=`wc -l /etc/resolv.conf | awk '{print $1}'`
if [[ $result -eq 0 ]];then
rm /etc/resolv.conf
fi
---SCRIPT__END---