- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cleaningup unwanted LVM entries
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
07-08-2002 12:20 PM
07-08-2002 12:20 PM
I have 5 internal harddisks on my D-Class server. I rebuilt the server with HP-Ux 11.0 on /dev/dsk/c0t5d0. When I try to add other disks using LVM, SAM tells all other disks have entries in lvmtab that can be activated or imported. Trying Activate/Import also fails with error messages. I dont want any old data.
It would be great if somebody suggests a way to clear all unwanted LVM config entries so that I can free-up and use the remaining 4 disks.
for ex. what are the steps to remove all entries related to VGTEST including logical volumes and config entries. Here please assume tgtest has some errors and we want to get-rid-of it.
Thanks
-GN
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 12:23 PM
07-08-2002 12:23 PM
SolutionThe easiest way to cleanup /etc/lvmtab and /etc/lvmpvg is to 'vgxport' the volume group(s) you don't want.
Afterwards, do a 'pvcreate -f' on the physical disk that were part of the volume group(s). This will erase the VGID from the physical disk so that the next time you do a 'pvcreate' you will not be advised that LVM information exists.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 12:24 PM
07-08-2002 12:24 PM
Re: Cleaningup unwanted LVM entries
First I would rename lvmtab to lvmtab.save and issue the vgscan -a command.
If you really don't want the old data then you could pvcreate -f the old disks and start over.
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 12:26 PM
07-08-2002 12:26 PM
Re: Cleaningup unwanted LVM entries
Just run
#vgexport /dev/VGTEST
This will remove all VG info from the OS.
Then when you want to reinitialize them run
pvcreate -f /dev/rdsk/cxtydz
This will *force* the reinit & ignore previous LVM info on the disks.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 12:33 PM
07-08-2002 12:33 PM
Re: Cleaningup unwanted LVM entries
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 12:42 PM
07-08-2002 12:42 PM
Re: Cleaningup unwanted LVM entries
If you have a disk which was configured on an older system, but you don't want to recover the data on this newer system, do a pvcreate on the disk with -f option, this will pvcreate forcibly on the disk in questions. Then you can go ahead and create VG / LV's for use on the new system.
pvcreate -f /dev/rdsk/cxtydz
proceed with VG / LV creation.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 01:03 PM
07-08-2002 01:03 PM
Re: Cleaningup unwanted LVM entries
I am glad that the forum is so active and answers were immediate.
Vgexport /dev/vgtest
pvcreate -f /dev/rdsk/cxtydz Works.
Renaming lvmtab and "vgscan -a" also works good.
A "pvcreate -f" without exporting gave me the following error:
# pvcreate -f /dev/rdsk/c0t8d0
pvcreate: The physical volume "/dev/dsk/c0t8d0" is already recorded in the "/etc
/lvmtab" file. #
Thanks again,
-GN