- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Move logical volume to new 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
03-04-2002 06:04 PM
03-04-2002 06:04 PM
I have added a 18GB Disk to an L1000 (11.0, 9GB), and now would like to move the complete contents of volume group /dev/vg00/data to /dev/vg01/lvol9.
Which is the best way to go about it?
Thank you for your help
Jochen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 06:14 PM
03-04-2002 06:14 PM
Re: Move logical volume to new volume group
mounted?
If so I will assume /dev/vg00/data is
mounted on /data and /dev/vg01/lvol9
is mounted on /data1
Make sure you have a good backup, then
# cd /data
# cp -R * /data1
This is a very easy way. If your lv's
are not mounted then you could do a 'dd'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 06:14 PM
03-04-2002 06:14 PM
Re: Move logical volume to new volume group
I assume that /dev/vg00/data is your source LV and /dev/vg01/lvol9 is the destination LV. Then:
1) Mount both file systems
# mount /dev/vg00/data /source
# mount /dev/vg01/lvol9 /dest
If the vg00/lvol9 is a new LV, then you need to run newfs on that before mounting it.
2)Copy the files:
# cd /source
# find . -depth | cpio -pdlmuva /dest
3) Check out all files are copied. Then if needed you can erase the content of vg00/data.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2002 06:34 PM
03-04-2002 06:34 PM
SolutionIf you want to retain your mount point, you can make a temp mount point and copy all the files from the source to temp mount point. Then unmount the source and temp mount and mount the original source mount point to the new LV. Eg.
# mkdir tempmnt
# mount tempmnt /dev/vg01/lvol9
# cp -p -r /data /tempmnt
# umount /tempmnt
# umount /data
# mount /data /dev/vg01/lvol9
# ll /data <- to check the results
Hope this helps.
Kenny.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 12:27 AM
03-05-2002 12:27 AM
Re: Move logical volume to new volume group
pvmove -n src_lvol dest_dsk
pvdisplay -v dsk
to verify
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 01:33 AM
03-05-2002 01:33 AM
Re: Move logical volume to new volume group
Bill, pvmove only moves LVOL (or part of it) from one disk to another in the same VG.
As already mentionned the trick is to make a new LVOL in the other VG, mount it on a temporary mount point, cpio the data to the new location, unmount old LVOL, mount new LVOL to correct mount point
AND edit /etc/fstab !!! for future mounts.
Afterwards you can drop the old LVOL.
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 02:19 AM
03-05-2002 02:19 AM
Re: Move logical volume to new volume group
For this question, can we use the mirroring tools?
Thanks for your help
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 04:06 AM
03-05-2002 04:06 AM
Re: Move logical volume to new volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2002 04:07 AM
03-05-2002 04:07 AM
Re: Move logical volume to new volume group
regards,
Thierry.