- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- moving disk from one vg to another 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
05-06-2004 06:12 AM
05-06-2004 06:12 AM
moving disk from one vg to another vg
I am pretty sure that to move a disk to vg02 we will have to rebuilt the vg where the disk came from. Is there another way to do this? I don't find a whole lot of info on this in the forum, and will probably have to resort to asking for more space.
Any input appreciated. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:20 AM
05-06-2004 06:20 AM
Re: moving disk from one vg to another vg
You should be able to do a pvmove, which will move all of the allocated physical extents from one disk to another. That is as long as you have enough free physical extents on the destination disk to accomodate the extents you are moving. Check the man pages for pvmove. With pvmove there would be no need to recreate the vg. Use vgreduce to reduce the physical volume from the volume group after the extents have been moved. Check the man pages for vgreduce also.
VERY IMPORTANT....make sure you have a very very good backup of everything before doing this.
Hope this helps!
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:20 AM
05-06-2004 06:20 AM
Re: moving disk from one vg to another vg
1) Utilize pvmove to move the extents on the disk you wan to reuse to another disk in VG01. 'man pvmove' for more details.
Once the pvmove is done, you can vgreduce the disk out of vg01, then vgextend it into vg02. You can then do your lvextned, fsadm/extendfs to extend the filesystem.
2) Back up the VG, vgexport it, recreate it without the extra disk, recreate your LVOLs, restore the data. Then vgextend the reused disk into VG02, lvextend, fsadm/extendfs, etc.
I vote for option 1. I have done that several times without any ill effects.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:22 AM
05-06-2004 06:22 AM
Re: moving disk from one vg to another vg
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 06:53 AM
05-06-2004 06:53 AM
Re: moving disk from one vg to another vg
Before you start moving all extends to an onther disk, make sure that the disk you try to clean is not bigger that MAX PE * PE SIZE in vg02. Use pvmove to empty the disk. vgreduce to delete the disk from vg01 and vgextend to add the disk to vg02.
Regards,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:17 AM
05-06-2004 07:17 AM
Re: moving disk from one vg to another vg
Do Backup for sure.
1. use vgreduce on vg01
2.pvcreate on free disk from vg01
3.vgextend on vg02
4.lvextend on file system
Another way for temporary purpose.
make a link in the file system of vg02 for the file system in vg01