HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Move data to a new LUN
Operating System - Linux
1829492
Members
1524
Online
109991
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
Forums
Discussions
Discussions
Discussions
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
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
03-31-2010 08:49 AM
03-31-2010 08:49 AM
Move data to a new LUN
Hi,
We are moving off of one SAN onto another. Now in the HP-UX world, I would extend the VG with the new LUN and lvextend -m 1 each LV to the new LUN, then break the mirror lvreduce -m 0 and get rid of the old LUN, then remove the old LUN from the VG.
In RHEL we are trying to do this and I did an lvconvert -m1 vg01/lvol1 and it was all successfully mirrored. How do I now, break the mirror? I know I can lsconvert -m0 but how do I tell it to unload the old lun and keep the data on the new one? Or is this even possible? I am wondering if this is not possible with Linux and you can either mirror or not mirror but can't use it to move data.
Thanks,
Sally
We are moving off of one SAN onto another. Now in the HP-UX world, I would extend the VG with the new LUN and lvextend -m 1 each LV to the new LUN, then break the mirror lvreduce -m 0 and get rid of the old LUN, then remove the old LUN from the VG.
In RHEL we are trying to do this and I did an lvconvert -m1 vg01/lvol1 and it was all successfully mirrored. How do I now, break the mirror? I know I can lsconvert -m0 but how do I tell it to unload the old lun and keep the data on the new one? Or is this even possible? I am wondering if this is not possible with Linux and you can either mirror or not mirror but can't use it to move data.
Thanks,
Sally
whatever
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2010 09:28 AM
03-31-2010 09:28 AM
Re: Move data to a new LUN
It should work sort of like in HP-UX, i.e.
lvconvert -m0 /dev/vg01/lvol1
would unmirror the LV, making the free and keeping the data on the new one.
An alternative would be to just brutally un-present the old LUN at the SAN level, or tell the SCSI subsystem to delete the old device:
echo 1 > /sys/block//device/delete
When one-half of the LVM-mirrored LV becomes inaccessible or fails in any other way, LVM should automatically convert the remaining half of the mirror back to a regular non-mirrored LV.
At the time of our last SAN migration, we used LVM mirror to migrate some RHEL 4 systems. Back then, the LVM mirror did the job, but somehow left me the impression of "fragility" - not quite ready for production use. But that was more than two years ago - perhaps it has improved, at least in RHEL 5.
MK
lvconvert -m0 /dev/vg01/lvol1
would unmirror the LV, making the
An alternative would be to just brutally un-present the old LUN at the SAN level, or tell the SCSI subsystem to delete the old device:
echo 1 > /sys/block/
When one-half of the LVM-mirrored LV becomes inaccessible or fails in any other way, LVM should automatically convert the remaining half of the mirror back to a regular non-mirrored LV.
At the time of our last SAN migration, we used LVM mirror to migrate some RHEL 4 systems. Back then, the LVM mirror did the job, but somehow left me the impression of "fragility" - not quite ready for production use. But that was more than two years ago - perhaps it has improved, at least in RHEL 5.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2010 09:52 AM
03-31-2010 09:52 AM
Re: Move data to a new LUN
pvmove might also be a simpler option..
it creates the mirror and then removes it for you...
man pvmove
it creates the mirror and then removes it for you...
man pvmove
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP