- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to remove a LV & reduce the volume group
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-22-2006 06:15 AM
01-22-2006 06:15 AM
How to remove a LV & reduce the volume group
I need to delete some logical volumes & reduce the some LUNs from that volume group.
how to do it?
#umount /praveen/oracle/data
#lvremove /dev/vg44/praveen_oracle_data
#vgreduce /dev/vg44 /dev/dsk/c26t11d0 /dev/dsk/c23t11d0
this volume group contains more Logical volume, I need to free some luns for the creation of new volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2006 06:40 AM
01-22-2006 06:40 AM
Re: How to remove a LV & reduce the volume group
You are on the right track.
1) umount the filesystem the logical volume has on it.
2) lvremove the logical volume
3) vgreduce when a while LUN is free.
pvdisplay -v /dev/dsk/
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2006 06:47 AM
01-22-2006 06:47 AM
Re: How to remove a LV & reduce the volume group
This will enable you to see which PV('s) this LVOL actually occupies.
Next comes the umount, lvremove, and the vgreduce using the PV's found in the initial lvdisplay. Above all, be careful. You can get yourself into trouble much faster than you can get yourself out. (e.g. one wrong character in a device node name).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2006 06:51 AM
01-22-2006 06:51 AM
Re: How to remove a LV & reduce the volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2006 04:46 PM
01-22-2006 04:46 PM
Re: How to remove a LV & reduce the volume group
The steps is correct.
But before you execute 'vgreduce', you need to make sure that only '/dev/vg44/praveen_oracle_data' that use the disk 'c26t11d0' and 'c23t11d0'.
Use pvdisplay command for this purpose :
# pvdisplay -v /dev/dsk/c26t11d0
# pvdisplay -v /dev/dsk/c23t11d0
If only '/dev/vg44/praveen_oracle_data' on both disk (c26t11d0 & c23t11d0), you're safe to execute the 'vgreduce' command.
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 02:08 AM
01-23-2006 02:08 AM
Re: How to remove a LV & reduce the volume group
u r right..
unmount the filesystem
#umount /praveen/oracle/data
if it show, filesystem is busy..
#fuser -cu /praveen/oracle/data
#fuser -ku /praveen/oracle/data (to kill)
#lvremove /dev/vg44/praveen_oracle_data
#vgreduce /dev/vg44 /dev/dsk/cxtxdx
#vgdisplay -v vg_name |pg
And also remove the entry from /etc/fstab file and /etc/lvmpvg
#vi /etc/fstab
#vi /etc/lvmpvg
...
cheers
indrajit