- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- two mirror copies in the same command
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
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
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
тАО09-18-2009 11:45 AM
тАО09-18-2009 11:45 AM
I'm adding two big LUN to my existing vg, to make some mirror copies. The actual VG has one big LUN at the moment.
Is there is a way to build the two mirros in the same command , by example, starting from this single LUN vg, and running the lvextend -m 2 on the lvol ?
My goal is if possible to avoid the lvextend -m 1 and then lvextend -m 2 because of I don't have a big time to recreate the mirror copies ..
Thanks in advance
Pat
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 11:50 AM
тАО09-18-2009 11:50 AM
Re: two mirror copies in the same command
> Is there is a way to build the two mirros in the same command , by example, starting from this single LUN vg, and running the lvextend -m 2 on the lvol ?
Yes, do, either:
# lvextend -m 2 /dev/vgNN/lvolX
...or specifically specify the volumes like:
# lvextend -m 2 /dev/vgNN/lvolX /dev/dsk/cXtYdZ /dev/dsk/cXXtYYdZZ
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 11:55 AM
тАО09-18-2009 11:55 AM
Re: two mirror copies in the same command
I have one existing lvol, i want to mirror 2 times, first copie on the first new LUN and second copie on the second new LUN?
Is the command
lvextend -m 2 /dev/vgxx/lvol /dev/dsk/c0t0d3 /dev/dsk/c0t0d4 will insure me that all copies are on different disks ? or do I have to play with LV or VG attribute ?
Re- thanks in advance
pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 12:08 PM
тАО09-18-2009 12:08 PM
SolutionBy default, when you did your 'lvcreate' the allocation policy was set to 'strict'. This means that mirrored copies cannot share a common physical volume. You can verify the policy with a simple 'lvdisplay'. Hence either command I showed should work equally well.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2009 12:10 PM
тАО09-18-2009 12:10 PM
Re: two mirror copies in the same command
I have now to check that one lvextend -m 2 is faster than two sequential lvextend -m 1 ...
many thankks jfr
pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2009 03:26 AM
тАО09-19-2009 03:26 AM
Re: two mirror copies in the same command
If I do a mirror to a new LUN with a specific path, if I change the path later is the mirror still OK, or is the mirror broken ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2009 06:12 AM
тАО09-19-2009 06:12 AM
Re: two mirror copies in the same command
> If I do a mirror to a new LUN with a specific path, if I change the path later is the mirror still OK, or is the mirror broken ?
First, you can't have more than 2-copies (3-sets) of a logical volumes extents.
If you want to eliminate mirrored extents from one physical volume and establish them on another physical volume, you 'lvreduce' the mirror on the physical volume you no longer want used, deallocating (freeing) its physical extents; and then you 'lvextend' new mirrored extents on the new physical volume.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2009 08:54 AM
тАО09-19-2009 08:54 AM
Re: two mirror copies in the same command
One more comment. If you are really paranoid, and have 1-mirror (2-copies of a logical volume) and you want to move a mirror from an old physical volume to a new one, you can _add_ another mirror to the _new_ physical volume ('lvextend -m 2') and then 'lvreduce' the extents on the physical volume you no longer want. In this scenario and fashion, you always maintain two copies of your data at all times.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2009 10:49 AM
тАО09-19-2009 10:49 AM
Re: two mirror copies in the same command
thanks for all the comments, I appreciate them.
I"'m not paranoid, maybe my customer ..
My last question was may be not clear ..
my idea, is, I have a lvol on an old LUN
I made a mirror to a new LUN, but because of not today complete SAN architecture, i will move later this new LUN owning the mirror to a new FC card, so a new LUN PATH..
If I extend the VG with this new path , is my this new path will be seen owning correctly the mirror, or do I have to reduce mirror to 0, reduce the VG with the old path and extend the VG with new path and redo the mirror
thanks again ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2009 08:47 PM
тАО11-15-2009 08:47 PM
Re: two mirror copies in the same command
If you can arrange a downtime for that VG ,I would go with a Vgexport import process as it is less time consuming.
Steps.
#Note down vg minror and major number
ll /dev/
create map files for the vg( vgexport in preview mode)
#vgexport -p -s -v -m /tmp/
unmount all fs using that volume group
deactivate vg
#vgchange -a n
export vg from system
#vgexport /dev/
present the lun through new Fc and do ioscan,insf to create device file for new path
create vg directory and group special file with mknod command
import vg with map file (-s option allows lvm to create vg by searching PV ID in each disk)
#vgimport -s -v -m /tmp/
If it is 11iv3 with pdsf device attched to Vg ,you dont have to worry about all these..as lvm maps disk with LUN wwn number.
>>If I extend the VG with this new path , is my this new path will be seen owning correctly the mirror, or do I have to reduce mirror to 0, reduce the VG with the old path and extend the VG with new path and redo the mirror
If you are moving only one LUN ,then you can reduce mirror to one from two and extend it later to 2 with new path ..
#lvreduce -m 1
then reduce it from vg if there no lv created on that disk
vgreduce vgname>
after san activity
add the disk to vg
then extend mirror
#lvextend -m 2
Regards !
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-16-2009 05:22 AM
тАО11-16-2009 05:22 AM
Re: two mirror copies in the same command
Bill Hassell, sysadmin