Operating System - HP-UX
1834817 Members
2139 Online
110070 Solutions
New Discussion

lv_vgconf error during booting

 
Terry Boy
Occasional Contributor

lv_vgconf error during booting


I have just replaced a new bootable harddisk on a HP 800 series running on HP-UX 9.01. During booting, the system halted halfway with the following message:
"Logical volume 64, 0x20001 configured as ROOT
lv_vgconf(): attach PV(dev=0x7000102)failed,errno=18
lv_vgconf(): root VG activation failed,errno=19
System halting during LVM configuration
Could not configure root VG"

Pls assist with any possible solution.

Cheers
Terry

Human knowledge belongs to the World!
8 REPLIES 8
Armin Feller
Honored Contributor

Re: lv_vgconf error during booting

Here are the steps to recover:

If a disk has been removed or the BDRA was not updated after config changes
try this one.

1. Boot the system; the quorum check can be overridden from ISL
by using the -lq option. The system should also be put in
single user mode:

ISL> hpux -is -lq (;2)/hp-ux

2. Activate the root volume group and re-attatch all physical volumes
that are physically present and listed in /etc/lvmtab but not
currently listed in the BDRA area of the disk:

vgchange -a y /dev/vg00

3. These commands update the lvm configuration structures in the BDRA
so the missing disk is no longer expected:

rm -f /dev/root

/etc/lvlnboot -v -R /dev/vg00

4. Go back to multiuser mode. Note that it is ok to do init2 from
quorum override, but not from maintenance mode:

reboot -r

init 2

Terry Boy
Occasional Contributor

Re: lv_vgconf error during booting

I will give a complete situation here:

1. no bootable tape or CD - the HP 800 system only have one bootable harddisk(old) on vg00

2. In order to backup this valuable harddisk (old), i installed a new harddisk on vg02 using lvol1 as the root => lvlnboot -r /dev/vg02/lvol1

3. I assigned the swap => lvlnboot -s /dev/vg02/lvol2 and dump => lvlnboot -d /dev/vg02/lvol2

Regarding S/N 2, can I assigned /dev/vg02/lvol1 as the root or I really must use /dev/vgroot/root ?

Pls advise.
Cheers
Terry

Human knowledge belongs to the World!
Armin Feller
Honored Contributor

Re: lv_vgconf error during booting

Hi Terry,

normaly it should work with /dev/vg02/lvol1 also. Could you please provide me the errormessage you got?

Regards,
Armin
Frank Slootweg
Honored Contributor

Re: lv_vgconf error during booting

It is not clear what you have done.

For what you *should* have done, see "Moving Root from a Disk Section to a Logical
Volume" on page 8-121 of the (9.0) "System Administration Tasks" manual.
As the text explains, this procedure can be used for both fixed disk
sections and logical volumes.

Hopefully that information will help you to recover from your current situation.

Have you already tried LVM maintenance mode boot, i.e. "ISL -lm ..."? See the hpux_800(1M) manual page for details.

BTW, it is probably HP-UX 9.04, not 9.01.
Armin Feller
Honored Contributor

Re: lv_vgconf error during booting

How to create a second bootable volume group?

# pvcreate -B -f /dev/rdsk/c0t5d0
# mkdir /dev/vg02
# mknod /dev/vg02/group c 64 0x020000

# mkboot /dev/rdsk/c0t5d0
# mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c0t5d0

# vgcreate -n /dev/vg02 /dev/dsk/c0t5d0

# lvcreate -n lvol1 -L
# lvcreate -n lvol2 -L
# lvcreate -n lvol3 -L
...

# newfs -F /dev/vg02/rlvol1
# newfs -F /dev/vg02/rlvol3
# newfs -F /dev/vg02/rlvol4
...

# lvlnboot -r /dev/vg02/lvol3
# lvlnboot -s /dev/vg02/lvol2
# lvlnboot -d /dev/vg02/lvol2
# lvlnboot -b /dev/vg02/lvol1
# lvlnboot -v

# mkdir root_new
# mkdir stand_new
# mkdir var_new
...

# mount /dev/vg02/lvol1 /stand_new
# mount /dev/vg02/lvol3 /root_new
...

# cd /
# find . -xdev -depht | cpio -pvdlmax /root_new
# cd /stand
# find . -xdev -depht | cpio -pvdlmax /stand_new
...

