The following document describes the procedure used to move the EGATE database preprod environment running on "ddcaaega01" and "ddcaaega02" to the new p590 LPAR's "ddcpocega01" and "ddcpocega02". This procedure was performed on April 29, 2005 and will be used again to move preprod back to the original machines. The purpose is to define the procedure required to move the EGATE production databases to the p590 LPAR's.
ddcaaega01:
cd /usr/DynamicLinkManager/bin
lspv | grep dlmfdrv | grep -v dlmfdrvio |
while read -- HDISK PVID VGNAME STATE
do
MAJOR=""
LOC=""
ls -l /dev/${VGNAME} 2>/dev/null |
IFS="${IFS}," read -- PERMS LINKS OWNER GROUP MAJOR MINOR REMAIN
print -- "\n${HDISK} ${PVID} ${VGNAME} ${STATE} ${MAJOR:+VGmajor#:${MAJOR}}"
/usr/DynamicLinkManager/bin/dlnkmgr view -drv |
grep " ${HDISK} " |
while read -r -- LINE
do
print -r -- "${LINE}"
print -r -- "${LINE}" | read -r -- DNBR DLMDISK DDISK LDEV
LOC="${LOC}$( lscfg -l ${DDISK} | awk '{ print $2, $1 }' )\\n"
done
print -- "${LOC}"
done
ddcaaega02:
cd /usr/DynamicLinkManager/bin
lspv | grep dlmfdrv | grep -v dlmfdrvio |
while read -- HDISK PVID VGNAME STATE
do
MAJOR=""
LOC=""
ls -l /dev/${VGNAME} 2>/dev/null |
IFS="${IFS}," read -- PERMS LINKS OWNER GROUP MAJOR MINOR REMAIN
print -- "\n${HDISK} ${PVID} ${VGNAME} ${STATE} ${MAJOR:+VGmajor#:${MAJOR}}"
/usr/DynamicLinkManager/bin/dlnkmgr view -drv |
grep " ${HDISK} " |
while read -r -- LINE
do
print -r -- "${LINE}"
print -r -- "${LINE}" | read -r -- DNBR DLMDISK DDISK LDEV
LOC="${LOC}$( lscfg -l ${DDISK} | awk '{ print $2, $1 }' )\\n"
done
print -- "${LOC}"
done
ddcaaega01:
smitty clstop
ddcaaega02:
smitty clstop
ddcpocega01:
lspv > /tmp/lspv.out
ddcpocega02:
lspv > /tmp/lspv.out
ddcpocega01:
cfgmgr
ddcpocega02:
cfgmgr
ddcpocega01:
cd /usr/DynamicLinkManager/bin
for i in $( lspv | awk '{ print $1 }' | grep "^hdisk" )
do
./dlmpr -c ${i}
done
ddcpocega02:
cd /usr/DynamicLinkManager/bin
for i in $( lspv | awk '{ print $1 }' | grep "^hdisk" )
do
./dlmpr -c ${i}
done
ddcpocega01:
for i in $( lspv | awk '{ print $1 }' )
do
rmdev -Rdl ${i}
done
cfgmgr
ddcpocega02:
for i in $( lspv | awk '{ print $1 }' )
do
rmdev -Rdl ${i}
done
cfgmgr
ddcpocega01:
cd /usr/lpp/dr/ddcpocega01
./OCIDR -I config
ddcpocega02:
cd /usr/lpp/dr/ddcpocega02
./OCIDR -I config
ddcpocega01:
varyonvg oradb01vg01
chvg -a y oradb01vg01
varyonvg oradb01vg02
chvg -a y oradb01vg02
ddcpocega02:
varyonvg oradb02vg01
chvg -a y oradb02vg01
varyonvg oradb02vg02
chvg -a y oradb02vg02
ddcpocega01:
chfs -A y /u01001
chfs -A y /u01002
chfs -A y /backup
ddcpocega02:
chfs -A y /u01001
chfs -A y /u01002
chfs -A y /backup
ddcpocega01:
vi /etc/hosts
ddcpocega02:
vi /etc/hosts
ddcpocega01:
oracon01vg oracon02vg oracon03vg oracon04vg
ddcpocega01:
Start HACMP
ddcpocega02:
Start HACMP
ddcpocega01:
chown oracle:dba /dev/*orarp*
ddcpocega02:
chown oracle:dba /dev/*orarp*
ddcpocega01:
chdev -l sys0 -a maxuproc=3000
ddcpocega02:
chdev -l sys0 -a maxuproc=3000
mdcapnim01:
exportfs -i -o 'root=*' /export/cdimages/Oracle8.1.7_Disk1
ddcpocega01:
mount mdcapnim01:/export/cdimages/Oracle8.1.7_Disk1 /mnt
cd /mnt
./rootpre.sh
cd /tmp
umount /mnt
ddcpocega02:
mount mdcapnim01:/export/cdimages/Oracle8.1.7_Disk1 /mnt
cd /mnt
./rootpre.sh
cd /tmp
umount /mnt
mdcapnim01:
exportfs -u /export/cdimages/Oracle8.1.7_Disk1
CNAME: point ddcaaega01 to ddcpocega01
CNAME: point ddcaaega02 to ddcpocega02