1833776 Members
2180 Online
110063 Solutions
New Discussion

vgscan

 
SOLVED
Go to solution
Daniel Caçador
Regular Advisor

vgscan

Hi!

Look this message after I execute the vgscan -v:

vgscan: couldn't access the list of physical volumes for volume group "/dev/vg00".

The volume group /dev/vg00/group was not matched any Physical volumes complete.

Thank's!!!
29 REPLIES 29
Fabio Ettore
Honored Contributor

Re: vgscan

Hi Daniel,

can you post the output of

ll /dev/vg00/group

Does vgdisplay on vg00 get error messages as well?
Have you backupped /etc/lvmtab before to launch vgscan?

Regards,
Fabio
WISH? IMPROVEMENT!
Peter Godron
Honored Contributor
Solution

Re: vgscan

Daniel,
why did run the vgscan command? First paragraph of man vgscan says to "in the event of a catastrophic error".

Have you got a backup of your /etc/lvmtab.
Seems the system thinks you have a vg00 without actual physical disks!

Did you have a diskcrash?
Sivakumar TS
Honored Contributor

Re: vgscan


Hi,

what is the content of lvmtab now?

Try to mv the /etc/lvmtab and run vgscan

Regards,

Siva.
Nothing is Impossible !
Daniel Caçador
Regular Advisor

Re: vgscan

Hi!!

This is the shoot of vgscan.

Thank's
Daniel Caçador
Regular Advisor

Re: vgscan

This is the shot of ls /dev/vg00/group

Thank's!
Daniel Caçador
Regular Advisor

Re: vgscan

This is the shot of ls /dev/vg00/group

Thank's!
Prashant Zanwar_4
Respected Contributor

Re: vgscan

Do check for /dev/lvmconf/vg00.conf and if some older files and also decide on which disks should be in vg00.
Make sure those are the disks which should belong to VG00.. And then take other steps..

Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Daniel Caçador
Regular Advisor

Re: vgscan


Yes, have the files, how the others steps?
Prashant Zanwar_4
Respected Contributor

Re: vgscan

You can list the disks which were in use like following..

vgcfgrestore -n vg_staging_tmp -l
Volume Group Configuration information in "/etc/lvmconf/vg_staging_tmp.conf"
VG Name /dev/vg_staging_tmp
---- Physical volumes : 4 ----
/dev/rdsk/c22t9d4 (Non-bootable)
/dev/rdsk/c23t9d4 (Non-bootable)
/dev/rdsk/c22t9d5 (Non-bootable)
/dev/rdsk/c23t9d5 (Non-bootable)

You can also use same command like below:

vgcfgrestore -f /etc/lvmconf/vg_staging_tmp.conf.old -l
Volume Group Configuration information in "/etc/lvmconf/vg_staging_tmp.conf.old"
VG Name /dev/vg_staging_tmp
---- Physical volumes : 4 ----
/dev/rdsk/c22t9d4 (Non-bootable)
/dev/rdsk/c23t9d4 (Non-bootable)
/dev/rdsk/c22t9d5 (Non-bootable)
/dev/rdsk/c23t9d5 (Non-bootable)


Decide with your best judgement what disks were in use for VG00..

Then check lvmtab, if it is messed up..


Recreate lvmtab & check after that..

Whatever you do have all config backup first..

/etc/lvmconf/vg00* (backup to safe place)
/etc/lvmtab - back up

Gud luck
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Daniel Caçador
Regular Advisor

Re: vgscan

Hi Prashant!

Sorry, but I did not understand what you he said.

Please, he tries to explain me again?


Thank's!
Prashant Zanwar_4
Respected Contributor

Re: vgscan

You have to run command as I explained in my example.. on vg00.conf & vg00.conf.old.. it will show output as disks which belong to VG00 as per previous config..
Make judgement and then recreate lvmtab ..
Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Daniel Caçador
Regular Advisor

Re: vgscan

OK. See the shoot of command...

And now?

Thank's!!!
Daniel Caçador
Regular Advisor

Re: vgscan

Now see this shot.
Why I can't mount the lvols?

Thank's!
Prashant Zanwar_4
Respected Contributor

Re: vgscan

Can you check /dev/vg00/* ... Are the lvol device files existing?

Regards
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Daniel Caçador
Regular Advisor

Re: vgscan

OK
Look the shot
Prashant Zanwar_4
Respected Contributor

Re: vgscan

DO ls -al

& vgdisplay -v vg00

& pvdisplay -v /dev/dsk/c1t8d0 ...

Thanks and regards
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Prashant Zanwar_4
Respected Contributor

Re: vgscan

also try running vgchange -a y vg00

Thx
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Daniel Caçador
Regular Advisor

Re: vgscan

Error....

Thank's!
Prashant Zanwar_4
Respected Contributor

Re: vgscan

vgcfgrestore -n /dev/vg00 -l

What does this show? is it same as

vgcfgrestore -f /etc/lvmconf/vg00.conf.old -l

if So, you have to boot system in maintainence mode, do

vgcfgrestore -f /tmp/vg00.conf /dev/rdsk/c1t8d0 , i am not sure of way of doing it in multiuser mode..
My assumption is you have lost lvm structure stored on disk..

You might wait for other replies, if some one has any better idea..

Good luck
Thanks and regards
Prashant

"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Prashant Zanwar_4
Respected Contributor

Re: vgscan

One more thing, if you have /etc/lvmpvg file, rename that file and run vgscan again
and then try mount -a

lvmpvg might have wrong info..

Best luck
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Prashant Zanwar_4
Respected Contributor

Re: vgscan

first try this lvmpvg solution, and then do any other steps, it has been solution in earlier forums also as I checked
Rgds
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Daniel Caçador
Regular Advisor

Re: vgscan

The commands are OK

But...look this boot shot
Prashant Zanwar_4
Respected Contributor

Re: vgscan

Did u try renaming lvmpvg? and running vgscan.. if not, run it ..

if yes.. go for other solutions

Regards
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Prashant Zanwar_4
Respected Contributor

Re: vgscan

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1007566

this thread is good to refer

Rgds
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."