# vi /root_new/etc/fstab
/dev/vg02/lvol1 /stand hfs defaults 0 0 # new boot LV
/dev/vg02/lvol3 / vxfs delaylog 0 0 # new root LV
/dev/vg02/lvol4 /usr vxfs delaylog 0 0 # new boot LV
...

# vi /stand_new/bootconf
1 /dev/dsk/c0t5d0

# setboot -b
# cd /
# shutdown -r 0

# vgcfgbackup vg02

# vgchange -a n vg00
# vgexport vg00

reboot and breake bootprocess

ISL> hpux -l

# /sbin/vgexport vg02
# /sbin/mkdir /dev/vg00
# /sbin/mknod /dev/vg00/group c 64 0x000000
# /sbin/vgimport vg00 /dev/dsk/c0t5d0
# /sbin/vgchange -a y vg00
# /sbin/mount -a

# vi /etc/fstab

# cd /
# shutdown -r 0
Terry Boy
Occasional Contributor

Re: lv_vgconf error during booting

Hi Armin,

As the system is running on HP-UX 9.00(9.01 is wrong),
there is no such dir '/stand/vmunix' or '/stand/bootconf' in the current system.

1. On the steps: # lvlnboot -b /dev/vg02/lvol1 => is this step necessary ?

2. On the steps: # cd /
# find . -xdev -depht | cpio -pvdlmax /root_new
I used this command instead (before u posted) => #cd / ;find . -xdev -print|cpio -pdumvx /root_new
=> is this command sufficient to transfer the files or I shld follow your command?

3. On the steps:
# vgcfgbackup vg02

# vgchange -a n vg00
# vgexport vg00

reboot and breake bootprocess

ISL> hpux -l

# /sbin/vgexport vg02
# /sbin/mkdir /dev/vg00
# /sbin/mknod /dev/vg00/group c 64 0x000000
# /sbin/vgimport vg00 /dev/dsk/c0t5d0
# /sbin/vgchange -a y vg00
# /sbin/mount -a

# vi /etc/fstab

# cd /
# shutdown -r 0
=> Can i check whether this method is referring to both old & new harddisks installed in the system and the purpose is to deactivate the old harddisk (vg00) and to create a new vg00 and transfer vg02 to vg00(new).
Thereafter, I can safety remove the old harddisk and boot from the new one?

Pls advise
Terry
Cheers
Human knowledge belongs to the World!
Armin Feller
Honored Contributor

Re: lv_vgconf error during booting

Hi Terry,

sorry, the cookbook I wrote was for 10.x but it should work also for S800 9.x if LVM is in use.

In the normal 9.x LVM config you will not have a separate lvol for /stand all this are in root "/".

To your questions:
1. Because you don't have a /stand lvol you have to use following:

# /etc/lvlnboot -v -R /dev/vg00


2. Please use the command I wrote, change to the "old" directory and copy all datas is there to the new created lvol. eg.g for root "/" do following:

# cd /
# find . -xdev -depht | cpio -pvdlmax /root_new


3. In my cookboot I explaint how to change the "old" system volume group VG00 by the new created volume group VG02. If you put the new created disk in an other system you don't need to do this.

?? you have to change the disk to the other system
?? break the bootprocess and boot to MaintenanceMode

ISL> hpux -lm boot disk(scsi.5;0)/hp-ux

?? then do following:

# /sbin/vgexport vg02
# /sbin/mkdir /dev/vg00
# /sbin/mknod /dev/vg00/group c 64 0x000000
# /sbin/vgimport vg00 /dev/dsk/c0t5d0
# /sbin/vgchange -a y vg00
# /sbin/mount -a

# vi /etc/fstab

# cd /
# shutdown -r 0


Sorry I'm not the HPUX 9.x specialist, but I think to remember that that should work fine.

Good luck and best regards,

Armin
Terry Boy
Occasional Contributor

Re: lv_vgconf error during booting

Hi Armin,

Thanks for the advices, I got more questions to ask.
See => for the question below:

# vgcfgbackup vg02

# vgchange -a n vg00
# vgexport vg00
=> by exporting vg00(old harddisk), will it affect the data in old harddisk in any way?
=> Can vg00(old harddisk) be vgimported back?

reboot and breake bootprocess

ISL> hpux -l

# /sbin/vgexport vg02
# /sbin/mkdir /dev/vg00
# /sbin/mknod /dev/vg00/group c 64 0x000000
# /sbin/vgimport vg00 /dev/dsk/c0t5d0
# /sbin/vgchange -a y vg00
# /sbin/mount -a

Cheers
Terry
Human knowledge belongs to the World!