- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LVMTAB out of sync
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
Discussions
Discussions
Forums
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
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-07-2000 11:23 AM
тАО08-07-2000 11:23 AM
I have removed a vg through sam, As far as SAM is concerned it does not exist. However, the device files are still on the system and the entry in /etc/lvmtab is still present. If I execute a vgreduce, vgremove, or vgdisplay, the system responds, volume group not activated.
Should I activate it, then try to reduce and remove ?
Should I remove the device files and use vgscan to recreate the /etc/lvmtab ?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2000 11:38 AM
тАО08-07-2000 11:38 AM
SolutionIf the commands fail, do the vgexport command. This will remove the /dev entries and should remove the entry from the lvmtab.
After exporting, mv /etc/lvmtab /etc/lvmtab.old and then do the vgscan command to have the lvmtab file rebuilt.
(Does the device entry still show in strings /etc/lvmtab?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2000 11:40 AM
тАО08-07-2000 11:40 AM
Re: LVMTAB out of sync
#vgscan -p -v
It will search each physical volume attached to the server. Compare this output with that of the command
#strings /etc/lvmtab.
See just where the descrepencies really are then report findings.
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2000 11:40 AM
тАО08-07-2000 11:40 AM
Re: LVMTAB out of sync
Don't know if this pertains to what you are experiencing. This doc deals with Cur PV and Act PV do not agree in vgdisplay. Are there discrepencies in the vgdisplay output as well?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2000 11:10 PM
тАО08-07-2000 11:10 PM
Re: LVMTAB out of sync
You don't specifically mention that the VG was on the AutoRAID but I would not be surprised if it was.
First, I assume you have deleted all Logical Volumes first using the LVREDUCE command. Each time you do this, /etc/lvmtab will be adjusted to the new situation:
/# lvremove /dev/vg01/lvol1
The logical volume "/dev/vg01/lvol1" is not empty;
do you really want to delete the logical volume (y/n) : y
Logical volume "/dev/vg01/lvol1" has been successfully removed.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
When all LV's are removed you have to remove all but one physical volumes. You can only remove a Volume Group if there is only one (1) physical volume attached to it, otherwise it won't work. This means that /etc/lvmtab should show only one PV in the VG. So if you have more than one disks attached to the VG you should remove them all but one first using the VGREDUCE command. Something like below. Don't worry, LVM won't allow you to remove all devices, a minimum of one will stay in the VG.
/# vgreduce /dev/vg01 /dev/dsk/c0t1d2
Volume group "/dev/vg01" has been successfully reduced.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
After you have deleted all but the last disk you can remove the VG using VGREMOVE.
/# vgremove /dev/vg02
Volume group "/dev/vg02" has been successfully removed.
This should solve your problem. If you are not sure about the correctness of your current /etc/lvmtab, you can recreate it first using the VGSCAN command after saving the old /etc/lvmtab first (mv it to another file-name). Beware however that VGSCAN will recreate your /etc/lvmtab in the order it will find the PV's so if you are using both controller on the AutoRAID for load balancing you might find all data going through only one controller after using PVSCAN. In that case you will have to use the VGREDUCE and VGEXTEND command's to recreate the original and correct primary and alternate links again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2000 11:17 PM
тАО08-07-2000 11:17 PM
Re: LVMTAB out of sync
Depending on how sam actually removes things, either doing a vgscan -pv (to see what it's going to do) is good. However, it still might pick up your disks.
In which case, either pvcreate them again, or dd something large (like the kernel) over the front of them. Then do the vgscan -pv again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2000 11:39 PM
тАО08-07-2000 11:39 PM
Re: LVMTAB out of sync
You don't specifically mention that the VG was on the AutoRAID but I would not be surprised if it was.
First, I assume you have deleted all Logical Volumes first using the LVREDUCE command. Each time you do this, /etc/lvmtab will be adjusted to the new situation:
/# lvremove /dev/vg01/lvol1
The logical volume "/dev/vg01/lvol1" is not empty;
do you really want to delete the logical volume (y/n) : y
Logical volume "/dev/vg01/lvol1" has been successfully removed.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
When all LV's are removed you have to remove all but one physical volumes. You can only remove a Volume Group if there is only one (1) physical volume attached to it, otherwise it won't work. This means that /etc/lvmtab should show only one PV in the VG. So if you have more than one disks attached to the VG you should remove them all but one first using the VGREDUCE command. Something like below. Don't worry, LVM won't allow you to remove all devices, a minimum of one will stay in the VG.
/# vgreduce /dev/vg01 /dev/dsk/c0t1d2
Volume group "/dev/vg01" has been successfully reduced.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
After you have deleted all but the last disk you can remove the VG using VGREMOVE.
/# vgremove /dev/vg02
Volume group "/dev/vg02" has been successfully removed.
This should solve your problem. If you are not sure about the correctness of your current /etc/lvmtab, you can recreate it first using the VGSCAN command after saving the old /etc/lvmtab first (mv it to another file-name). Beware however that VGSCAN will recreate your /etc/lvmtab in the order it will find the PV's so if you are using both controller on the AutoRAID for load balancing you might find all data going through only one controller after using PVSCAN. In that case you will have to use the VGREDUCE and VGEXTEND command's to recreate the original and correct primary and alternate links again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2000 04:27 AM
тАО08-08-2000 04:27 AM