- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pvremove problem
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
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
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-09-2006 09:06 PM
тАО07-09-2006 09:06 PM
I wish to remove a LUN.
I received the following error:
# pvremove /dev/rdsk/c6t3d0
pvremove: The physical volume "/dev/rdsk/c6t3d0" belongs to an exported volume group.
pvremove: Couldn't remove physical volume "/dev/rdsk/c6t3d0".
#
ll /dev/vg*/group correctly contains 0x150000 Jul 7 15:59 /dev/vgx/group
Any advice appreciated to send me in the right direction.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 09:10 PM
тАО07-09-2006 09:10 PM
Re: pvremove problem
man pvremove says
The pvremove command clears the LVM data structure on a disk, so that
it is no longer an LVM physical volume. The device may then be used
by the file system or by other Volume Manager.
The operation is denied if device file (/dev/rdsk/c6t3d0) is assigned to a volume group. The
pvremove command only clears the LVM data structure on a disk if the
disk does not belong to a volume group. This avoids accidentally
removing a valid physical volume under a volume group. If the
physical volume to be removed belongs to a volume group, use the
vgremove command to first remove the volume group associated with the
physical volume.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 09:11 PM
тАО07-09-2006 09:11 PM
Re: pvremove problem
If you wish to remove the LUN with pvremove, ensure that the disk doesn't belong to any VG. Use vgremove or vgexport to the VG.
regards,
Sandy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 09:58 PM
тАО07-09-2006 09:58 PM
Re: pvremove problem
one way is to do vgreduce on that pv and another is to export vg but only if that vg is not in use any more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 10:02 PM
тАО07-09-2006 10:02 PM
Re: pvremove problem
it will tell you what vg it is attached to.
Also try a pvdisplay -v no the PV, that will tell you if there are any LVs still on the PV.
If there are any LVs on it:
1) check that the LV isn't in mirrored mode (lvdisplay will tell you how many "Mirrored copies" there are, if it is then lvreduce the mirror on this PV.
2) if there are any further extents on this PV, then pvmove the LV from this PV to another PV in the VG.
If it is attached to any VG, vgreduce the PV from the VG
Then you should be able pvremove the disc, without too much trouble.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 10:30 PM
тАО07-09-2006 10:30 PM
Re: pvremove problem
I should have added that i had tried the following:
# vgcreate -s 16 vgx /dev/dsk/c6t3d0
Increased the number of physical extents per physical volume to 6399.
vgcreate: Volume group "/dev/vgx" could not be created:
The path does not specify a valid physical volume.
#
# vgexport -v /dev/vgx
Beginning the export process on Volume Group "/dev/vgx".
vgexport: Volume group "/dev/vgx" does not exist in the "/etc/lvmtab" file.
vgexport: Couldn't export volume group "/dev/vgx".
-> ROOT-dublin@nllsp101:/
#
# vgreduce /dev/vgx /dev/dsk/c6t3d0
vgreduce: Volume group "/dev/vgx" does not exist in the "/etc/lvmtab" file.
-> ROOT-dublin@nllsp101:/
The 100GB LUN is new and is empty so no data can be lost.
There are no mirrors or extents.
Feel like I might have no option than to do a forced removal (which i dont like) unless anyone can think of another option....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2006 10:53 PM
тАО07-09-2006 10:53 PM
SolutionNB make sure you make a safe copy the /etc/lvmtab file first.
If the output from vgscan doesn't give any new information, try a vgimport -v on the PV to see if it can reimport the PV and recreate the LVs - then you can try and delete the LVs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2006 12:38 AM
тАО07-10-2006 12:38 AM
Re: pvremove problem
A vgimport -v vg_name worked and I activated it with vgchange -a y vg_name.
I can now continue working with it.
Many thanks for everybodys help(especially Mancboy.