1833776 Members
2387 Online
110063 Solutions
New Discussion

Re: Vgdisplay error

 
SOLVED
Go to solution
Nagashankar
Occasional Contributor

Vgdisplay error

When i do a vgdisplay -v vg01, i get the following error..vgdisplay: Cannot open the control file "/dev/vg01/group":No such devicevgdisplay: Cannot display volume group "vg01"The only change that was done was a restart.This is new system and very less chances of a disk failure.Because of this i am not able to mount one of the filesystem located in vg01.the filesystem on vg01 was hfs..Kindly can someone let me know what can done.
10 REPLIES 10
Bharat Katkar
Honored Contributor

Re: Vgdisplay error

Hi,

1. Check whether /dev/vg01/group exists and that the minor no. is correct. Check the timestamp for any recent modifications.
2. do # strings lvmtab
See whether it show vg01 and associated PV's
If it doesn't show then you have to do
-- mv /etc/lvmtab to /etc/lvmtab.org
-- vgscan -a
Rebuilds lvmtab file.

Hope that helps.
Regards,



You need to know a lot to actually know how little you know
Nagashankar
Occasional Contributor

Re: Vgdisplay error

Thanks for the reply.The below given is my old lvmtab entry.The Disk c2t0d0 is present.root@spec# strings /etc/lvmtab.org/dev/vg00=TrS@/dev/dsk/c2t1d0s2/dev/vg01=TrSA/dev/dsk/c2t0d0The output of vgscan is as followsUnable to match these Physical Volumes to a Volume Group.Use the vgimport command to complete the process./dev/dsk/c2t0d0The Volume Group /dev/vg01 was not matched with any Physical Volumes.I tried Vgimport it gives the following error.vgimport -v /dev/vg01Beginning the import process on Volume Group "/dev/vg01".vgimport: Cannot open the control file "/dev/vg01/group":No such device
Muthukumar_5
Honored Contributor

Re: Vgdisplay error


I hope the /etc/lvmtab file is not updated.

Check us,

vgscan -pv

It will give the scan report to you with out updation.

Try to back up the /etc/lvmtab to another location.


Are you have the localtion of directory as,

/dev/vg01/?

Else copy /dev/vg00/ to /dev/vg01/

Then check as like,

vgimport -pv /dev/vg01

Update the lvmtab file. It will not prompt
vgdisplay: Cannot open the control file "/dev/vg01/group":No such devicevgdisplay:

Try as -pv for every action before doing it.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: Vgdisplay error

Oops.. Try to create vg with vgcreate to create vg01 volume group.

see more on vgcreate man page
Easy to suggest when don't know about the problem!
monasingh_1
Trusted Contributor

Re: Vgdisplay error

Do you have /dev/vg01/group file to begin with?
you may want to check that.
if not present , recretaethat wit mknod command...
Massimo Bianchi
Honored Contributor

Re: Vgdisplay error

Hi,
please check previous number 1 item, it's very likel that the /dev/vg01/group file is missing.


TO check if it has been deleted, try this:

cd /dev/vg01
strings .| more

if the file was there, you will find a trace.

YOu probably have to re-import the VG.

BTW, wht's in your /etc/lvmtab ?

HTH,
Massimo
Massimo Bianchi
Honored Contributor

Re: Vgdisplay error

Hi,
another little thing: are you using and EVA ?

In that case, at boot disks are not visible, due to a missing workaround.

Try issuing a couple of IOSCAN


ioscan -fn

and then look if you have the disks.

Regards,
Massimo
Matti_Kurkela
Honored Contributor

Re: Vgdisplay error

Things to check:

- Does the directory /dev/vg01 exist?

- Like the error message says, does the control file /dev/vg01/group exist?

- Run a command: "strings /etc/lvmtab". There you should find the device name(s) where the system expects to find the vg01. Does that look correct? Are those disks visible in "ioscan -fnCdisk"?

What kind of disk(s) the vg01 is located on? Internal disk in the server? External SCSI? External FibreChannel storage box? A large FibreChannel SAN fabric? Something else?
MK
Dietmar Konermann
Honored Contributor
Solution

Re: Vgdisplay error

If I recall it correctly, then vgdisplay says:

Cannot open the control file "/dev/vg01/group":
No such device

This has nothing to do with lvmtab and typically means:
- /dev/vg01/group is present
- /dev/vg01/group is a character special file
- /dev/vg01/group has major 64

But:
The VG number NN (minor 0xNNxxxx) may not be in the range 0...maxvgs-1.

So please check the minor number and compare it with your maxvgs kernel tunable.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Nagashankar
Occasional Contributor

Re: Vgdisplay error

That was perfect,The minor (0xNNxxxx) was somehow wrong, just relialised it late.i have corrected the same to solve the problem, thanks for all those who replied.