- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ideas on splitting a 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
Discussions
Discussions
Forums
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
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-13-2006 07:07 AM
тАО05-13-2006 07:07 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2006 09:02 AM
тАО05-13-2006 09:02 AM
Solution1. 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2006 01:36 PM
тАО05-13-2006 01:36 PM
Re: Ideas on splitting a volume group
# 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2006 02:24 PM
тАО05-13-2006 02:24 PM
Re: Ideas on splitting a volume group
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2006 10:53 PM
тАО08-07-2006 10:53 PM