1844093 Members
2620 Online
110227 Solutions
New Discussion

vgdisplay error

 
Scott E Smith
Frequent Advisor

vgdisplay error

After a system upgrade was performed last week the vgdisplay command has many errors about cannot query physical volume group. Investigation revealed that one of the SCSI connecters to disk array wasn't connected. Now all disks are available etc but I still get errors. Any ideas? Thanks.
7 REPLIES 7
Sajid_1
Honored Contributor

Re: vgdisplay error

Try this:
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -a -v
# vgdisplay -v
learn unix ..
James R. Ferguson
Acclaimed Contributor

Re: vgdisplay error

Hi Scott:

What errors are you now seeing?

Regards!

...JRF...
Scott E Smith
Frequent Advisor

Re: vgdisplay error

This is a very busy system. Is this going to cause any problems? I ran the vgscan -p -v just to see the output.
I attached the output for review.... Thanks.
Sajid_1
Honored Contributor

Re: vgdisplay error

hi again,

This is not going to cause any issues to your system. If you want to try the preview (-p) again, then check it after moving the /etc/lvmtab file. This command will just search all disks and it's LVM structure and will enter it to the lvmtab file.

gl,
learn unix ..
MANOJ SRIVASTAVA
Honored Contributor

Re: vgdisplay error

Hi Scott


It looks you have 2 paths for the same disk so there shoudl be no problems , incase you can boot the sytem in the night or something everything will get back to normal , in csae you cant do that then better follow Sajid sugestion of vgscan , you may also liek to do a man for vgcfrestore too.


Manoj Srivastava
James R. Ferguson
Acclaimed Contributor

Re: vgdisplay error

Hi Scott:

If you are going to run 'vgscan' take a look at the man pages first!

You should plan to run this when your server is fairly quiet.

You will need to rename the current '/etc/lvmtab' before you run 'vgscan'.

Be sure, too, to issue an 'lvlnboot -R' afterwords, and you may need to adjust alterate links within volume groups.

Regards!

...JRF...
Gerald Virden
Advisor

Re: vgdisplay error

Scott,

I have seen this on my system if I have forgotten to do a vgcfrestore after a new disk installation or reinitializing a current disk. It looks like the log info you attached is saying that it cannot find the vg information on the disk.