- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Remove LVM info
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
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
тАО07-02-2002 04:44 PM
тАО07-02-2002 04:44 PM
Remove LVM info
When I reinstall the OS still system remembers the old disk groups. How to remove the old info? Just running pvremove is enough?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2002 04:46 PM
тАО07-02-2002 04:46 PM
Re: Remove LVM info
I'd be tempted to do the lot.
if mirrored reduce logical volumes
remove logical volumes
remove volume groups
remove disks (if required).
Then again, the idea of an ignite is to rebuild a system that has crashed or to clone identical systems.
Scott.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2002 05:16 PM
тАО07-02-2002 05:16 PM
Re: Remove LVM info
You can just re-use the disks into new volume groups if you don't require the old information.
To re-use the new disks use 'pvcreate -f /dev/rdsk/cxtydz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2002 06:17 PM
тАО07-02-2002 06:17 PM
Re: Remove LVM info
As Michael has already stataed, the LVM info will remain on the disks even after you remove it from LVM.
The easiest way is to just reuse the disk with a pvcreate -f /dev/rdsk/cXtXdX, although if you really want to ensure that all data has been fully removed from the disk you can use dd:
dd if=/dev/zero of=/dev/dsk/cXtYdZ count=
I don't think /dev/zero is installed by default, but the major number is the same as /dev/null and the minor is 3, but I would check on that before creating the device if it is not already present.
The bottom line is that I wouldn't go to all the trouble of wiping the disks clean with dd, unless I had a reason to, otherwise a simple pvcreate will suffice.
Hope that helps.
-Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2002 05:19 AM
тАО07-03-2002 05:19 AM
Re: Remove LVM info
pvcreate: The physical volume "/dev/dsk/c0t5d0" is already recorded in the "/etc
/lvmtab" file.
You will need to "vgexport" the associated volume group, as well as removing the logical volumes etc. as already suggested.
I also delete and re-create the /dev/vg?? special files for all non-root volume groups.
eg rm -r /dev/vg01
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
However I question why you are doing this if you are using Ignite on the same box, it was created on? Normally only required on a DR box where device names are similar.
HTH
Sean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2002 05:27 AM
тАО07-03-2002 05:27 AM
Re: Remove LVM info
pvcreate -f /dev/rdsk/c1t2d0
vgexport does not remove any information from the disks, it removes the info about the vg from the OS.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2002 05:38 AM
тАО07-03-2002 05:38 AM
Re: Remove LVM info
It is necessary to remove the the information using vgexport from /etc/lvmtab before you can destroy the data on the disk with pvcreate.
This applies as already suggested if the physical volume already matches that stored in /etc/lvmtab. If it doesn't then pvcreate will work.
Disaster recovery is my game and I have to do this regularly when testing client systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2002 05:55 AM
тАО07-03-2002 05:55 AM
Re: Remove LVM info
echo "0x2000?4S" | adb /dev/dsk/cXtXdX
you should see something like
2000: LVMREC01adjfakdjfa;
If you you have a record on that disk.
HTH,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2002 06:37 PM
тАО07-03-2002 06:37 PM
Re: Remove LVM info
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2002 01:01 AM
тАО07-04-2002 01:01 AM
Re: Remove LVM info
The others have already given solutions for the other scenarios.
BTW, "pvremove" does not exist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2002 08:33 AM
тАО07-04-2002 08:33 AM
Re: Remove LVM info
Now I know what to do.