- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgremove: need to remove a vg
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
04-20-2009 02:57 AM
04-20-2009 02:57 AM
vgremove: need to remove a vg
I want to create a vg with a disk. By mistake I selected a wrong disk to create this vg(this disk is already a part of another vg)
The vg has been created with the available space on the wrong disk.
I want to remove this vg now and create it again with the correct disk.
vgreduce and vgremove didnt worked..any help please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 02:59 AM
04-20-2009 02:59 AM
Re: vgremove: need to remove a vg
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 03:00 AM
04-20-2009 03:00 AM
Re: vgremove: need to remove a vg
so you mean i should do
vgexport -a n
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 03:05 AM
04-20-2009 03:05 AM
Re: vgremove: need to remove a vg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 03:08 AM
04-20-2009 03:08 AM
Re: vgremove: need to remove a vg
unmount all lv's then with "lvremove lvname" remove all lv
then remove vg with "vgremove vgname"
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 03:09 AM
04-20-2009 03:09 AM
Re: vgremove: need to remove a vg
#vgexport
or
#vgexport
??
also..FYI
in /etc/lvmtab this newly created VG is not present.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 03:11 AM
04-20-2009 03:11 AM
Re: vgremove: need to remove a vg
I didnt created any lv in this new vg
i create this vg with a command and realised that I mentioned a wrong disk while creating.
now I am trying to remove this new vg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 03:20 AM
04-20-2009 03:20 AM
Re: vgremove: need to remove a vg
>>The vg has been created with the available space on the wrong disk.<<
I have a doubt here. LVM will not allow to create the VG if the is part of another VG unless that vg is exported. Not sure how did you created without any warning message or error.
Now do the following
First step would be, remove the new VG you just created. Then only you can free up the disk which is part of another VG. Simple step to remove a VG is export it.
# vgexport -v /dev/vgname
Now create the new VG with new disk
#mkdir /dev/vgname
#mknod /dev/vgname/group c 64 0x100000
#vgcreate vgname disk
But remember that, you need to restore the LVM headers on the disk which you have added wrongly. Use vgcfgrestore command to restore the VG configuration on it.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 03:25 AM
04-20-2009 03:25 AM
Re: vgremove: need to remove a vg
Beginning the export process on Volume Group newvg".
vgexport: Volume group "/dev/newvg" does not exist in the "/etc/lvmtab" file.
vgexport: Couldn't export volume group "/dev/newvg".
serverxx:/ #
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 03:34 AM
04-20-2009 03:34 AM
Re: vgremove: need to remove a vg
So, the vg is not created at all.
You go ahead and create the new VG with new disk.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 03:34 AM
04-20-2009 03:34 AM
Re: vgremove: need to remove a vg
Are you sure that your Vg was created sucessfully that time ...could your please send me the output of vgdisplay -v vgname.
if its not showing any output means your Vg was not created that time ....
and if its there then please let me know if you did pvcreate forcefully.
Regards
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 03:44 AM
04-20-2009 03:44 AM
Re: vgremove: need to remove a vg
I did it like this:
mkdir /dev/newvg
mknod /dev/newvg/group c 64 0x0a0000
pvcreate /dev/rdsk/c12t0d5
vgcreate -s 64 newvg /dev/dsk/c8t0d4
(I donot have the output with me now..but I remember it said vg is created and extended to 1759 PEs)
When I went to the vg which is already having this disk c8t0d4 ..vgdisplay shows allocated PE 1759..no free PE etc
serverxx:# vgdisplay -v newvg
vgdisplay: Volume group "/dev/newvg" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "newvg".
serverxx:#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 04:03 AM
04-20-2009 04:03 AM
Re: vgremove: need to remove a vg
Don't make things complicated...Just do pvdisplay on old disk.
#pvdisplay /dev/dsk/c8t0d4
Look the VG Name which this disk part of. If it shows old VG name then there is no issue. Nothing has been done on the disk.
You can go ahead and create the new VG with new disk.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 04:07 AM
04-20-2009 04:07 AM
Re: vgremove: need to remove a vg
serverxx:/ # pvdisplay /dev/dsk/c8t0d4
--- Physical volumes ---
PV Name /dev/dsk/c8t0d4
PV Name /dev/dsk/c10t0d4 Alternate Link
PV Name /dev/dsk/c12t0d4 Alternate Link
PV Name /dev/dsk/c14t0d4 Alternate Link
VG Name /dev/othervg
PV Status available
Allocatable yes
VGDA 2
Cur LV 4
PE Size (Mbytes) 64
Total PE 1759
Free PE 0
Allocated PE 1759
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On
serverxx:/ #
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 04:17 AM
04-20-2009 04:17 AM
Re: vgremove: need to remove a vg
>>>VG Name /dev/othervg<<<
So it is clear that, the disk is part of /dev/othervg, not part of /dev/newvg.
Go ahead and create new VG now.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 05:01 AM
04-20-2009 05:01 AM
Re: vgremove: need to remove a vg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2009 06:15 AM
04-20-2009 06:15 AM