- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Remove LVM information
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
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
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-31-2011 02:07 PM
08-31-2011 02:07 PM
Hello,
basically I was running some LVM tests on my 11.23 server. I presented a disk from my SAN and created a new VG and LV. long story short somebody decided to remove the mapping (unpresent) my test disk and now LVM cannot find the old LUN. for a very specific reason I cannot represent the volume back to my server and I just need to delete the LVM information and any traces of the test LV, test VG, etc.
so, I basically tried to unmount the FS (POC is the mountpoint)
# umount /POC
but the command hangs, same thing happens if I try to run bdf or any other LVM related command (lvremove or vgreduce).
is there any way to manually remove this filesystem, LV and VG? I do not really care about the data on that filesystem.
regards,
Mynor
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2011 02:30 PM
08-31-2011 02:30 PM
Re: Remove LVM information
Hi:
If I understand correctly, you could rename the '/etc/lvmtab' file to '/etc/lvmtab.old' and run 'vgscan -a -v'. Have a look at the 'vgscan' manpages and follow the instructions the operation reports.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2011 05:48 AM
09-01-2011 05:48 AM
Re: Remove LVM information
Thanks James,
I created a copy of the /etc/lvmtab by renaming it to /etc/lvmtab.old
after running the #vgscan -a -v , the /dev/VG_POC (my test VG) was listed along with the message that it was not matched with any Physical Volumes.
the entry was removed from /lvmtab but the problem persisted (getting stuck while doing a bdf or trying to go into sam to list the filesystems), I decided to restore the old copy of the lvmtab.old into /etc/lvmtab by doing a #cp -p lvmtab.old lvmtab and then run a #vgexport -v /dev/VG_POC . Anyway, the vgexport with the following error message: vgexport: Volume group "/dev/VG_POC" is still active.
do you have any other ideas on how to remove it?
thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2011 06:17 AM
09-01-2011 06:17 AM
Solution
@Mynor Aguilar wrote:I created a copy of the /etc/lvmtab by renaming it to /etc/lvmtab.old
after running the #vgscan -a -v , the /dev/VG_POC (my test VG) was listed along with the message that it was not matched with any Physical Volumes.
the entry was removed from /lvmtab but the problem persisted (getting stuck while doing a bdf or trying to go into sam to list the filesystems), I decided to restore the old copy of the lvmtab.old into /etc/lvmtab by doing a #cp -p lvmtab.old lvmtab and then run a #vgexport -v /dev/VG_POC . Anyway, the vgexport with the following error message: vgexport: Volume group "/dev/VG_POC" is still active.
To 'vgexport' a volume group you must first deactivate it with 'vgchange -a n <vgname>'. I don't know if that will work in this case. If not, I would try reboot followed by a recreation of the '/etc/lvmtab' as before. The kernel currently knows about the missing volumes.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2011 06:43 AM
09-01-2011 06:43 AM
Re: Remove LVM information
thanks, I've already tried to do a vgchange before the vgexport
/->vgchange -a n VG_POC
vgchange: Couldn't deactivate volume group "VG_POC":
Device busy
anyway, I'll proceed to schedule the reboot of the server, I'll let you know if that works. thanks for your help.
regards,
Mynor