LVM and VxVM

Recovering vg for non-bootable disks

 
Anteneh
Occasional Advisor

Recovering vg for non-bootable disks

Hi all,

The master boot disk of my L2000 HP server has failed. How do I recover the other vgs after replacing and re-installing hpux.

Regards,
14 REPLIES 14
Torsten.
Acclaimed Contributor

Re: Recovering vg for non-bootable disks

The boot disk is not mirrored?

Restore your backup, this should include all settings. Otherwise use "vgscan" to discover all other VGs.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sajjad Sahir
Honored Contributor

Re: Recovering vg for non-bootable disks


Dear friend

please restore from the backup

thanks and regards

Sajjad Sahir
Michal Kapalka (mikap)
Honored Contributor

Re: Recovering vg for non-bootable disks

hi,

restore the system from ignite, as Trosten said, and them if the configuration of VG-s are not presented, use vgscan to import the VG-s.

mikap
Anteneh
Occasional Advisor

Re: Recovering vg for non-bootable disks

I'm new to this server. I do not have a system backup.

Any help?
Omar Hamdan
Occasional Advisor

Re: Recovering vg for non-bootable disks

If you dont have mirror disk, ignite, or any kind of backup, then the only choice you have is to keep trying and pray so that disk work :)
Anteneh
Occasional Advisor

Re: Recovering vg for non-bootable disks

I found some configuration backup files on another server. will it help to recover the disks.

There was three vg for three disks: sybase, data and log.

root@library:/ ll /tmp/backup/
total 2696
-rw-rw-rw- 1 root sys 580 Jun 10 11:24 bdf.ant
-rw-rw-rw- 1 root sys 580 Jun 10 11:24 bdf.bak
-rw-rw-rw- 1 root sys 165888 Jun 10 11:24 data.conf
-rw-rw-rw- 1 root sys 165888 Jun 10 11:24 data.conf.old
-rw-rw-rw- 1 root sys 539 Jun 10 11:24 fstab
-rw-rw-rw- 1 root sys 817 Jun 10 11:24 ioscan.bak
-rw-rw-rw- 1 root sys 165888 Jun 10 11:24 logs.conf
-rw-rw-rw- 1 root sys 165888 Jun 10 11:24 logs.conf.old
-rw-rw-rw- 1 root sys 0 Jun 10 11:24 lvm_lock
drwxrwxrwx 2 root sys 96 Jun 10 11:26 root
-rw-rw-rw- 1 root sys 165888 Jun 10 11:24 sybase.conf
-rw-rw-rw- 1 root sys 165888 Jun 10 11:24 sybase.conf.old
-rw-rw-rw- 1 root sys 190464 Jun 10 11:24 vg00.conf
-rw-rw-rw- 1 root sys 190464 Jun 10 11:24 vg00.conf.old
Torsten.
Acclaimed Contributor

Re: Recovering vg for non-bootable disks

Do you know if the disk was mirrored?

Start the server, interupt the automatic boot and do a

> sea ipl

to find bootable disks.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Anteneh
Occasional Advisor

Re: Recovering vg for non-bootable disks

Torsten,

It was not mirrored.

But, I used the following command to recover vg sybase

#cd /dev
#mkdir /dev/sybase
#cd /dev/sybase
#mknod group c 64 0x010000
#vgimport /dev/sybase /dev/dsk/c1t0d0

root@library:/dev/sybase ll
total 0
crw-rw-rw- 1 root sys 64 0x010000 Jun 11 14:08 group
brw-r----- 1 root sys 64 0x010001 Jun 11 14:09 lvol1
crw-r----- 1 root sys 64 0x010001 Jun 11 14:09 rlvol1

The # of lv are right but with a wrong lv name. And when I try to mount it, hete is the error message.

root@library:/dev/sybase mount -a
vxfs mount: /dev/sybase/lvol1 is corrupted. needs checking
mount: /dev/logs/backup: No such file or directory
mount: /dev/vg00/lvol8 is already mounted on /var
mount: /dev/vg00/lvol7 is already mounted on /usr
mount: /dev/vg00/lvol6 is already mounted on /opt
mount: /dev/vg00/lvol5 is already mounted on /home
mount: /dev/vg00/lvol4 is already mounted on /tmp
mount: /dev/vg00/lvol1 is already mounted on /stand


thanks,



Michal Kapalka (mikap)
Honored Contributor

Re: Recovering vg for non-bootable disks

hi,

use fsck on the rlvol

fsck -F vxfs -o full /dev/vgxyz/rlvol

mikap