SAN Migration of HP-UX hosts


 
Thread Tools Search this Thread
Operating Systems HP-UX SAN Migration of HP-UX hosts
# 1  
Old 10-24-2012
SAN Migration of HP-UX hosts

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:
1. Remediate server
2. 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:
1. Stop all applications/databases - perform sanity reboot.

2. Take backups of the following:
df -k >> /var/tmp/Migration/df -k
cp /etc/fstab /var/tmp/Migration/fstab.premigration

multipath -ll >> /var/tmp/Migration/multipath
cd /dev/mpath ==> ls -l >> /var/tmp/migration/mpath.bakup

3. Gather VG info: vgdisplay -v

4. Mount points: bdf

5. Make note of the group major/minor numbers info for later use;
ls -l /dev/*/group

6. Map the VG:
vgexport -pvs -m /tmp/vg00.map /dev/vg00
vgexport -pvs -m /tmp/vg01.map /dev/vg01

7. Unmount all the FSs;
unmount -a

8. Deactivate the VG:
vgchange -a n /dev/vg00
vgchange -a n /dev/vg01

9. Export the VG
vgexport /dev/vg00
vgexport /dev/vg01

10. Remove device files:
rmsf (??)

11. make sure all device files are gone:
ioscan -nkf -C disk

12. Hash-out all the SAN mountpoints in the /etc/fstab

13. shutdown the server: shutdown -r now

14.
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.

15. Mask the storage from VMAX to host (similar or greater sized luns be used)

16. Start data copy using OR hot pull commands - query

17. Once 15% copy has been reached; bring the server up.

18. Scan new devices; ioscan -fnC disk

19. create device special files; insf -e Cdisk

20. Create directory:
mkdir /dev/vg00
mkdir /dev/vg01

21. Create device files named groupr in the created dirs
mknod /dev/vg00/group c 64 0x010000
mknod /dev/vg01/group c 64 0x020000

22. Import all VGs;
vgimport -vs -m /tmp/vg00.map /dev/vg00
vgimport -vs -m /tmp/vg01.map /dev/vg01

23. Activate the VGs:
vgchange -a y /dev/vg00
vgchange -a y /dev/vg01

24. Check
vgdisplay -v

25. mount all FSs:
mount -a
bdf

26. Reconfigure PowerPath
powermt config
powermt display dev=all

27. Start Databases/Applications

28. Once 100% of migration is complete, terminate OR session.


Please correct anything that looks need to be modified.


Moderator's Comments:
Mod Comment Please use code tags next time for your code and data.

Last edited by vbe; 10-25-2012 at 05:25 AM..
# 2  
Old 11-27-2012
I have had a quick look and found a few issue.
You can't deactivate vg00 as this is a root VG neither import to vg00 on another server.
mknod /dev/vg00/group c 64 0x010000 => 0x000000 is right but you can use it. Not recommanded.
I have done many SAN or disks migration.
Any questions are okay for me.

Cheers,
This User Gave Thanks to Joseph_TKLee For This Post:
# 3  
Old 12-03-2012
Thank you.

---------- Post updated at 09:53 AM ---------- Previous update was at 09:47 AM ----------

Joseph,

What would be the steps if the luns are not under volume groups - say if they are under ASM?

Thanks,
# 4  
Old 12-03-2012
To Jps460,
I have never seen any luns not under VGs except raw devices for Oracle DB.
I am just wondering what purpose the luns are not under VGs is.
If you show me the output of bdf, I might give you an idea.
Cheers,
# 5  
Old 12-04-2012
Hi,

I tried to attach the bdf and inq reports.
Please see that few disks are under ASM.
I am trying to figure out the steps I need to take while cutting over to the new LUNS.

Thanks,
# 6  
Old 12-05-2012
Are you talking about /ora00 filesystem which is on ASM?
If yes, vg01a has /ora00 filesystem so you can export it as same as the normal way below.
Code:
 
# umount /ora00
# vgexport -pvs -m /tmp/vg01a.map /dev/vg01a
# vgchange -a n vg01a

and then remap the luns to new HW and import vg01a.

Cheers,
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to copy a tar file on a series of remote hosts and untar it on those hosts?

Am trying to copy a tar file onto a series of remote hosts and untar it at the destination. Need to do this without having to do multiple ssh. Actions to perform within a single ssh session via shell script - copy a file - untar at destination (remote host) OS : Linux RHEL6 (3 Replies)
Discussion started by: sankasu
3 Replies

2. Solaris

How to identify if disk is attached to SAN and assist in migration.?

I am working on VM host and collecting data to identify the type of storage attached to the server which will be migrated to VNX. it has one ldom created on it luxadm probe output --- No Network Array enclosures found in /dev/es Found Fibre Channel device(s): Node... (7 Replies)
Discussion started by: kpatel786
7 Replies

3. AIX

AIX - FC Switch migration, SAN Migration question!

I'm New to AIX / VIOS We're doing a FC switch cutover on an ibm device, connected via SAN. How do I tell if one path to my remote disk is lost? (aix lvm) How do I tell when my link is down on my HBA port? Appreciate your help, very much! (4 Replies)
Discussion started by: BG_JrAdmin
4 Replies

4. Red Hat

Volume group not activated at boot after SAN migration

I have an IBM blade running RHEL 5.4 server, connected to two Hitachi SANs using common fibre cards & Brocade switches. It has two volume groups made from old SAN LUNs. The old SAN needs to be retired so we allocated LUNs from the new SAN, discovered the LUNs as multipath disks (4 paths) and grew... (4 Replies)
Discussion started by: rbatte1
4 Replies

5. HP-UX

SAN Migration question

Hi, I am very new to HP-UX, and we're going to be doing a SAN migration. We're going to take down the machine, and zone it to the new SAN. My question is, will the device names change and will that interfere with the LVM? If the new disks come in with different device names, how would I... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

6. AIX

SAN Migration

Hi all, We are migrating our SAN storage from HSV360 to 3PAR. The system runs aix 6.1 version with HACMP. Please let me know what are requirements from OS side and how are the data copied to the new disks. (10 Replies)
Discussion started by: ElizabethPJ
10 Replies

7. Solaris

Need Help On Solaris Cluster Steps For San Migration

I am going to do a SAN Array migration and need the sequence of steps required on the Solaris cluster before moving the old array luns to new array luns. Here are the steps and I need info on the bold points:( I might even be wrong on the sequence of steps please correct me if I am wrong) 1.... (0 Replies)
Discussion started by: sunshinedeepu
0 Replies

8. AIX

aix tcp wrappers hosts.allow hosts.deny?

hi all just installed the netsec.options.tcpwrapper from expansion pack, which used to be a rpm, for my aix 6.1 test box. it is so unpredictable. i set up the hosts.deny as suggested for all and allow the sshd for specific ip addresses/hostnames. the tcpdchk says the hosts allowed and... (0 Replies)
Discussion started by: wf201626
0 Replies

9. Solaris

Thoughts/experiences of SAN attaching V880 to EMC SAN

Hi everyone, I wonder if I can canvas any opinions or thoughts (good or bad) on SAN attaching a SUN V880/490 to an EMC Clarion SAN? At the moment the 880 is using 12 internal FC-AL disks as a db server and seems to be doing a pretty good job. It is not I/O, CPU or Memory constrained and the... (2 Replies)
Discussion started by: si_linux
2 Replies

10. HP-UX

SAN migration

Hi, I'm going to be involved in a migration of SAN islands to one big SAN. I've not worked with SANs before and I'm not sure how to approach this. I suspect the disk devices on the HP servers are going to change, when the EVA's and servers are plugged into this new Cisco 9509 switch. Any... (0 Replies)
Discussion started by: Hils
0 Replies
Login or Register to Ask a Question