Upload
imran-rentia
View
222
Download
0
Embed Size (px)
Citation preview
8/8/2019 Migration Doc
1/4
Migration DocSource Server
Pre Migration
Take snap of
lspv > lspv.txt
lsvg l uservg(all vgs except rootvg) >> lspv.txt
showmount e
NFS concept - all filesystems which are exported to other servers.
df -gLook for a file system which sufficient space
df gCreate a directory in the filesystem named upgradeStart tarring stuff and put in fs with sufficient space
tar cvf /upgrade/ssh.tar /etc/ssh
tar cvf /upgrade/alam.tar /home
( untar tar xvf alam.tar ? target)
tar cvf /upgarde/filesystems.tar /etc/filesystems
Similarly tar up home as wellCapture printer
lsallq >> print.outtar cvf /stage-------/mqm.tar /var/mqm
8/8/2019 Migration Doc
2/4
Migration Steps
Unmount all filesystems in uservg
lsvg l uservg | awk '{print "unmount" $7}' | ksh
fuser kcux /sapdb ( not getting umounted by script kill them)
unmount /sapdb
lsvg l uservg
/etc/filesystems : mount on system restart : no karna
All fs are unmounted now except for rootvg
varyoffvg uservg
lsvg o /shows all varied on vgs
exportvg uservgTarget Box
Put Disks in the slots on the staging box if they are SCSI disks,
Else if SAN Disks no need to do any thing with disks, SAN Admincfgmgr v to get the disks
lspv check serial number and compare with snap which u have taken.(notepad)importvg y vgname hiskx thru the serial number of disks.
Mount all fs on all vgs
mount all
lsvg l uservgUntarTar xvf alam.tar,except for SSH last untar.
8/8/2019 Migration Doc
3/4
Modify hosts file i.e /etc/hosts
Comment out old server
Add new I.P and Hostname.
Configure N/w
smitty tcpip
hostname,ip, gateway , subnet,start now yes
environment scripts u may have to run.NFS command to run
Run on other servers
Cmd : - mount o soft :/targetserver /alam/ls /alam/ls
To be checked on showmount e
The following was copied from another document:
Migration Doc
Source Server
Take snap of
lspv
lsvg l exportingvg
showmount e
df -g
Look for a file system which sufficient space
df g
Create a directory in the filesystem named upgrade
fuser kcux /sapdb ( not getting umounted by script)
Start tarring stuff and put in fs with sufficient space
tar cvf /stage/DB6export/upgrade/ssh.tar /etc/ssh
Similarly tar up home as well
Capture printerlsallq >> print.out
tar cvf /stage-------/mqm.tar /var/mqm
8/8/2019 Migration Doc
4/4
Unmount all filesystems in exportingvg
lsvg l expotingvg
Run the following scriptlsvg l exportingvg | awk {print unmount $7} | k
varyoffvgexportvg
Staging Box
Put Disks in the slots on the staging box
cfgmgr v to get the disks
importvg y vgname hiskx
lsvg l rootvg
Untar
Tar xvf home.tar, Tivoli, evrythin except for SSH.
Mount
mount all
Modify hosts fileComment out old serverAdd new I.P and Hostname.
Post Migration
Configure N/wsmitty TCP/IPPut in hostname and IP address
lsvg l exportedvg(which has all user data)
untar ssh