1833110 Members
3467 Online
110051 Solutions
New Discussion

Re: problem with vgscan

 
Carlos Vanegas
Occasional Advisor

problem with vgscan

I made :
vgdisplay /dev/vg01

--- Physical volumes ---
PV Name /dev/dsk/c11t1d3
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c13t1d3":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.

I checked with ioscan -fnC disk and I saw the new device is /dev/dsk/c22t1d3.

I made:
mv /etc/lvmtab /etc/lvmtab.old

vgscan -a

and I disovered the vg01 now is correct, but the /etc/lvmtab doesn't have the VG00

I retured the /etc/lvmtab.old to /etc/lvmtab becouse I dont want to lost the Vg00, what can I do??
5 REPLIES 5
S.K. Chan
Honored Contributor

Re: problem with vgscan

Recreate lvmtab file again by running ..
# vgscan -av
instead so that we can see what error does vgscan report (if any). Post the output here.
John Dvorchak
Honored Contributor

Re: problem with vgscan

You might try to make a copy of /etc/lvmtab then run vgscan -v -p which will not do anything (-v verbose -p preview mode) but will let you see if it finds the problem and looks like it will correct it. If you like what you see then try to run it for real letting it correct the /etc/lvmtab file as opposed to recreating it.

I would suggest that you man vgscan to see what the issues are with running vgscan on a system while it is running in production mode. Nothing serious, it just hints that it might not complete on a busy system. Anyway you can always run it in single user mode next time you reboot.
If it has wheels or a skirt, you can't afford it.
Jeff Schussele
Honored Contributor

Re: problem with vgscan

Hi Carlos,

First determine what PVs are in vg00 from the lvmtab file.
Then do
pvdisplay /dev/dsk/cxtydz
on them & verify that indeed the VG name is /dev/vg00.
It's possible to alter that name - usually by a misstep in LV maint mode in the past.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Martin Johnson
Honored Contributor

Re: problem with vgscan

I had a system that had /dev/vgroot instead of /dev/vg00 (not sure how it got that way). Make sure vg00 exists ("ll /dev", look for vg00).

I used ignite to change /dev/vgroot to /dev/vg00.

HTH
Marty
Joseph A Benaiah_1
Regular Advisor

Re: problem with vgscan

???????

?? ???? ???? ???????? ??? ?? ??? ??? ??????? ??????? ???? ??????? ?? ????????? ??? ?? ???? ?? ?? ?? ???????? ??? ????? ?????? ??? ?????? ???? ??? ??????????? ???? ??? ???????? ?????

???? ?????? ???????? ??? ??????? ??? ???? ?? ??? ?????? ?

???????

???????