Vous êtes sur la page 1sur 4

Migration Doc

Source 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 -g

Look for a file system which sufficient space

df –g

Create a directory in the filesystem named upgrade

Start 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 well

Capture printer

lsallq >> print.out

tar –cvf /stage-------/mqm.tar /var/mqm


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 uservg

Target 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 Admin

cfgmgr –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 uservg

Untar

Tar –xvf alam.tar,


except for SSH last untar.
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 printer
lsallq >> print.out

tar –cvf /stage-------/mqm.tar /var/mqm


Unmount all filesystems in exportingvg
lsvg –l expotingvg

Run the following script


lsvg –l exportingvg | awk ‘{print “unmount” $7}’ | k
varyoffvg
exportvg

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 file


Comment out old server
Add new I.P and Hostname.

Post Migration

Configure N/w
smitty TCP/IP
Put in hostname and IP address

lsvg –l exportedvg(which has all user data)

untar ssh

Vous aimerez peut-être aussi