- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Moving logical volumes from one vg to another
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
02-13-2004 01:22 AM
02-13-2004 01:22 AM
I'm looking to release disks from one of the systems I'm looking after. The problem is the logical volumes are too large. I can allocate extra disk equal in size to the volume group.
I was thinking that I should create another volume group and somehow copy the data. Any suggestions?
Thanks
jeff
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 01:26 AM
02-13-2004 01:26 AM
Re: Moving logical volumes from one vg to another
With logical volumes, there is no convenient, direct method from moving them. The best you can do is to create a new logical volume in another VG and then copy the contents of the original into it with cp or a backup/restore operation.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 01:28 AM
02-13-2004 01:28 AM
Re: Moving logical volumes from one vg to another
What you can do it create a new LV(in another VG) and mount it and copy the contents of old LV to new LV.
Or you can back up your data, delete LV, create new one and restore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 01:29 AM
02-13-2004 01:29 AM
Re: Moving logical volumes from one vg to another
dd if=
Then try mounting the new lvol on the mountpoint of the old lvol and it should work...
If the lvol is not filled up, copying using tar, pax, ftio, etc might be faster, depending on the number of files, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 01:31 AM
02-13-2004 01:31 AM
Re: Moving logical volumes from one vg to another
check this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=384747
Anyway the crucial command is
# cd /fv24
# find . -xdev -print | cpio -pdmvux /fv24.new
fv24 is old filesystem and fv24.new is the new one.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 01:33 AM
02-13-2004 01:33 AM
Re: Moving logical volumes from one vg to another
-Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 01:36 AM
02-13-2004 01:36 AM
Re: Moving logical volumes from one vg to another
If I create the second vg with the same logical volume names what can I do about the filesystems? Obviously I have to preserve the name of the old file systems. Is there a way to copy and then rename?
Part of this is that I have to resize the logical volumes as well.
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 01:47 AM
02-13-2004 01:47 AM
SolutionYou need to make sure that the newly created LVs are capable of carrying the data (enoug space available). These might be the steps:
1) Create new VGs and LVs
2) Mount it on temp. directories
3) Copy data
4) Unmount both new and old file systems
5) Update /etc/fstab to mount new LVs on old file system names
6) mount -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 01:47 AM
02-13-2004 01:47 AM
Re: Moving logical volumes from one vg to another
The file system mount points are easy - just change /etc/fstab and reboot (or umount each and then mount -a).
Change
/dev/vg01/lvol1 /myfs vxfs delaylog 0 2
-to-
/dev/vg02/lvol1 /myfs vxfs delaylog 0 2
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 01:56 AM
02-13-2004 01:56 AM
Re: Moving logical volumes from one vg to another
What do you mean they are too large. A volume group may be full, and then you can extend them with vgextend. You can have 100 GB VGs with no real issue (except the backup. If you use Veritas and then one trail is 100 GB, it is annoying that the VG takes so long to back up...
What is your issue, backup, full, need to redistribute data better. Size seems to me to be a questionable issue.
Technically you would back up the data,
vgreduce the pv in question, make a new VG up to the limit of 256. Make sure your maxVGs in the kernel parameters will not be exceeded. After mounting the drive, recover your data.
That being said, is there a software problem that fills up the drive? where it is currently mounted?
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2004 01:57 AM
02-13-2004 01:57 AM
Re: Moving logical volumes from one vg to another
Tim