Operating System - HP-UX
1753844 Members
7488 Online
108806 Solutions
New Discussion юеВ

Exporting/Importing Disk and File System

 
SOLVED
Go to solution
Mynor Aguilar
Valued Contributor

Exporting/Importing Disk and File System

Hello,
I have a server with a presented VDISK from a EVA 3000 on hp-ux 11.23 using LVM, now, I want to export this disk from this server and import it on a different server with hp-ux 11.11.
I know about the presentation/unpresentation procedure on the EVA. does anybody have the steps to export my disk (on 11.23) and importing it (on th 11.11 server) without losing data?

best regards,
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Exporting/Importing Disk and File System

While you will be able to import the volume group, you almost certainly will nit be able to mount the file system on 11.11 because the versions are imcompatible --- unless you explicitly created a version 4 vxfs filesystem. Vxfs file systems are designed to be upwardly but not downwardly compatible. This means that you can backup your data; create the filesystems on the 11.11 box; and tyhen use it on either box. You can also create a version 4 vxfs file system on your 11.23 box and use it on both boxes.

In any event the steps are rather straightforward (and I assume that you have man all the LUN's visible to both boxes; that you have run ioscan -fn; and insf).

On the source box:
1) umount the filesystems
2) vgexport -p -s -m /tmp/vg05.map /dev/vg05
This will create a mapfile that has the VGID embedded in it.
3) vgchange -a y /dev/vg05

4) Copy using ftp, sftp, rcp, ... /tmp/vg05.map from the source to the destination box.

On the destination box:
5) mkdir /dev/vg05
mknod /dev/vg05/group c 64 0x050000
vgimport -s /tmp/vg05.map /dev/vg05

This will search all available disks looking for the matching VGID so that you don't need to actually know the disks.

6) vgchange -a y /dev/vg05
7) vgcfgbackup /dev/vg05
8) Create mountpoints and /etc/fstab entries
9) Mount the filesystems.
If it ain't broke, I can fix that.
Mynor Aguilar
Valued Contributor

Re: Exporting/Importing Disk and File System

Clay,
thanks a lot for all your help, I've already backup all my data and perform the procedure tomorrow night.
thanks for all your help
skt_skt
Honored Contributor

Re: Exporting/Importing Disk and File System

I hope ACS mean "vgchange -a n vgname" NOT -a y" on source side.As there is no cluster make sure that at the source side the vg is deactivated before mounting it on another server(to avaoid data corruption by using on both server at a time"

On the source box:
1) umount the filesystems
2) vgexport -p -s -m /tmp/vg05.map /dev/vg05
This will create a mapfile that has the VGID embedded in it.
3) vgchange -a y /dev/vg05 (unmount & and DEACTIVATE here..)

Also do a "fstyp -v lvname" tells u the version. I see on both of my 11.11 and 11.23 servers i use version 4.if that is true for u too there should not be any problem.
tkc
Esteemed Contributor

Re: Exporting/Importing Disk and File System

remember to apply lvm patches before the vgexport/vgimport. that may help to eliminate any known issues that these patches fix (and their dependencies too) :


PHCO_35524 : s700_800 11.23 LVM commands patch

PHKL_36244 : s700_800 11.23 LVM Cumulative Patch

PHCO_34196 : s700_800 11.11 LVM commands cumulative patch

PHKL_35970 : s700_800 11.11 LVM Cumulative Patch
skt_skt
Honored Contributor

Re: Exporting/Importing Disk and File System

PHCO_34196 1.0 LVM commands cumulative patch
PHKL_34986 1.0 LVM Cumulative Patch; LVM OLR; SLVM 16 Node
PHKL_30607 1.0 VxVM,EMC,PM,vPar,slpq,KRS,DUMP,LVM,VM,DaS,IF

here is what i have
Geoff Wild
Honored Contributor

Re: Exporting/Importing Disk and File System

There is a flaw in your plan.

How was the file system created?

If you used newfs, then you will not be abled to mount it on the 11.11 system

You see, 11.11 uses vxfs version 4 file system layout and 11.23 version 5.

How to tell?

On your 11.23 system do a :

fstyp -v /dev/vgXX/lvolX |grep version

If it is version 5 - then you are out of luck.

In future, use mkfs_vxfs command to create file systems if you want to "share" between 11.23 and 11.11:

mkfs_vxfs -F vxfs -o version=4 /dev/vgXX/rlvolX


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Mynor Aguilar
Valued Contributor

Re: Exporting/Importing Disk and File System

Actually both were Version 5,
I did follow the procedure (some really minor changes thoug) but it worked really good.

thanks for your help