- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to fix primary and secondary mirrrors extents ...
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-15-2004 08:06 AM
10-15-2004 08:06 AM
I have a logical volume (/dev/vg02/Group2) that appears to be mirroring across the same volumes. I am using strict allocation policy so none of the same extents are written to the same disks, but the disks seem to be switching back and forth for the primary and mirror extents.
In summary here is the logical extent info from lvdisplay, without all the actual extent information here is the layout.
Would this cause I/O performance problems?
I would like to get this fixed so that all PV1 is on one controller and all PV2 is on the other controller. How would that be done? Would I lvreduce -m 0 /dev/vg02/Group2 /dev/dsk/c4t4d0 /dev/dsk/c1t1d0 and then lvextend -m 1 /dev/vg02/Group2 /dev/dsk/c4t4d0 /dev/dsk/c1t1d0 ??
Does anyone know how this happens so it doesn't do it again?
PV1 PV2
c4t13d0 c1t12d0
c4t1d0 c1t1d0
c4t1d0 c4t4d0
c1t1d0 c4t4d0
c4t4d0 c1t4d0
I know it's alot of questions, but any information would be helpful.
Thanks,
Randy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 08:14 AM
10-15-2004 08:14 AM
Re: How to fix primary and secondary mirrrors extents residing on same disks?
I recommend you use lvsplit on all the logical volumes, delete the copies and re-mirror.
lvextend -m 1 /vg00/lvol1 /dev/dsk/c1t1d0
If you specifiy the disk to mirror to and you plan the layout in advance, you won't end up with the problem you are experiencing now.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 08:15 AM
10-15-2004 08:15 AM
Re: How to fix primary and secondary mirrrors extents residing on same disks?
This is the normal practice: if your logical volume is small enough to be included in a single disk, create your LV their first and when you create mirror, specify the mirror disk name. Now, if your LV is large and spanned across multiple disks, create PVG (physical volume groups. man lvmpvg(4)). The first PVG (in /etc/lvmpvg) can include first set of primary disks, and then PVG #2 can include mirror set of disks. This way, the primary will be always in the first PVG. When you mirror, specify the PVG name instead of disk names.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 08:23 AM
10-15-2004 08:23 AM
Re: How to fix primary and secondary mirrrors extents residing on same disks?
By default strict policy is set. What that means is mirror extents can not be on same as of original extents.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 08:26 AM
10-15-2004 08:26 AM
Re: How to fix primary and secondary mirrrors extents residing on same disks?
Here is the lvdisplay. It looks like strict is being used.
[ROOT] /etc/lvmconf # lvdisplay /dev/vg02/Group2
--- Logical volumes ---
LV Name /dev/vg02/Group2
VG Name /dev/vg02
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 15000
Current LE 3750
Allocated PE 7500
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
Randy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 08:27 AM
10-15-2004 08:27 AM
SolutionStrict/PVG strict allocation is not going to help you improve IO performance (unless you use distributed allocation with PVG-strict). They are primarily used to avoid Single Point Of Failures.
PEs are allocated this way because, LVs seem to have the strict allocation policy. With strict allocation policy, LVM will only make sure it is not mirroring to the same PV.
Here is what you can do
1) Backup the LV
2) Remove the LV
3) Create PVG-group in the /etc/lvmpvg file
4) Create the LV with PVG-strict allocation policy set (lvcreate -s g option)
5) lvextend -m 1 and create mirror
6) Create filesystem
7) Restore from the backup
- Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 08:31 AM
10-15-2004 08:31 AM
Re: How to fix primary and secondary mirrrors extents residing on same disks?
To take care of it, do a lvsync on lvol, break the mirror. Make sure that enough extends are available to mirror it on another PV. then do lvextend -m 1 /dev/vg01/group2 /dev/dsk/cxtxdx
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 08:33 AM
10-15-2004 08:33 AM
Re: How to fix primary and secondary mirrrors extents residing on same disks?
If this is a SG OPS env, you could take a look at this link from itrc which suggests a probable cause for your problem.
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072806658
The itrc doc id is CMTKBRC00008618.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2004 09:03 AM
10-15-2004 09:03 AM
Re: How to fix primary and secondary mirrrors extents residing on same disks?
If you have the following PVG configuration
PVG1
/dev/dsk/c4t1d0
/dev/dsk/c4t13d0
PVG2
/dev/dsk/c1t12d0
/dev/dsk/c1t1d0
when you use lvcreate, you dont have to control over which PV the LV extends are allocated to. LVM will first try to allocate the extends from /dev/dsk/c4t1d0. Once it is done with c4t1d0, it will take the extends from c4t13d0.
If this is not desirable to you,
1) lvcreate a LV without mentioning any size
2) lvextend /dev/vg02/lvol2 /dev/dsk/c4t13d0
This way, you can have control over which PV is used by the LV even when more than one PV is available in the PVG or VG itself.