Page 1 of 1

HPUX and 3PAR Snapshots

Posted: Fri Jul 18, 2014 7:04 am
by kklajnszmit
We want to test the functionality of the snapshot (virtual copy) with host running HP UX.
The volume is mounted via HPUX LVM (logical volume manager) using a VG (volume group vg0 for example).
We want to make changes then perform snapshot on the volume.
After the snapshot, we would like to mount back original volume under HP UX .
How to do such an operation under HP UX?
The original volume should be connected to the same VG or in the new VG ?

I know that the question is more HPUX, but I would be grateful for any help or a link to information.

Regards
KK

Re: HPUX and 3PAR Snapshots

Posted: Fri Jul 18, 2014 1:42 pm
by jimviera
1 - Create a mapfile of your VGs (Vgexport -m)

2- Quiesce your applications and/or databases. (HPUX sync command)

3 - Quiesce your VGs (ex. vgchange -Q rw -t 180 vg01)

4 - Create your Virtual Volumes (snapshots)

5 - Resume previously quiesced VGs (ex. vgchange -R vg01)

6 - On the 3Par Export your Virtual Volumes to your host

7 - If mounting VVs on same host you need to issue a vgchgid for each LUN device
(ex. vgchgid /dev/rdisk/disk29)

8 - Create VG and import VG mapfile
- mkdir /dev/vg????
- mknod /dev/vg????/group c 64 0x0?0000
- vgimport -v -m /home/sys/vg01.map /dev/vg?? /dev/disk/disk29
- vgchange -a y vg?? (snapshot VG)

9 - Run fsck on each VV File System

10 - Mount the VV File Systems

This procedure will allow you to have both the parent LUNs as well as the snapshot mounted at the same time.

Re: HPUX and 3PAR Snapshots

Posted: Fri Jul 18, 2014 1:45 pm
by jimviera
I forgot the vgimport command in step 8:

8 - Create VG and import VG mapfile
- mkdir /dev/vg????
- mknod /dev/vg????/group c 64 0x0?0000
- vgimport -v -m /home/sys/vg01.map /dev/vg?? /dev/disk/disk29
- vgchange -a y vg?? (snapshot VG)

Re: HPUX and 3PAR Snapshots

Posted: Sat Jul 19, 2014 5:27 am
by kklajnszmit
Hi,
i will try. Thanks for your help.

KK