Operating System - HP-UX
1822512 Members
2431 Online
109642 Solutions
New Discussion юеВ

Re: 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
Sunny123_1
Esteemed Contributor

Re: Recovering vg for non-bootable disks

Hi

Run following command

fsck -F vxfs

and then mount it

Regards
Sunny
Anteneh
Occasional Advisor

Re: Recovering vg for non-bootable disks

Thank you. It works now and let me recover other volume groups

Thank you.
Anteneh
Occasional Advisor

Re: Recovering vg for non-bootable disks

Sorry all,

For more than one volume group, it will give me the error message.

root@library:/dev/data ll
total 0
brw-r----- 1 root sys 64 0x020005 Jun 11 13:35 dbcc_data
crw-rw-rw- 1 root sys 64 0x020000 Jun 11 13:32 group
brw-r----- 1 root sys 64 0x020001 Jun 11 13:35 master
crw-r----- 1 root sys 64 0x020005 Jun 11 13:35 rdbcc_data
crw-r----- 1 root sys 64 0x020001 Jun 11 13:35 rmaster
crw-r----- 1 root sys 64 0x020002 Jun 11 13:35 rsqldev1
crw-r----- 1 root sys 64 0x020003 Jun 11 13:35 rsqldev2
crw-r----- 1 root sys 64 0x020004 Jun 11 13:35 rsqltestlog
brw-r----- 1 root sys 64 0x020002 Jun 11 13:35 sqldev1
brw-r----- 1 root sys 64 0x020003 Jun 11 13:35 sqldev2
brw-r----- 1 root sys 64 0x020004 Jun 11 13:35 sqltestlog
root@library:/dev/data fsck -F vxfs /dev/data/dbcc_data
invalid super-block
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...


sujit kumar singh
Honored Contributor

Re: Recovering vg for non-bootable disks

root@library:/dev/data fsck -F vxfs /dev/data/dbcc_data
invalid super-block
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...


use the RAW dev file /dev/data/rdbcc_data

apart from that have the copy of the OLD /etc/fstab that you can be sure before all whether the FS for this had been HFS or VXFS.

you can simply use

fsck /dev//r

regards
sujit
Anteneh
Occasional Advisor

Re: Recovering vg for non-bootable disks

When I run it it give me the following error message:

root@library:/dev/data fsck /dev/data/rdbcc_data
fsck: /etc/default/fs is used for determining the file system type
invalid super-block
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...

The content of /etc/default/fs is only

LOCAL=vxfs