- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: move mirrored logical volume to other disk
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
08-20-2007 08:34 AM
08-20-2007 08:34 AM
I have a logical volume that has its data scattered on 3 different disks. It is also mirrored. I would like to move all data into 1 physical disk and mirror this consolidated logical volume onto another disk on different bus. Does anyone have any suggestion?
I can't afford any downtime right now. Is there a way to do this without interrupt production?
Please...
Thank you!
Tuan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 08:39 AM
08-20-2007 08:39 AM
Re: move mirrored logical volume to other disk
See the manpages for 'pvmove'.
One caveat. When using 'pvmove' make sure that you do not interrupt the process. If you do, you may corrupt the logical volume.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 08:43 AM
08-20-2007 08:43 AM
Re: move mirrored logical volume to other disk
Thank you for your quick response. Do I need to un-mirror the lv first?
Thanks,
Tuan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 08:46 AM
08-20-2007 08:46 AM
Solutionpvmove LVOL_name source_PhyVol destination_PhyVol
eg.
pvmove /dev/vg00/lvol7 /dev/dsk/c1t2d0 /dev/dsk/c7t5d0
for moving vg00/lvol7 from the physical disk located at /dev/dsk/c1t2d0 to the new physical disk /dev/dsk/c7t5d0.
you can repeat this 3 times with the same destination disk for your already data containing source disks.
Process should not be interrupted while moving data to prevent data corruption. So, proceed with caution at your own risk.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 08:52 AM
08-20-2007 08:52 AM
Re: move mirrored logical volume to other disk
since you will bemoving data from a physical volume, it is important that you move the data from whichever physical volume you want to be out of. Since main and mirror copies are on different physical volumes (assuming your vg policy is strict) there should not be a need to un-mirror your volume but if your mirrors are spread across the same physical volumes (which is a bad practice to start with) you are better off with unmirroring first, so that you do not move two copies of the same data.
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 09:03 AM
08-20-2007 09:03 AM
Re: move mirrored logical volume to other disk
Thank you for your response. Here is the output from vginfo.
# ./vginfo -L /dev/vgfc10/lvol16
/dev/dsk/c7t0d0:2000:2000
/dev/dsk/c7t2d0:88:88
/dev/dsk/c11t5d0:1912:1912
/dev/dsk/c7t6d0:4000:4000
/dev/dsk/c11t7d0:4000:4000
# lvdisplay /dev/vgfc10/lvol16
--- Logical volumes ---
LV Name /dev/vgfc10/lvol16
VG Name /dev/vgfc10
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 6000
Current LE 750
Allocated PE 1500
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
Yes, it is strict policy. All data is on separate disks. If I do pvmove without un-mirror first, how do I know which disks contain primary data and which disks contain mirrored data?
Thank you very much.
Tuan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 09:10 AM
08-20-2007 09:10 AM
Re: move mirrored logical volume to other disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 09:11 AM
08-20-2007 09:11 AM
Re: move mirrored logical volume to other disk
You don't need to unmirror. You can specify the source and destination volumes for the 'pvmove' action. See the 'pvmove' manpages. Mirrored data is data.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 09:18 AM
08-20-2007 09:18 AM
Re: move mirrored logical volume to other disk
Thank you very much for all your responses. I really appreciate that. I guess I will have to back it up first and apply your suggestions. Again, thank you very much.
Tuan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 09:20 AM
08-20-2007 09:20 AM
Re: move mirrored logical volume to other disk
Example:
lvreduce -m 0 /dev/vg00/lvol14
Then move it (use lvdisplay -v to see from disk - pvmove -n VG SOURCEDISK DESTDISK)
pvmove -n /dev/vg00/lvol14 /dev/dsk/c28t6d0 /dev/dsk/c0t6d0
Rgds...Geoff