Operating System - HP-UX
1825750 Members
2702 Online
109687 Solutions
New Discussion

lvlnboot -v doe'snt show any entries

 
Binukuttan VM_1
Frequent Advisor

lvlnboot -v doe'snt show any entries

Hi folks,

Please help me to resolve this problem. My server is booting only in hpux -l ( maintenance mode). I have to manually made to multiuser after that by init 3.After that server works fine

The problem started after i removed one disk from vg00.

The lvlnboot -v will show .. > # lvlnboot - lvlnboot: Couldn't query physical volume "": The specified path does not correspond to physical volume attached to this volume group



strings /etc/lvmtab
# strings /etc/lvmtab /dev/vg01 /dev/dsk/c0t2d0 /dev/vg00 /dev/dsk/c0t3d0




But the /etc/lvmconf/vg00.conf still have entries of old disk. How to get rid of that ???

I tried
1. mv /etc/lvmtab /etc/lvmtab.old
2.vgscan -v
3.vgbackup -u /dev/vg00
4.lvlnboot -R


pls help...
11 REPLIES 11
KVK
Valued Contributor

Re: lvlnboot -v doe'snt show any entries

why don't try to reduce the volume gruop with the old disk path

EX
==
#vgreduce vg00 (old disk path)
Sreejith Kaliyam
Regular Advisor

Re: lvlnboot -v doe'snt show any entries

Hi Binu,

copy the lvmtab and try

# vgreduce -f vg00
# vgscan


Regards,
Anoop
Binukuttan VM_1
Frequent Advisor

Re: lvlnboot -v doe'snt show any entries


When i give

#vgreduce -f /dev/vg00


Here's the map of used PEs --- Logical extents --- LE LV PE Status 1 0000 lvol7 0862 ??? 0001 lvol7 0863 ??? 0002 lvol7 0864 ??? 0003 lvol7 0865 ??? 0004 lvol7 0866 ??? 0005 lvol7 0867 ??? 0006 lvol7 0868 ??? 0007 lvol7 0869 ??? 0008 lvol7 0870 ??? 0009 lvol7 0871 ??? 0010 lvol7 0872 ??? 0011 lvol7 0873 ??? 0012 lvol7 0874 ??? 0013 lvol7 0875 ??? 0014 lvol7 0876 ??? 0015 lvol7 0877 ??? 0016 lvol7 0878 ??? 0017 lvol7 0879 ??? 0018 lvol7 0880 ??? 0019 lvol7 0881 ???


but there is no lvol7 in vg00 ???

verified with -- >>
lvdisplay -v /dev/vg00/lvol7

Why server boots only in maintenance mode ??
binu
jayachandran.g
Regular Advisor

Re: lvlnboot -v doe'snt show any entries

check you auotlf file
whether you r using hpux -l or hpux -lq

in this q option will query your disk so it may be going to single usermode
jayachandran.g
Regular Advisor

Re: lvlnboot -v doe'snt show any entries

sorry -q will disable the quorum
Eknath
Trusted Contributor

Re: lvlnboot -v doe'snt show any entries

Hi Binu,

What does pvdisplay -v /dev/dsk/c0t3d0 shows. Is it correct per vg00 configuration.

Try following options
1. Check the auto file and update it with
#mkboot -a "hpux -lq" /dev/dsk/C0t3d0(current disk in vg00)

2. If /etc/lvmtab shows two PVs for vg00, then reduce vg00
#vgreduce -f /dev/vg00 /dev/dsk/c_t_d_ (old hdd path. If still gives problem the put back the removed disk and do vgreduce again.


3.Need to be VERY VERY careful: Boot system in lvm maintenance mode(hpux -lm at ISL)
(9DO not reboot system if you dont get correct lvmtab file. if you dont get the correct file, rename it back from lvmtab.org to lvmtab. If vlmtab file is not available system will not boot, SO PLEASE BE CAREFUL)
a.Make a copy of /etc/lvmtab to /etc/lvmtab.org
b.pvdisplay -v /dev/dsk/c0t3d0 (current disk)- check information displayed is correct.
c.vgexport /dev/vg00
d.create /dev/vg00 and group files
e.vgimport /dev/vg00 /dev/dsk/c0t3d0
f. strings /etc/lvmtab (vg00 should show only current disks)
g.check with lvlnboot.

PLS perform last option (3) as last option only.

Cheers !!!
eknath
Eknath
Trusted Contributor

Re: lvlnboot -v doe'snt show any entries

By the way Binu, How many disks were configured in vg00. I hope there were two disks and all lvs in vg00 were mirrored on the second disks including /dev/vg00/lvol2 (swap).

cheers!
eknath
vinod_25
Valued Contributor

Re: lvlnboot -v doe'snt show any entries

hi binu

1. Boot into maintenance mode.

2. vgexport vg00

3. mkdir /dev/vg00

4. mknod /dev/vg00/group c 64 0x000000

5. vgimport /dev/vg00

If you are using standard lvol names then a map file is not needed.


6. vgreduce -f

7. vgscan

8. Do vgdisplay of vg00, it should now show the current and active drives.

9. lvlnboot -v

10. Reboot the system.

The system should successfully display all active volume groups.

regards

Vinod
Binukuttan VM_1
Frequent Advisor

Re: lvlnboot -v doe'snt show any entries

Thanks for your inputs..but still it is not heppaening..pls advice
jayachandran.g
Regular Advisor

Re: lvlnboot -v doe'snt show any entries

Hi Binu


I think your server is in cluster if it is so there is another file in /dev/

that is /dev/slvmvg you tring moving it and lvmtab and then try the command vgscan -v

try it all the best bye bye
Kent Ostby
Honored Contributor

Re: lvlnboot -v doe'snt show any entries

Okay.

The issue is the removed disk.

If you removed it and it had the only copy of lvol7 on it then you need to do something about lvol7.

lvremove /dev/vg00/lvol7
vgreduce -f /dev/vg00

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"