- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvgremove
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
01-12-2002 12:35 PM
01-12-2002 12:35 PM
lvgremove
In that i had 2 logical volumes(lvol1,lvol2).
I did lvremove for them.But after that i can see only one logical volume was removed.The other one is remaining.If i use lvremove on that "it is saying successfully removed:.But it remains there.If i do vgremove on vg01 it says you have logical volume in it.what should i do?I would like to remove the volume group.
suggesstions are appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2002 12:52 PM
01-12-2002 12:52 PM
Re: lvgremove
This is the normal procedure :
1) Unmount the file systems (umount)
2) check through 'bdf' to confirm the umount.
3) remove LVs (lvremove lvname)
4) Confirm removal through 'lvdisplay' or 'vgdisplay -v'
5) remove vg (vgremove)
For an easy trial you can do this throgh SAM.
Remember to check up nobody is using the particular file systems.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2002 12:52 PM
01-12-2002 12:52 PM
Re: lvgremove
You say "I can see only one logical volume was removed.". How do you conclude this; the presence of device files (/dev/vg01/*) or doing 'lvdisplay /dev/vg01/lvolN'?
A simple way to eliminate almost all vestiges of a volume *group* (i.e. all of its logical volumes and device files) is to 'vgexport' the volume group. You will then only need to edit its logical volume mount points (if any) from /etc/fstab.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2002 01:15 PM
01-12-2002 01:15 PM
Re: lvgremove
It has given the error message as "can't remove the volume group ,there is existing logical volumes."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2002 01:18 PM
01-12-2002 01:18 PM
Re: lvgremove
Seems like it failed removing the LV. What will be the output of 'lvdisplay' and 'vgdisplay ? Does it show any LV information ? Did you try removing through SAM ?
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2002 01:22 PM
01-12-2002 01:22 PM
Re: lvgremove
In this situation it sounds like there
are still logical volumes in the group.
To check run the vgdisplay command
# vgdisplay -v /dev/vg01
It should return some information on
existing volumes. If so run the 'lvremove'
command.
# lvremove /dev/vg01/lvol?
Once all have been removed and any
other except the last physical
volumes by running
the 'vgreduce' command
# vgreduce /dev/vg01 /dev/dsk/cxtydz
only then can you run the 'vgremove'
command
# vgremove /dev/vg01
As suggested earlier by James, running
the 'vgexport' command will do the lot.
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2002 01:33 PM
01-12-2002 01:33 PM
Re: lvgremove
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2002 01:41 PM
01-12-2002 01:41 PM
Re: lvgremove
So the 'vgdisplay' shows one logical volume. Is the logical volume one of those you 'lvreduce'd? Would you please re-do the 'vgdisplay' adding the verbose (-v) option. Also, do a verbose 'lvdisplay' on the remaining logical volume and post that.
Once again, if you have *nothing* on the volume group that you want, a 'vgexport' of the whole volume group should do a rapid cleanup.
# vgchange -a n /dev/vg01
# vgexport /dev/vg01
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2002 08:46 PM
01-12-2002 08:46 PM
Re: lvgremove
#vgchange -a n vg01
#vgexport vg01
This will get you rid of vg01 from the system. You can do a pvcreate on the disks and start using them.
-Sri