- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirror larger size PV to smaller size PV's
Operating System - HP-UX
1748249
Members
3269
Online
108760
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО02-11-2010 11:24 PM
тАО02-11-2010 11:24 PM
Mirror larger size PV to smaller size PV's
Hi,
Can I LVM mirror larger size PV to the smaller size PV? Currently we have have PV size of 202.75GB and now we want to migrate to the 102GB lun size. Can I just use
lvextend -m 1 /dev/vg_test /dev/202gbpv /dev/102gbpv 102gbpv
vg details:
VG Name /dev/vg_test
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 11
Open LV 11
Max PV 255
Cur PV 93
Act PV 93
Max PE per PV 1016
VGDA 186
PE Size (Mbytes) 256
Total PE 75423
Alloc PE 75423
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg_test/appl
LV Status available/syncd
LV Size (Mbytes) 1894400
Current LE 7400
Allocated PE 7400
Used PV 15
--- Physical volumes ---
PV Name /dev/dsk/c47t2d3
PV Name /dev/dsk/c56t2d3 Alternate Link
PV Status available
Total PE 811
Free PE 0
Autoswitch On
Proactive Polling On
PV Name /dev/dsk/c53t0d2
PV Name /dev/dsk/c44t0d2 Alternate Link
PV Status available
Total PE 811
Free PE 0
Autoswitch On
Proactive Polling On
Thanks,
Srini
Can I LVM mirror larger size PV to the smaller size PV? Currently we have have PV size of 202.75GB and now we want to migrate to the 102GB lun size. Can I just use
lvextend -m 1 /dev/vg_test /dev/202gbpv /dev/102gbpv 102gbpv
vg details:
VG Name /dev/vg_test
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 11
Open LV 11
Max PV 255
Cur PV 93
Act PV 93
Max PE per PV 1016
VGDA 186
PE Size (Mbytes) 256
Total PE 75423
Alloc PE 75423
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg_test/appl
LV Status available/syncd
LV Size (Mbytes) 1894400
Current LE 7400
Allocated PE 7400
Used PV 15
--- Physical volumes ---
PV Name /dev/dsk/c47t2d3
PV Name /dev/dsk/c56t2d3 Alternate Link
PV Status available
Total PE 811
Free PE 0
Autoswitch On
Proactive Polling On
PV Name /dev/dsk/c53t0d2
PV Name /dev/dsk/c44t0d2 Alternate Link
PV Status available
Total PE 811
Free PE 0
Autoswitch On
Proactive Polling On
Thanks,
Srini
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-11-2010 11:45 PM
тАО02-11-2010 11:45 PM
Re: Mirror larger size PV to smaller size PV's
Yes you can, just keep in mind that they are not in PVG and you specify the correct command where u want to mirror it.
One more thing I hope data is not fragmented so better you defragment it before mirroring.
After mirroring you can put it in PVG.
And Yes you can always go and restore from backup and remove old LV.
BR,
Kapil+
One more thing I hope data is not fragmented so better you defragment it before mirroring.
After mirroring you can put it in PVG.
And Yes you can always go and restore from backup and remove old LV.
BR,
Kapil+
I am in this small bowl, I wane see the real world......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2010 12:08 AM
тАО02-12-2010 12:08 AM
Re: Mirror larger size PV to smaller size PV's
Yes and no.
First, you hazve to vgextend your current volumegroup with sufficient new LUN's (I presume 4 102GB LUN's).
Preferabbly, use the -g option to use physical volumegroups. Put your existing LUN's in, for instance "group1", while you put your new LUN's in "group2"
That makes mirroring from the current to the new disks a lot easier :
lvextend -m 1 /dev/vg_test/appl group2
Remember : You mirror Logical Volumes within a VG, not Volume Groups.
First, you hazve to vgextend your current volumegroup with sufficient new LUN's (I presume 4 102GB LUN's).
Preferabbly, use the -g option to use physical volumegroups. Put your existing LUN's in, for instance "group1", while you put your new LUN's in "group2"
That makes mirroring from the current to the new disks a lot easier :
lvextend -m 1 /dev/vg_test/appl group2
Remember : You mirror Logical Volumes within a VG, not Volume Groups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2010 02:28 AM
тАО02-12-2010 02:28 AM
Re: Mirror larger size PV to smaller size PV's
>>Max PV 255
Cur PV 93
Act PV 93
does all the pvs are of 202GB size ?
what is the size of LV you want mirror?
If the size is big and you need to mirror many LVs , I would go with Wim suggestion.
Cur PV 93
Act PV 93
does all the pvs are of 202GB size ?
what is the size of LV you want mirror?
If the size is big and you need to mirror many LVs , I would go with Wim suggestion.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP