Operating System - HP-UX
1833397 Members
3864 Online
110052 Solutions
New Discussion

recover non-vg00 data/files

 
valcor
Occasional Advisor

recover non-vg00 data/files

Hello,
I am new to HP-UX. I am wondering if it is possible to recover my data/files on my non-vg00 volumes, without restoring, after I've rebuilt my OS from scratch, after an OS disaster? Do I just run vgimport?

Thanks in advance
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: recover non-vg00 data/files

Exactly - assuming that they were on external storage that survived the disaster. If not, you would use your regular restore procedures to rebuild them on new storage.

You should also take a look at Ignite and it's make_tape_recovery and make_net_recovery methods of enabling the recovery of vg00 (if you haven't already):

http://www.docs.hp.com/en/IUX/


Pete

Pete
valcor
Occasional Advisor

Re: recover non-vg00 data/files

What if they were internal drives that were not affected by the disaster, can I still recover? Are these be the correct steps to follow?

1. Rebuild HP-UX OS on new drives.
2. mkdir /dev/vg01
3. mknod /dev/vg01/group c 64 0x02000
4. vgimport /dev/vg01
5. vgchange -a y /dev/vg01
6. mount file systems

Thanks
Pete Randall
Outstanding Contributor

Re: recover non-vg00 data/files

Yep, that's pretty close. Your mknod is off a bit. The general convention (though it's certainly not required) is to make the minor number the same as the vg number - and you need one more digit:

mknod /dev/vg01/group c 64 0x010000



Pete

Pete
freddy_21
Respected Contributor

Re: recover non-vg00 data/files

I try add some step and checking with ur step.

1a. vgexport -v -s -p -m vg01.map vg01
1b. transfer vg01.map to another server
1c. Rebuild HP-UX OS on new drives.
2. mkdir /dev/vg01
3. mknod /dev/vg01/group c 64 0x02000
you wrong about minor number. 0x020000
4a. transfer vg01.map to server already install.
4b. check with ioscan, is your disk already appear? if not troubleshoot first
4c. vgimport -v -s -m vg01.map /dev/vg01
5. vgchange -a y /dev/vg01
6. mount file systems

thanks
freddy
Srinivas Thokala_1
Frequent Advisor

Re: recover non-vg00 data/files

Before you rebuild os you need to export mapfiles and ftp and preserve mapfiles, reports from commands bdf,vgdisplay -v, strings /etc/lvmtab, ioscan -fnC disk, lvlnboot -v, etc. on to other server. This will ease the job.

Caution: Ensure to use -p option with vgexport. This is preview mode.

Once OS is built you can create mkdir, mknod as detailed by others and do vgimport without -p option.

Srinivas
Srinivas Thokala
valcor
Occasional Advisor

Re: recover non-vg00 data/files

Thank you for all your response.
I do not think I can do a vgexport and create a mapfile, in the event of an OS disaster, ie. disk failure and unable to logon to the server. Since I cannot do an vgexport, can I still run a vgimport?
Mridul Shrivastava
Honored Contributor

Re: recover non-vg00 data/files

Hi Valcor,

You can certainly do vgimport even if you have not executed the vgexport.. However you should know the physical device names and major and minor no.'s for creating the vg....

So go ahead and do vgimport specifying all the physical disk...

All the best
Time has a wonderful way of weeding out the trivial