Operating System - HP-UX
1826694 Members
2532 Online
109696 Solutions
New Discussion

Re: emergency help: vg doen't in /etc/lvmtab

 
Hanry Zhou
Super Advisor

emergency help: vg doen't in /etc/lvmtab

I got following messages:

/home/root# vgdisplay -v /dev/vg04
vgdisplay: Volume group "/dev/vg04" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "/dev/vg04".

Please help what causes the problem?
none
7 REPLIES 7
Ramkumar Devanathan
Honored Contributor

Re: emergency help: vg doen't in /etc/lvmtab

Try this -

# vgscan

- that regenerates your /etc/lvmtab file and if vg04 is correctly configured it must appear in your /etc/lvmtab file.

- ramd.
HPE Software Rocks!
James R. Ferguson
Acclaimed Contributor

Re: emergency help: vg doen't in /etc/lvmtab

Hi:

What preceeded this? A 'vgremove' for volume group 'vg04' would certainly cause yield this, as would a 'vgexport'. Are you sure that you had a volume group 'vg04'?

Regards!

...JRF...
S.K. Chan
Honored Contributor

Re: emergency help: vg doen't in /etc/lvmtab

It looks like when your lvmtab file was created/recreated it was not able to communicate with disk/disks in vg04 thus vg04 is not included in the lvmtab file. Firstly try to recreate lvmtab file by running ..
# cd /etc
# mv lvmtab lvmtab.old
# vgscan -v -a
Now run vgdisplay on vg04 again. If that does not work find out if vg04 does really exist or not. Look up the devices files in /dev/vg04.
Michael Steele_2
Honored Contributor

Re: emergency help: vg doen't in /etc/lvmtab

Anything else going on specific to /dev/vg04? For is this is an old unused vg then you can remove it from /dev.

rm /dev/vg04

I wouldn't run vgscan and rebuild /etc/lvmtab without first generating a preview report:

vgscan -v -a -p

-a - check all controllers
-v - verbose
-p - preview

Cross reference the vg's and disks listed and only then update or create a new lvmtab.

cp /etc/lvmtab /etc/lvmtab_old
vgscan -a -v
Support Fatherhood - Stop Family Law
Hanry Zhou
Super Advisor

Re: emergency help: vg doen't in /etc/lvmtab

I did vgscan already, it did not help.

James,
You got a good point. Somebody else installed the patch bundle this weekend, and I was TOLD vg04 was there. How do I know if it was thter or not?
none
Michael Steele_2
Honored Contributor

Re: emergency help: vg doen't in /etc/lvmtab

Regarding: "...How do I know if it was thter or not? ..."

Note date on /etc/lvmconf/vgo4.conf

Verify old vg with:

vgcfgrestore -f /etc/lvmconf/vg04.conf -l

-or-

vgcfgrestore -f /any_file -l
Support Fatherhood - Stop Family Law
Scott_14
Regular Advisor

Re: emergency help: vg doen't in /etc/lvmtab

not sure if this would help, I dont know how your system is configured, have your checked your fstab file, making sure its there, and that the physical disk its attached to is ok.

do you know what patch was installed last weekend that was mentioned. I am just wandering since you say vgscan is not working out for you.