1753824 Members
8824 Online
108805 Solutions
New Discussion юеВ

Re: Regarding VG Error

 
SOLVED
Go to solution
Kavita Poonia
Regular Advisor

Regarding VG Error

Hello Techies,

I am getting below mentioned error on one of my HP-UX server. The VG /dev/vg12 is not existing now on this server but its group file is still there. Please let me know how to resolve this error.

vgdisplay: Volume group "/dev/vg12" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "vg12".
expr: Syntax error

/usr/local/bin/Disk-stat.sh.ctms[254]: ( ( 0 * 1000 ) / 0 + 5 ) / 10 : Cannot divide by zero.


Thanks & regards,
Kavita
11 REPLIES 11
Pete Randall
Outstanding Contributor

Re: Regarding VG Error

Try vgexport.


Pete

Pete
Michal Kapalka (mikap)
Honored Contributor

Re: Regarding VG Error

hi,

use a advice from Pete,

vgexport.

mikap
Steven E. Protter
Exalted Contributor

Re: Regarding VG Error

Shalom,

strings /etc/lvmtab

ioscan -fnC disk

Look for any matches.

I think you will have to vgexport and recreate the volume group, but it would be nice to know what the system expects.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: Regarding VG Error

Hi Kavita:

So what are you trying to do? Do you _want_ to regain vg12? Did you want to remove vg12?

If you want'ed only to rid yourself of vg12 at this point you can simply 'rm' the '/dev/vg12/group' file and '/dev/vg12' directory.

Regards!

...JRF...
Sharma Sanjeev
Respected Contributor

Re: Regarding VG Error

Hi kavita

You can remove group file for vg12 /dev/vg12/group or use vgexport

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Vishu
Trusted Contributor

Re: Regarding VG Error

Hi Kavita,

what you trying to do from here now. Like, if you have that VG and it is not listed in lvmtab, then do

# vgscan -av

if you want to get rid of that VG, you can simply remove the group file and its directory.

if you want to regain that VG and having its map file, you can do vgimport then

# vgimport -m /dev/vg12
Sharma Sanjeev
Respected Contributor

Re: Regarding VG Error

Vishu,

I would never suggest vgscan, if there are hundreds of disks and if any one faulty than .......

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Kavita Poonia
Regular Advisor

Re: Regarding VG Error

Hello All,

We have removed that VG sometime back but now we are getting this error. So, I think to remove this error, I need to remove the group file and directory existing for this VG, right?

Thanks & regards,
Kavita
Torsten.
Acclaimed Contributor
Solution

Re: Regarding VG Error

Yes, remove the group file.



I'm sure you did the VG removal wrong, not by vgremove but by a "rm" only. This is always a reason for trouble.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!