Jump to content
 English      
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com Home
IT Resource Center Forums > HP-UX > system administration

Ideas on splitting a volume group - This thread has been closed

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: Ideas on splitting a volume group      Add to my favorites  This thread has been closed
Smucker
May 13, 2006 15:07:47 GMT   

I need ideas on how to do this. We will be migrating toa new box and I would like to split up a volume group. Our VG01 has an app lvol and a data lvol. I need to move the data lvol to the new machine but not the app lvol. Yes I can back up and restore but that would take too long.

Could I do the following:

Map the new disk to both machines and mirror the data lvol. Break the mirror then reduce the Volume group on machine A . On machine B create a volume group with the same operands (not the same major number) and lvcreate the boken mirror disk. fsck the lvol and mount.

will this work
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
Ninad Date Expert in this area This member has accumulated 2500 or more points
May 13, 2006 17:02:15 GMT  10 pts

Ok, lets try this.
1. Add the new disk/disks to the VG01 on host1 which has the data and app lvols using vgextend
2. Mirror the data lvols on the new disk/disks using lvextend and allow the lvols to be mirrored.
3. Remove the mirror copy from the original disk/disks for the data volumes using lvreduce and mentioning the pv_paths for the original disks
4. Create a map file for VG01 using vgexport -p -m mapfile
5. Stop the activity on the data lvols.
6. Remove the new disk/disks from host1
7. Remove the PVs from VG01 using vgreduce -f to forcibly remove the missing PVs
8. Delete the device special files corresponding to the disks which were removed on host1, using rmsf
9. On host 2 add the new disk/disks removed from host1, do a ioscan -fnC disk and insf -e to make disks visible and create the device files
10. Create /dev/VG01 , create group file in /dev/VG01 with unique minor number [ Not unique major number as you have mentioned ] using mknod
11. Do a vgimport giving names of the disks and use the mapfile
12. Activate the VG with vgchange -a y -q n to ignore the quorum requirement.
13. Remove the missing PVs using vgreduce -f
14. I am not sure how the vgimport will work and will the VG still have the info on other lvols - non data lvols - if yes then remove using lvreduce -f

I think this should be it.

But let the experts validate this approach.
Also its always better to have a backup taken before carrying out this procedure.

Regards,
Ninad
Mridul Shrivastava This member has accumulated 2500 or more points
May 13, 2006 21:36:37 GMT  5 pts

1. The device file name would be different at hosts so If u r not comfortable with giving device file name while importing the vg, I would suggest you to use the following command while exporting the vg:
# vgexport -p -s -m /tmp/vg01.map
then ftp this file and execute the following command:
#vgimport -p -s -m /tmp/vg01.map

2. Other thing you can try is after you extend lv and mirror it, do a lvsplit on the same. It will create one more copy of the LV and then execute vgreduce on this disk.
Vgcreate on other host then do lvcreate and map PE's to LE's as they were earlier.
Please don't create newfs on this as it will destroy data. After we r finished with PE to LE mapping u can mount the lv after executing fsck on the same.
Jakes Louw This member has accumulated 500 or more points
May 13, 2006 22:24:01 GMT  3 pts

Or you could create a unique VG and an LVOL on the new server, do the NEWFS then do one of two things:
1) NFS mount to the old server and do a copy using CPIO
2) Share the disk, and assuming you have created the VG on the new server with a unique name, vgimport and activate the VG on the old server. Then use DD to copy the old LVOL to the new LVOL, test it to see if it mounts on a dummy mount-point, then unshare and mount on the new server.
Smucker
Aug 8, 2006 06:53:06 GMT   Thread closed by author  

thanks, Sorry so long to assign points
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2010 Hewlett-Packard Development Company, L.P.