- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- incorrect VG entry in the /etc/lvmtab file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 01:34 AM
08-10-2004 01:34 AM
incorrect VG entry in the /etc/lvmtab file
There is an strange VG in my /etc/lmvtab file named /dev/
I don't now how this this volume Group has been added! I unsuccessfull tried to delete it
Then vgdisplay -v returs the following message :vgdisplay:
Volume group "/dev" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "/dev/".
Here are output of some commands :
server2 / >strings /etc/lvmtab
/dev/vg00
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
/dev/
/dev/dsk/c1t2d0
server2 / >vgscan -v
vgscan: Couldn't access the list of physical volumes for volume group "/dev".
vgscan: The physical volume "/dev/dsk/c1t2d0" is already recorded in the "/etc/l
vmtab" file.
vgscan: The physical volume "/dev/dsk/c2t2d0" is already recorded in the "/etc/l
vmtab" file.
Couldn't stat physical volume "/dev/dsk/c0t1d0":
Invalid argument
/dev/
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c4t0d0
/dev/dsk/c5t1d0
Scan of Physical Volumes Complete.
/dev/dsk/c2t2d0
NB: SAM cannot detect the volume groupe /dev/
Please help me solving this problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 01:40 AM
08-10-2004 01:40 AM
Re: incorrect VG entry in the /etc/lvmtab file
mv /etc/lvmtab -> /etc/lvmtab.corrupted
then issue the
vgscan -v
BEFORE doing this, apart from a valid backup, check if you have any file under /dev/ with minor "64". I remember an old bug, where a cmcluster could create such a file in /dev/ corrupting all.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 01:41 AM
08-10-2004 01:41 AM
Re: incorrect VG entry in the /etc/lvmtab file
# mv /etc/lvmtab /etc/lvmtab.bad
# vgscan -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 01:44 AM
08-10-2004 01:44 AM
Re: incorrect VG entry in the /etc/lvmtab file
# mv /etv/lvmtab /etc/lvmtab.old
# vgscan -a
This should help.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 01:45 AM
08-10-2004 01:45 AM
Re: incorrect VG entry in the /etc/lvmtab file
solution in
http://storage.ittoolbox.com/groups/groups.asp?v=HP-UX-L&i=433433
using vgreduce -f
should be ok
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 02:04 AM
08-10-2004 02:04 AM
Re: incorrect VG entry in the /etc/lvmtab file
After moving the /etc/lvmtab file and exceute the #vgscan -a command
Only this /dev/ Volume Groupe is recored in the /etc/lvmtab file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 02:35 AM
08-10-2004 02:35 AM
Re: incorrect VG entry in the /etc/lvmtab file
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 02:56 AM
08-10-2004 02:56 AM
Re: incorrect VG entry in the /etc/lvmtab file
Try to find the name of the vg with this script and to display its status
for i in $(ls /dev/*/group)
do
export VGNAME=$echo $i|awk -F/ '{ print "/"$2"/"$3 }')
vgdisplay $VGNAME
done
if you can see the skills of you vg it seems that my theory is okay then
replace vgdisplay by vgchange -a n
it desactivate all your vgs ( be carefull all the vgs)
if you have a normalisation for your vg name
replace the first line with a line like this
for i in $(ls /dev/*/group|grep -v VG)
VG is the normalised name you choose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 03:01 AM
08-10-2004 03:01 AM
Re: incorrect VG entry in the /etc/lvmtab file
for i in $(ls /dev/*/group|grep -v vg.*)
do
export VGNAME=$(echo $i| awk -F/ '{ print "/"$2"/"$3 }')
vgdisplay $VGNAME > ./vg_info.txt
vgchange -a n $VGNAME
rm -R $VGNAME
echo $VGNAME
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 03:15 AM
08-10-2004 03:15 AM
Re: incorrect VG entry in the /etc/lvmtab file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 03:25 AM
08-10-2004 03:25 AM
Re: incorrect VG entry in the /etc/lvmtab file
cd /dev
ls -b * | more
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 03:27 AM
08-10-2004 03:27 AM
Re: incorrect VG entry in the /etc/lvmtab file
i explain in the post before to replace "vg" by a synonym of the normalized name of our vg.
excuse me i m not fluent english and i forgot to repeat the instructions of the previous post .
I also forgot to specify that you must do a vgexport before doing the rm ( if you want the potential vg.
if you only want to see the name of vg you can do
ls /dev/*/group
or
ls /dev/*/group | od -c
i m really sorry for the previous post
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 03:32 AM
08-10-2004 03:32 AM
Re: incorrect VG entry in the /etc/lvmtab file
It's true , there is a file named slvmvg in /dev/ directory causing this problem ; I deleted it , delete the /etc/lvmtab
And execute the vgscan command , and that's OK now !!
Thanks their Dietmar for your help !!!!