The following document describes the procedure used to upgrade the EGATE application Servers in the MDC data center.
Bridge Line:
Notification List:
mdctxuapp83:
Start Time:
Duration:
clstat smitty clverify
mdctxuapp80:
Start Time:
Duration:
smitty clstop
mdctxuapp83:
Start Time:
Duration:
# run loop on mdctxuapp80 to generate list of commands to run on 83 for vg in $( lsvg -o | sort | grep -v rootvg) do pv=$( lspv | grep ${vg} | grep '^vpath' | head -1 | awk '{ print $1 }' ) PVID=$( lspv | grep "^${pv} " | head -1 | awk '{ print $2 }' ) MJNBR=$( ls -l /dev/${vg} | awk '{ print $5 }' ) MJNBR="${MJNBR%,}" print -- "if PV=\$( lspv | grep \"^vpath.*${PVID}\" | head -1 | awk '{ print \$1 }' )" print -- "then exportvg ${vg}" print -- " importvg -V ${MJNBR} -n -y ${vg} \${PV}" print -- " varyonvg ${vg}" print -- " chvg -a n ${vg}" print -- " varyoffvg ${vg}" print -- "fi" done # run the following importvg commands on mdctxuapp83 to fix 80s VGs if PV=$( lspv | grep "^vpath.*000cadddc26ccf3f" | head -1 | awk '{ print $1 }' ) then exportvg egate103vg importvg -V 203 -n -y egate103vg ${PV} varyonvg egate103vg chvg -a n egate103vg varyoffvg egate103vg fi if PV=$( lspv | grep "^vpath.*000cadddc26c2cd6" | head -1 | awk '{ print $1 }' ) then exportvg egate104vg importvg -V 204 -n -y egate104vg ${PV} varyonvg egate104vg chvg -a n egate104vg varyoffvg egate104vg fi if PV=$( lspv | grep "^vpath.*000cadddc26c3b01" | head -1 | awk '{ print $1 }' ) then exportvg egate105vg importvg -V 205 -n -y egate105vg ${PV} varyonvg egate105vg chvg -a n egate105vg varyoffvg egate105vg fi if PV=$( lspv | grep "^vpath.*000c644ddf34e037" | head -1 | awk '{ print $1 }' ) then exportvg egate14vg importvg -V 114 -n -y egate14vg ${PV} varyonvg egate14vg chvg -a n egate14vg varyoffvg egate14vg fi if PV=$( lspv | grep "^vpath.*000c644d227a4992" | head -1 | awk '{ print $1 }' ) then exportvg egate19vg importvg -V 119 -n -y egate19vg ${PV} varyonvg egate19vg chvg -a n egate19vg varyoffvg egate19vg fi if PV=$( lspv | grep "^vpath.*000c644d22206319" | head -1 | awk '{ print $1 }' ) then exportvg egate1vg importvg -V 101 -n -y egate1vg ${PV} varyonvg egate1vg chvg -a n egate1vg varyoffvg egate1vg fi if PV=$( lspv | grep "^vpath.*000cadddc26c4204" | head -1 | awk '{ print $1 }' ) then exportvg egate2vg importvg -V 102 -n -y egate2vg ${PV} varyonvg egate2vg chvg -a n egate2vg varyoffvg egate2vg fi if PV=$( lspv | grep "^vpath.*000c644db8cf9057" | head -1 | awk '{ print $1 }' ) then exportvg egate6vg importvg -V 106 -n -y egate6vg ${PV} varyonvg egate6vg chvg -a n egate6vg varyoffvg egate6vg fi
mdctxuapp83:
Start Time:
Duration:
for i in $( lsvg | grep -v rootvg ) do dpovgfix ${i} done lsvpcfg
mdctxuapp83:
Start Time:
Duration:
clstat smitty clverify
mdctxuapp83:
Start Time:
Duration:
smitty cl_resgrp
mdctxuapp80:
Start Time:
Duration:
cd /etc /tmp/tz.ksh grep "^TZ=" /etc/environment ls -l /etc/environment* # grep output should be "TZ=CST6CDT,M3.2.0,M11.1.0" # ls output should produce multiple versions of /etc/environment
mdctxuapp80:
Start Time:
Duration:
rm -rf /tmp/fwupdate mkdir /tmp/fwupdate cd /tmp/fwupdate chmod 755 /tmp/microcode/7017S8XF.BIN /tmp/microcode/7017S8XF.BIN sum S8xU9.img # sum output should be 37427 3284 cd /usr/lpp/diagnostics/bin ./update_flash -f /tmp/fwupdate/S8xU9.img # enter 1 to continue and reboot the system
mdctxuapp80:
Start Time:
Duration:
lscfg -vp | grep -i alterable # output should show system firmware level 20040716 (B) # output should show service processor firmware level 20040628 (B)
mdctxuapp80:
Start Time:
Duration:
invscout # On local workstation: scp root@mdctxuapp80:/var/adm/invscout/mdctxuapp80.mup . # Open a browser window and go to the MDS upload URL: http://www14.software.ibm.com/webapp/set2/mds/fetch?page=mdsUpload.html # Upload each ".mup" file and save the MDS report to your local disk. # Upload each recommended update ".rpm" file to mdctxuapp80:/tmp/microcode
mdctxuapp80:
Start Time:
Duration:
cd /tmp/microcode rpm --ignoreos -ihv *.rpm diag
mdctxuapp80:
Start Time:
Duration:
smitty clstart
mdctxuapp80:
Start Time:
Duration:
clstat smitty clverify
mdctxuapp80:
Start Time:
Duration:
mdctxuapp81:
Start Time:
Duration:
clstat smitty clverify
mdctxuapp81:
Start Time:
Duration:
smitty clstop
mdctxuapp83:
Start Time:
Duration:
# run this loop on mdctxuapp81 to generate list of command to run on 83 for vg in $( lsvg -o | sort | grep -v rootvg) do pv=$( lspv | grep ${vg} | grep '^vpath' | head -1 | awk '{ print $1 }' ) PVID=$( lspv | grep "^${pv} " | head -1 | awk '{ print $2 }' ) MJNBR=$( ls -l /dev/${vg} | awk '{ print $5 }' ) MJNBR="${MJNBR%,}" print -- "if PV=\$( lspv | grep \"^vpath.*${PVID}\" | head -1 | awk '{ print \$1 }' )" print -- "then exportvg ${vg}" print -- " importvg -V ${MJNBR} -n -y ${vg} \${PV}" print -- " varyonvg ${vg}" print -- " chvg -a n ${vg}" print -- " varyoffvg ${vg}" print -- "fi" done # run the following importvg commands on mdctxuapp83 to fix 81s VGs if PV=$( lspv | grep "^vpath.*000c643d5cdb878f" | head -1 | awk '{ print $1 }' ) then exportvg egate106vg importvg -V 206 -n -y egate106vg ${PV} varyonvg egate106vg chvg -a n egate106vg varyoffvg egate106vg fi if PV=$( lspv | grep "^vpath.*000c643d5cdc5482" | head -1 | awk '{ print $1 }' ) then exportvg egate107vg importvg -V 207 -n -y egate107vg ${PV} varyonvg egate107vg chvg -a n egate107vg varyoffvg egate107vg fi if PV=$( lspv | grep "^vpath.*000c643d5cdcbe3c" | head -1 | awk '{ print $1 }' ) then exportvg egate108vg importvg -V 208 -n -y egate108vg ${PV} varyonvg egate108vg chvg -a n egate108vg varyoffvg egate108vg fi if PV=$( lspv | grep "^vpath.*000c643d5cdd1665" | head -1 | awk '{ print $1 }' ) then exportvg egate109vg importvg -V 209 -n -y egate109vg ${PV} varyonvg egate109vg chvg -a n egate109vg varyoffvg egate109vg fi if PV=$( lspv | grep "^vpath.*000c643d5cdded53" | head -1 | awk '{ print $1 }' ) then exportvg egate110vg importvg -V 210 -n -y egate110vg ${PV} varyonvg egate110vg chvg -a n egate110vg fi if PV=$( lspv | grep "^vpath.*000c643d4993bafa" | head -1 | awk '{ print $1 }' ) then exportvg egate13vg importvg -V 113 -n -y egate13vg ${PV} varyonvg egate13vg chvg -a n egate13vg varyoffvg egate13vg fi if PV=$( lspv | grep "^vpath.*000c643d1ba56485" | head -1 | awk '{ print $1 }' ) then exportvg egate15vg importvg -V 215 -n -y egate15vg ${PV} varyonvg egate15vg chvg -a n egate15vg varyoffvg egate15vg fi if PV=$( lspv | grep "^vpath.*000c644de4d56fe0" | head -1 | awk '{ print $1 }' ) then exportvg egate17vg importvg -V 117 -n -y egate17vg ${PV} varyonvg egate17vg chvg -a n egate17vg varyoffvg egate17vg fi if PV=$( lspv | grep "^vpath.*000c644d373f3be3" | head -1 | awk '{ print $1 }' ) then exportvg egate18vg importvg -V 118 -n -y egate18vg ${PV} varyonvg egate18vg chvg -a n egate18vg varyoffvg egate18vg fi if PV=$( lspv | grep "^vpath.*000cadddc26c8d2a" | head -1 | awk '{ print $1 }' ) then exportvg egate22vg importvg -V 122 -n -y egate22vg ${PV} varyonvg egate22vg chvg -a n egate22vg varyoffvg egate22vg fi if PV=$( lspv | grep "^vpath.*000c643d2698e454" | head -1 | awk '{ print $1 }' ) then exportvg egate8vg importvg -V 108 -n -y egate8vg ${PV} varyonvg egate8vg chvg -a n egate8vg varyoffvg egate8vg fi
mdctxuapp80:
Start Time:
Duration:
for i in $( lsvg | grep -v rootvg ) do dpovgfix ${i} done lsvpcfg
mdctxuapp80:
Start Time:
Duration:
clstat smitty clverify
mdctxuapp80:
Start Time:
Duration:
smitty cl_resgrp
mdctxuapp81:
Start Time:
Duration:
cd /etc /tmp/tz.ksh grep "^TZ=" /etc/environment ls -l /etc/environment* # grep output should be "TZ=CST6CDT,M3.2.0,M11.1.0" # ls output should produce multiple versions of /etc/environment
mdctxuapp81:
Start Time:
Duration:
rm -rf /tmp/fwupdate mkdir /tmp/fwupdate cd /tmp/fwupdate chmod 755 /tmp/microcode/7017S8XF.BIN /tmp/microcode/7017S8XF.BIN sum S8xU9.img # sum output should be 37427 3284 cd /usr/lpp/diagnostics/bin ./update_flash -f /tmp/fwupdate/S8xU9.img # enter 1 to continue and reboot the system
mdctxuapp81:
Start Time:
Duration:
lscfg -vp | grep -i alterable # output should show system firmware level 20040716 (B) # output should show service processor firmware level 20040628 (B)
mdctxuapp81:
Start Time:
Duration:
invscout # On local workstation: scp root@mdctxuapp81:/var/adm/invscout/mdctxuapp81.mup . # Open a browser window and go to the MDS upload URL: http://www14.software.ibm.com/webapp/set2/mds/fetch?page=mdsUpload.html # Upload each ".mup" file and save the MDS report to your local disk. # Upload each recommended update ".rpm" file to mdctxuapp81:/tmp/microcode
mdctxuapp81:
Start Time:
Duration:
cd /tmp/microcode rpm --ignoreos -ihv *.rpm diag
mdctxuapp81:
Start Time:
Duration:
smitty clstart
mdctxuapp81:
Start Time:
Duration:
clstat smitty clverify
mdctxuapp81:
Start Time:
Duration:
mdctxuapp82:
Start Time:
Duration:
clstat smitty clverify
mdctxuapp82:
Start Time:
Duration:
smitty clstop
mdctxuapp83:
Start Time:
Duration:
# run this loop on mdctxuapp82 to generate commands to run on 83 for vg in $( lsvg -o | sort | grep -v rootvg) do pv=$( lspv | grep ${vg} | grep '^vpath' | head -1 | awk '{ print $1 }' ) PVID=$( lspv | grep "^${pv} " | head -1 | awk '{ print $2 }' ) MJNBR=$( ls -l /dev/${vg} | awk '{ print $5 }' ) MJNBR="${MJNBR%,}" print -- "if PV=\$( lspv | grep \"^vpath.*${PVID}\" | head -1 | awk '{ print \$1 }' )" print -- "then exportvg ${vg}" print -- " importvg -V ${MJNBR} -n -y ${vg} \${PV}" print -- " varyonvg ${vg}" print -- " chvg -a n ${vg}" print -- " varyoffvg ${vg}" print -- "fi" done # run the following importvg commands on mdctxuapp83 to fix 82s VGs if PV=$( lspv | grep "^vpath.*000caddd11b64709" | head -1 | awk '{ print $1 }' ) then exportvg egate100vg importvg -V 47 -n -y egate100vg ${PV} varyonvg egate100vg chvg -a n egate100vg varyoffvg egate100vg fi if PV=$( lspv | grep "^vpath.*000caddd11b88d31" | head -1 | awk '{ print $1 }' ) then exportvg egate101vg importvg -V 45 -n -y egate101vg ${PV} varyonvg egate101vg chvg -a n egate101vg varyoffvg egate101vg fi if PV=$( lspv | grep "^vpath.*000caddd1ccaf18b" | head -1 | awk '{ print $1 }' ) then exportvg egate16vg importvg -V 44 -n -y egate16vg ${PV} varyonvg egate16vg chvg -a n egate16vg varyoffvg egate16vg fi if PV=$( lspv | grep "^vpath.*000cadddb8d8f150" | head -1 | awk '{ print $1 }' ) then exportvg egate21vg importvg -V 48 -n -y egate21vg ${PV} varyonvg egate21vg chvg -a n egate21vg varyoffvg egate21vg fi if PV=$( lspv | grep "^vpath.*000caddd1da96046" | head -1 | awk '{ print $1 }' ) then exportvg egate7vg importvg -V 78 -n -y egate7vg ${PV} varyonvg egate7vg chvg -a n egate7vg varyoffvg egate7vg fi
mdctxuapp81:
Start Time:
Duration:
for i in $( lsvg | grep -v rootvg ) do dpovgfix ${i} done lsvpcfg
mdctxuapp81:
Start Time:
Duration:
clstat smitty clverify
mdctxuapp81:
Start Time:
Duration:
smitty cl_resgrp
mdctxuapp82:
Start Time:
Duration:
cd /etc /tmp/tz.ksh grep "^TZ=" /etc/environment ls -l /etc/environment* # grep output should be "TZ=CST6CDT,M3.2.0,M11.1.0" # ls output should produce multiple versions of /etc/environment
mdctxuapp82:
Start Time:
Duration:
rm -rf /tmp/fwupdate mkdir /tmp/fwupdate cd /tmp/fwupdate chmod 755 /tmp/microcode/7017S8XF.BIN /tmp/microcode/7017S8XF.BIN sum S8xU9.img # sum output should be 37427 3284 cd /usr/lpp/diagnostics/bin ./update_flash -f /tmp/fwupdate/S8xU9.img # enter 1 to continue and reboot the system
mdctxuapp82:
Start Time:
Duration:
lscfg -vp | grep -i alterable # output should show system firmware level 20040716 (B) # output should show service processor firmware level 20040628 (B)
mdctxuapp82:
Start Time:
Duration:
invscout # On local workstation: scp root@mdctxuapp82:/var/adm/invscout/mdctxuapp82.mup . # Open a browser window and go to the MDS upload URL: http://www14.software.ibm.com/webapp/set2/mds/fetch?page=mdsUpload.html # Upload each ".mup" file and save the MDS report to your local disk. # Upload each recommended update ".rpm" file to mdctxuapp82:/tmp/microcode
mdctxuapp82:
Start Time:
Duration:
cd /tmp/microcode rpm --ignoreos -ihv *.rpm diag
mdctxuapp82:
Start Time:
Duration:
smitty clstart
mdctxuapp82:
Start Time:
Duration:
for i in $( lsvg | grep -v rootvg ) do dpovgfix ${i} done lsvpcfg
mdctxuapp82:
Start Time:
Duration:
clstat smitty clverify
mdctxuapp82:
Start Time:
Duration:
mdctxuapp80 / 81 / 82 / 83:
Start Time:
Duration:
invscout
local workstation:
Start Time:
Duration:
cd /tmp scp root@mdctxuapp80:/var/adm/invscout/mdctxuapp80.mup . scp root@mdctxuapp81:/var/adm/invscout/mdctxuapp81.mup . scp root@mdctxuapp82:/var/adm/invscout/mdctxuapp82.mup . scp root@mdctxuapp83:/var/adm/invscout/mdctxuapp83.mup . # Open a browser window and go to the MDS upload URL: http://www14.software.ibm.com/webapp/set2/mds/fetch?page=mdsUpload.html # Upload each ".mup" file and save the report to your local disk. # Then copy each MDS survey report to the MDC NIM server as follows: scp MDS_mdctxuapp80_808.html root@mdcapnim01:/tmp/invscout.mup/MDS_mdctxuapp80.content.shtml scp MDS_mdctxuapp81_808.html root@mdcapnim01:/tmp/invscout.mup/MDS_mdctxuapp81.content.shtml scp MDS_mdctxuapp82_808.html root@mdcapnim01:/tmp/invscout.mup/MDS_mdctxuapp82.content.shtml scp MDS_mdctxuapp83_808.html root@mdcapnim01:/tmp/invscout.mup/MDS_mdctxuapp83.content.shtml
mdcapnim01:
Start Time:
Duration:
print "mdctxuapp80|mdctxuapp80_man mdctxuapp81|mdctxuapp81_man mdctxuapp82|mdctxuapp82_man mdctxuapp83|mdctxuapp83_man" > tmp.list /usr/local/scripts/amms_k93 -vMgrt -W eperf -f ./tmp.list /usr/local/scripts/amms_k93 -vMgrt -W ddceperf -f ./tmp.list /usr/local/scripts/amms_k93 -vMgrt -W ddceperf -x /srv/www/htdocs/css/invscout -f ./tmp.list
mdcapnim01:
Start Time:
Duration:
cd /home/s45x ./dstnew.433.ksh mdc scp dstmdctz*.content.shtml root@ddceperf:/srv/www/htdocs/css/GlobalSysAdmin/Power5