- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LVM: Remove disk from volume group
Operating System - HP-UX
1753424
Members
4694
Online
108793
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО06-08-2006 04:55 PM
тАО06-08-2006 04:55 PM
LVM: Remove disk from volume group
The system has a volume group (17G) that is combined from two disks. The disk has 2G and 15G respectively. These two disks are also have data and are using in the volume group. I want to remove the 2G disk from the volume group by executing the vgreduce command. Does it has any data lost after I remove the 2G disk from volume group? Does the vgreduce command able to preserve all data from the 2G disk to 15G disk?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 05:23 PM
тАО06-08-2006 05:23 PM
Re: LVM: Remove disk from volume group
No vgreduce will not preserve any data. What you have to do is first move the data from the 2GB disk to 15GB disk if it has room for it and then do vgreduce.
1. do a pvdisplay of both the disks and see it 15GB disk has free extents to accomodate the used extents of 2GB disk
2. If it has then run pvmove for each LV that is on 2GB disk and move it to 15GB disk
3. Then do vgreduce and remove the 2GB disk
1. do a pvdisplay of both the disks and see it 15GB disk has free extents to accomodate the used extents of 2GB disk
2. If it has then run pvmove for each LV that is on 2GB disk and move it to 15GB disk
3. Then do vgreduce and remove the 2GB disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 06:12 PM
тАО06-08-2006 06:12 PM
Re: LVM: Remove disk from volume group
Hello Tang,
Actually if there are some logical volume configured on the 2GB disk, the vgreduce will not work, it will complain about the lvols being configured.
# pvdisplay -v /dev/dsk/ | more
will tell which all lvols have their data on this disk, based on this, you can decide how to go about.
If there is data on this disk, then it has to be moved to another location, though there are commands like pvmove, i wouldnt advice on it.. try to create teh new lv on the 15GB and copy the data..something simpler though it consumes time.
Actually if there are some logical volume configured on the 2GB disk, the vgreduce will not work, it will complain about the lvols being configured.
# pvdisplay -v /dev/dsk/
will tell which all lvols have their data on this disk, based on this, you can decide how to go about.
If there is data on this disk, then it has to be moved to another location, though there are commands like pvmove, i wouldnt advice on it.. try to create teh new lv on the 15GB and copy the data..something simpler though it consumes time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 09:06 PM
тАО06-08-2006 09:06 PM
Re: LVM: Remove disk from volume group
The pvmove method is not work, as I checked the free extents is not enough in the 15G disk. I decided to use lvreduce to resize the volume group, as my main purpose is to use these free space in other volume group. Thanks for all of you.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP