- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to remove vg01
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
12-15-2006 01:02 AM
12-15-2006 01:02 AM
How to remove vg01? I messed up something here. Here is output of vgscan:
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg01"
The Volume Group /dev/vg01 was not matched with any Physical Volumes.
At the same time when I do
pvremove to unconfigure the disk, it says:
pvremove /dev/rdsk/c8t0d1
pvremove: The physical volume "/dev/rdsk/c8t0d1" belongs to an exported volume group.
pvremove: Couldn't remove physical volume "/dev/rdsk/c8t0d1".
Also what this error means:
Couldn't stat physical volume "/dev/dsk/c1t2d0":
Invalid argument
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:06 AM
12-15-2006 01:06 AM
Re: How to remove vg01
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:08 AM
12-15-2006 01:08 AM
Re: How to remove vg01
/dev/vg00
E9Y^
/dev/dsk/c0t6d0s2
/dev/dsk/c3t6d0s2
I was trying to delete vg01 and ucofigure the disk, but probably did something wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:13 AM
12-15-2006 01:13 AM
Re: How to remove vg01
If you are sure there is no data in the volume group.
# vgchange -a no /dev/vg01
# vgexport /dev/vg01
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:15 AM
12-15-2006 01:15 AM
Re: How to remove vg01
The way to remove the volume is to remove all LV's, then vgreduce all the PVs and when only 1 PV remains, vgremove vg01. (or you can vgexport)
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:16 AM
12-15-2006 01:16 AM
SolutionBased on your '/etc/lvmtab' and on the 'pvremove' response, you do not have a volume group 'vg01' defined on your server.
The disk at 'c8t0d1' *did* belong to some volume group at some time, and that could be 'vg01'. If you 'vgexport'ed vg01 at some point, these results would be consistent.
If you truly want to destroy 'c8t0d1' and any LVM data on it, do a 'pvcreate' on it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:17 AM
12-15-2006 01:17 AM
Re: How to remove vg01
# vgcheange -an /dev/vg01
# vgexport /dev/vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:22 AM
12-15-2006 01:22 AM
Re: How to remove vg01
Hi,
Your issue would have caused by the vgscan command. vgscan command scans all physical volumes attached to the server and recreates the /etc/lvmtab.
looking at /etc/lvmtab o/p you posted, i think you are trying all these commands in LVM maintenance mode.
Boot the system to single user mode, check if vg01 is there in lvmtab
strings /etc/lvmtab |grep vg01
if not you are done, else
#vgchange -a n vg01
#vgexport vg01
Thanks, Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:26 AM
12-15-2006 01:26 AM
Re: How to remove vg01
1. Instead of pvremove use
pvcreate -f /dev/rdsk/c8t0d1
2. check "/dev/dsk/c1t2d0" is present in the system or not
ioscan -fnC disk |grep /dev/dsk/c1t2d0
vgscan command is not to display anything. It is used to for re-creating the /etc/lvmtab file just in case required. FYIp
Thanks, Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:28 AM
12-15-2006 01:28 AM
Re: How to remove vg01
If I do pvcreate I get:
pvcreate /dev/rdsk/c8t0d1
pvcreate: The physical volume already belongs to a volume group
What to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:31 AM
12-15-2006 01:31 AM
Re: How to remove vg01
This forum is great!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:32 AM
12-15-2006 01:32 AM
Re: How to remove vg01
# pvcreate -f /dev/rdsk/c8t0d1
...will override the fact that there is an LVM header on your disk.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:34 AM
12-15-2006 01:34 AM
Re: How to remove vg01
What is the output it shows,
# pvdisplay -v /dev/rdsk/c8t0d1
cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2006 01:35 AM
12-15-2006 01:35 AM
Re: How to remove vg01
What is the output it shows,
# pvdisplay -v /dev/dsk/c8t0d1
and
# pvdisplay -l /dev/dsk/c8t0d1
cheers,
Raj.