- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using LVM mirroring to Migrate to another SAN ...
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
тАО10-01-2010 12:04 PM
тАО10-01-2010 12:04 PM
I very rarely post anything anywhere, so if do anything wrong, I apologize in advance :).
I need to migrate from one mfgr SAN to a different mfgr SAN. The lvols on the VG supported by the old SAN are large, but started small, and have grown by gradual concatenation over time to the point where it's quite a hodgepodge of LUNs of various sizes supporting the lvols.
I Want to use mirroring to do the migration but I want only ONE mirror LUN from the new SAN - then after the mirror is complete, I'll lvreduce the lvol and remove all those small LUNs from the old SAN.
Is this possible, and do you have any reccomendations to go about it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2010 02:19 PM
тАО10-01-2010 02:19 PM
Re: Using LVM mirroring to Migrate to another SAN with dissimilar PVs
One common problem is that the size of the new PVs is such that they don't "fit" into the existing VGs as far as the number and size of the PEs (Physical extends). Run "vgdisplay" on the VGs and at the top, check the PE size and the max PEs allowed in the VG. That determines the maximum size of a PV that you can add to the VG.
If you have 11.23 or newer you can work with vgmodify to change the max extends in the VG.
If the PV fits in the VG, you can also look into pvmove to move the extends from the old PVs to the new PV. (you asked about this in 2007)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2010 03:41 PM
тАО10-01-2010 03:41 PM
Re: Using LVM mirroring to Migrate to another SAN with dissimilar PVs
If you have a VG with say 8 or 9 PVs of various sizes supporting say a dozen LVs and you add a new PV from the new SAN whose size is equal to all of the old SAN's PVs combined; then theoretically, you could mirror all of those LVs onto the one PV???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2010 05:25 PM
тАО10-01-2010 05:25 PM
SolutionCorrect but you can improve on your statement a little bit. The new PV size has to equal to all the old SAN's **LVs** in each VG (not the PVs, you are mirroring the LVs)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2010 04:51 AM
тАО10-02-2010 04:51 AM
Re: Using LVM mirroring to Migrate to another SAN with dissimilar PVs
vgextend -g new vgX
vi /etc/lvmpvg # put all old devices into another PV group
vgdisplay -v vgX # check for stderr and if you missed any old PVs
for i in /dev/vgX/lvol*; do lvchange -s g $i; done
for i in /dev/vgX/lvol*; do lvextend -m 1 $i new; done # takes a while
for i in /dev/vgX/lvol*; do lvreduce -m 0 $i
vgreduce /dev/vgX
for i in /dev/vgX/lvol*; do lvchange -s y $i; done
rm /etc/lvmpvg # or edit if you have other PVGs
Sadly lvreduce and vgreduce do not accept PVGs as a argument, so you need provide a list or glob of all old PVs.