1833871 Members
1746 Online
110063 Solutions
New Discussion

/etc/lvmtab file

 

/etc/lvmtab file

I was trying to rebuild lvmtab file.
first I did
# vgscan -p -v

#mv /etc/lvmtab /etc/lvmtab.old
# vgscan -v

This command not finish yet

What happend if my server goes down?
Is it posible boot without /etc/lvmtab file?
Why the vgscan command not finish?

Thanks
Never give up
5 REPLIES 5
Fragon
Trusted Contributor

Re: /etc/lvmtab file

Hi there, normally you can open another root session to terminate vgscan session.
If press "Power Off" to reboot, I think you can boot to single user mode and change back /etc/lvmtab from /etc/lvmtab.old.
You can use diskinfo to see whether your hardisk is abnormal.

-Gerald-

George Petrides_1
Honored Contributor

Re: /etc/lvmtab file

If you boot single user mode, you'll probably need to use the LVM maintenance mode option, e.g.
ISL> hpux -lm
And then put back the backup copy of the lvmtab file that I am assuming you made a copy of. Since the vgscan command goes out and accesses all the hard drives to the machine, the problem you are experiencing might be a HW issue that causes vgscan to hang.
George
Jeff Schussele
Honored Contributor

Re: /etc/lvmtab file

Hi Elias,

I suspect your vgscan command is not returning due to a problem somewhere in one of your SCSI subsystems. I'd expect that an ioscan would also take forever.
You should check all SCSI paths for proper configuration, termination, cabling & functioning devices.

As stated just open another window & mv the lvmtab.old back to lvmtab.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Ceesjan van Hattum
Esteemed Contributor

Re: /etc/lvmtab file

Beside the /etc/lvmtab, there is also the /etc/lvmconf/vg00.conf and vg01.conf and so on.
Vgscan tries to rebuild, but is in critical situations not really reliable.
In case you have mirrored disks, you can try to boot from the mirror by ISL>hpux -lq (or -lm) on the alternate disc. In case the mirrored disc of vg00 was also bootable (lvlnboot -v) and had the root/boot/swap space, the dump-mirror will always miss. Therefor you need the -lq option while trying to boot the kernel. This is always very riscy.

In case you cannot play around with booting, just delete /etc/lvmtab and /etc/lvmconf/* and try to rebuild the vg's yourself. And remember, sometimes do not read the errors when you perform the pvcreate -B on existing discs...
In this form, there have been already some discussions about this subject.

Good luck,
Ceesjan

Re: /etc/lvmtab file

Hi all, i solved the problem,
this is what i did.

First i delete the /etc/lvmconf/lvm_lock file
because i was receiving the message

Cannot lock /etc/lvmconf//lvm_lock still trying

then, i can copy the file /etc/lvmtab.old to /etc/lvmtab

- I shutdown and halt my system
- Turn it off the server
- Turn it on
- Startup the system
When all go up I tried again..
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -v

And all works fine

Thanks very much to all

Saludos
Never give up