Hello gurus,
I am a SAN Admin - not very familiar with the HPUX administration - so need help with the steps in regards to the migration I need to do at my client place.
Environment: Migrating from CX4 to VMAX - using OR/Hot Pull.
Here are the steps I have put together - HPUX gurus please correct/validate the steps on the system admin side:
Pre-Migration Steps:
- Remediate server
- Complete OR Zoning and Masking - zone the VMAX FAs and CX SP Ports, Create a Migration Storage Group on the CX frame and add the FAs to the group.
Migration Steps:
-
Stop all applications/databases - perform sanity reboot.
-
Take backups of the following:
df -k >> /var/tmp/Migration/df -k
cp /etc/fstab /var/tmp/Migration/fstab.premigrationmultipath -ll >> /var/tmp/Migration/multipath
cd /dev/mpath ==> ls -l >> /var/tmp/migration/mpath.bakup -
Gather VG info: vgdisplay -v
-
Mount points: bdf
-
Make note of the group major/minor numbers info for later use;
ls -l /dev/*/group -
Map the VG:
vgexport -pvs -m /tmp/vg00.map /dev/vg00
vgexport -pvs -m /tmp/vg01.map /dev/vg01 -
Unmount all the FSs;
unmount -a -
Deactivate the VG:
vgchange -a n /dev/vg00
vgchange -a n /dev/vg01 -
Export the VG
vgexport /dev/vg00
vgexport /dev/vg01 -
Remove device files:
rmsf (??) -
make sure all device files are gone:
ioscan -nkf -C disk -
Hash-out all the SAN mountpoints in the /etc/fstab
-
shutdown the server: shutdown -r now
a . Remove masking to the host from CX: move all the LUNs from server from host storage group to migration storage group.
b. Remove the zoning between CX and host.
-
Mask the storage from VMAX to host (similar or greater sized luns be used)
-
Start data copy using OR hot pull commands - query
-
Once 15% copy has been reached; bring the server up.
-
Scan new devices; ioscan -fnC disk
-
create device special files; insf -e Cdisk
-
Create directory:
mkdir /dev/vg00
mkdir /dev/vg01 -
Create device files named groupr in the created dirs
mknod /dev/vg00/group c 64 0x010000
mknod /dev/vg01/group c 64 0x020000 -
Import all VGs;
vgimport -vs -m /tmp/vg00.map /dev/vg00
vgimport -vs -m /tmp/vg01.map /dev/vg01 -
Activate the VGs:
vgchange -a y /dev/vg00
vgchange -a y /dev/vg01 -
Check
vgdisplay -v -
mount all FSs:
mount -a
bdf -
Reconfigure PowerPath
powermt config
powermt display dev=all -
Start Databases/Applications
-
Once 100% of migration is complete, terminate OR session.
Please correct anything that looks need to be modified.