- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- moving LV,FS and data between VGs
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
09-13-2004 12:56 AM
09-13-2004 12:56 AM
moving LV,FS and data between VGs
I would like to ask a algoritm question.
Suppose I have a /dev/VG1, based on PV1,PV2,PV3,PV4. On this VG I has /dev/VG1/LV1 and /dev/VG1/LV2,
with mounted file systems: /FS1 and /FS2, respectively.
On this VG1 I have a large sizes of /FS1 and /FS2: 200GB and 200GB
I want to create a new VG2, and move these LVs , FSs and data from VG1 to VG.
How I can do this step by step?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 01:04 AM
09-13-2004 01:04 AM
Re: moving LV,FS and data between VGs
1. First back it up-everything-cold backup
and may be two copies-just in case.
2. vgexport -vs -m /tmp/vg1.map /dev/vg1
3. mkdir /dev/vg2
mknod /dev/vg2/group c 64 0x020000
0x020000 - is the minor number for vg2. Make sure that it is not duplicated anywhere.
vgimport -vs -m /tmpvg1/map /dev/vg2
The lvolv names would be same as they were in vg1.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 01:14 AM
09-13-2004 01:14 AM
Re: moving LV,FS and data between VGs
The reason to do this is my desire to increase the size of PE for 32 /in old VG1/ to 64 /in new VG2/. How to implement this, according to your migration plan. :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 01:22 AM
09-13-2004 01:22 AM
Re: moving LV,FS and data between VGs
1. If the reason you want to move them from vg1 to vg2 is to get them on new disks you could do the following (this is assuming you have MirrorDisk/UX and the LVs are not striped);
a. add the new disks into vg01 (pvcreate;vgextend)
b. use pvmove to get all the extents from the current set of disks to the new disks (you could also use lvextend to mirror to new disks and then lvreduce to remove old disks)
c. remove the old disks from vg1 (vgreduce)
d. export/import volume group as RAC mentioned
2. If you just want to change the name from vg1 to vg2 you can do exactly what RAC mentioned
3. If option 1 and 2 are not valid then you may need to do this;
a. create /dev/vg2 (pvcreate, mkdir, mknod, vgcreate)
b. create lv1 and lv2 in vg2 as desired (lvcreate)
c. make file systems on lv1 and lv2 as desired (mkfs)
d. mount /dev/vg2/lv1 and /dev/vg2/lv2 on /FS1_new and /FS2_new.
e. use cpio to copy all files and data from /FS1 -> /FS1_new and /FS2 -> /FS2_new
f. unmount /FS1 and /FS2 and mount /dev/vg2/lv1 to /FS1 and /dev/vg2/lv2 to /FS2
g. remove /FS1_new and /FS2_new
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 01:25 AM
09-13-2004 01:25 AM
Re: moving LV,FS and data between VGs
In this case I believe your only option is item #3 from my last post.
Obviously you can use other methods to restore data (NetBackup, fbackup, etc.), but you will need to create a new volume group from scratch.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 01:40 AM
09-13-2004 01:40 AM
Re: moving LV,FS and data between VGs
I don't usually attach forum's threads. But this is the latest one I posted in another thread. You can use it except that you don't have to drop the alternate links etc., You can use fbackup to copy the data from old VG to new VG.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=693893
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 01:48 AM
09-13-2004 01:48 AM
Re: moving LV,FS and data between VGs
Without using SAM, you would have to provide many details about the
Bill Hassell, sysadmin