HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LVM disks from different host to be used on VXVM?
Operating System - HP-UX
1833144
Members
3045
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
03-09-2009 11:00 AM
03-09-2009 11:00 AM
Hey;
Interesting situation. I had three disks remapped to a host from a different one. On their original host, they were part of a clustered LVM volume group; on the new one they're to be used under vxvm.
I tried the pvremove and got the error about these disks being part of an exported volume group.
I then created a temp vg and imported the disks with the intent of using vgremove. That choked too because the vg wasn't active (strange that one). I couldn't activate it because I didn't have all the disks only three of the original 9.
I finally got tired of wrestling with it and did a simple loop of:
dd if=/stand/vmunix of=/dev/rdsk/${pv}
once that was done, vxdctl enable and the disks are usable afer
vxdisk list | grep 'online invalid' | grep c4t[78] | awk '{print $1}' | \
while read pv
do
/usr/lib/vxvm/bin/vxdisksetup -i ${pv} privlen=20480
done
Is there a *right* way to get these disks out from under LVM? Obviously anything that works is right; however, blasting the LVM structures with a dd seems like pretty serious overkill.
Thanks.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Interesting situation. I had three disks remapped to a host from a different one. On their original host, they were part of a clustered LVM volume group; on the new one they're to be used under vxvm.
I tried the pvremove and got the error about these disks being part of an exported volume group.
I then created a temp vg and imported the disks with the intent of using vgremove. That choked too because the vg wasn't active (strange that one). I couldn't activate it because I didn't have all the disks only three of the original 9.
I finally got tired of wrestling with it and did a simple loop of:
dd if=/stand/vmunix of=/dev/rdsk/${pv}
once that was done, vxdctl enable and the disks are usable afer
vxdisk list | grep 'online invalid' | grep c4t[78] | awk '{print $1}' | \
while read pv
do
/usr/lib/vxvm/bin/vxdisksetup -i ${pv} privlen=20480
done
Is there a *right* way to get these disks out from under LVM? Obviously anything that works is right; however, blasting the LVM structures with a dd seems like pretty serious overkill.
Thanks.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2009 12:24 PM
03-09-2009 12:24 PM
Solution
Doug,
I believe you have found the supported solution to remove the LVM disk headers.
http://seer.entsupport.symantec.com/docs/317631.htm
If you would like to reuse a VXVM disk under LVM control you would have use the "pvcreate -f" command to force the creation of the LVM disk header. VXVM does not have an equivalent command.
Regards,
Robert-Jan
I believe you have found the supported solution to remove the LVM disk headers.
http://seer.entsupport.symantec.com/docs/317631.htm
If you would like to reuse a VXVM disk under LVM control you would have use the "pvcreate -f" command to force the creation of the LVM disk header. VXVM does not have an equivalent command.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2009 04:39 AM
03-10-2009 04:39 AM
Re: LVM disks from different host to be used on VXVM?
Hey;
>>If you would like to reuse a VXVM disk under LVM control you would have use the "pvcreate -f" command to force the creation of the LVM disk header. VXVM does not have an equivalent command.
Actually, there is: /usr/lib/vxvm/bin/vxdiskunsetup. I've had the pleasure of trying that out a time or two as well.
Thanks for the link.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
>>If you would like to reuse a VXVM disk under LVM control you would have use the "pvcreate -f" command to force the creation of the LVM disk header. VXVM does not have an equivalent command.
Actually, there is: /usr/lib/vxvm/bin/vxdiskunsetup. I've had the pleasure of trying that out a time or two as well.
Thanks for the link.
Doug O'Leary
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP