- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LVM mirroring using different LUN size.
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
10-04-2007 03:12 AM
10-04-2007 03:12 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 03:28 AM
10-04-2007 03:28 AM
Re: LVM mirroring using different LUN size.
So, while you *could* do this, you'd probably waste 45G per LUN.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 03:28 AM
10-04-2007 03:28 AM
Re: LVM mirroring using different LUN size.
If your VG's max values are limited to the size of the current physical devices, you cannot include larger devices in this VG.
In case you are running 11.23 or 11.31 you can use vgmodify to adjust.
If not, you should consider to backup the data, create new VGs and LVOL on the new array and restore the data.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 03:28 AM
10-04-2007 03:28 AM
Re: LVM mirroring using different LUN size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 03:31 AM
10-04-2007 03:31 AM
Re: LVM mirroring using different LUN size.
That sounds complicated. An easier solution would be to copy the data from one LUN to another. Example: mount new LUN as new_mount_point, then copy from source to new_mount_point. Once finished umount the old mount point and remount the newly created file system over the old mount point.
If you have more than one FS per LUN you will have to carry out this operation for as many FS's as you have.
Hard example:
cd
tar cf -
Hope that Helps,
Mike.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 03:43 AM
10-04-2007 03:43 AM
Re: LVM mirroring using different LUN size.
The problem is, we have 12*55GB LUNs, but only have 9*100GB LUNs. i'm going to create a PVG for those old luns, and another PVG for the new ones. Is this possible to get data copied using only 9*100GB luns or we need 12*100GB luns to get it done? Thanks much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 03:48 AM
10-04-2007 03:48 AM
Re: LVM mirroring using different LUN size.
The number of LUN's is not the biggest problem, but the size!
Please post a
vgdisplay -v
for that VG and we will explain it a bit better to you.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 03:55 AM
10-04-2007 03:55 AM
Re: LVM mirroring using different LUN size.
I understand what you're talking about. Yes, it can support that large devices.
It can support 156GB PV, 20TB VG in size. My question is, what the exact method for LVM mirroring within the PVG. say i have 2*50GB in one PVG, and 100GB in another, can i successfully mirror it? Thank you.
--- Volume groups ---
VG Name /dev/vg07
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 128
Cur PV 8
Act PV 8
Max PE per PV 5000
VGDA 16
PE Size (Mbytes) 32
Total PE 14072
Alloc PE 12912
Free PE 1160
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 04:04 AM
10-04-2007 04:04 AM
Re: LVM mirroring using different LUN size.
Open LV 2
Max PV 128
Cur PV 8
Act PV 8
Max PE per PV 5000
PE Size (Mbytes) 32
This looks good.
I think there are enough resources to make this work.
But ensure the LVOLs are not striped.
Just create the PVs on the new LUNs (5 LUNs should be enough for the moment).
pvcreate ...
extend the VG and create the lvmpvg file. Once this is done, mirror the LVOLs.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 04:04 AM
10-04-2007 04:04 AM
SolutionOpen LV 2
Max PV 128
Cur PV 8
Act PV 8
Max PE per PV 5000
PE Size (Mbytes) 32
This looks good.
I think there are enough resources to make this work.
But ensure the LVOLs are not striped.
Just create the PVs on the new LUNs (5 LUNs should be enough for the moment).
pvcreate ...
extend the VG and create the lvmpvg file. Once this is done, mirror the LVOLs.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 04:10 AM
10-04-2007 04:10 AM
Re: LVM mirroring using different LUN size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 04:23 AM
10-04-2007 04:23 AM
Re: LVM mirroring using different LUN size.
to be perfectly clear on some of the things mentioned thus far:
1. Mirroring (in LVM) occurs at the logical volume level.
2. A 'pvmove' simply migrates logical extents from one physical volume to another, one extent at a time. It is in fact, internally some of the same code that MirrorDisk/UX uses.
3. The LVM geometry for a volume group is set during 'vgcreate' as Torsten mentioned. Until 11.31 (with 'vgmodify'; back-ported as a patch to 11.23 [PHCO_35524]) there was no way to change the LVM metadata that defines the size of a physical volume and its extents short of destroying and re-creating the volume group. Typically one would find that not all of the physical space of new, larger disks could be used when new physical devices were added to an existing volume group.
All said, if you have a configuation that provides suffient space and you don't care about un-usable physical extents; or if the new larger physical disk match the existing LVM geometry; then mirroring data to migrate from one group of physical disk to another is an excellent, high-availablity solution.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 04:31 AM
10-04-2007 04:31 AM
Re: LVM mirroring using different LUN size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 05:14 AM
10-04-2007 05:14 AM
Re: LVM mirroring using different LUN size.
Also make sure that the LVOLs already do not have 2 mirror copies or else you would need to lvreduce one of the mirrors on the old LUN and lvextend it onto the new one. Would help if you attach the attributes of one of the lvols that you need migrated onto the new storage i.e.
# lvdisplay -v /dev/vg??/lvol??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 05:24 AM
10-04-2007 05:24 AM