- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 2 failed disks, one in Primary, one in mirror
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
06-16-2010 12:34 AM
06-16-2010 12:34 AM
Each PV is mirrored to its corresponding device.
c2t1d0--->c1t1d0
c2t2d0--->c1t2d0
c2t3d0--->c1t3d0
c2t4d0--->c1t4d0
In the primary c2t4d0 has failed, in the mirror c1t3d0 has failed. Currently the system is running fine using c1t4d0 along with c2t1d0,c2t2d0 and c2t3d0. The two failed sas disks are now in place and the HW target replacement (via sasmgr) has been done. I'm a little unsure how to proceed with the LVM work?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 12:56 AM
06-16-2010 12:56 AM
Re: 2 failed disks, one in Primary, one in mirror
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 12:58 AM
06-16-2010 12:58 AM
Re: 2 failed disks, one in Primary, one in mirror
When replacing a failed disk in a mirrored system VG, you must pay special attention to the boot information. But if this is not a system VG, the procedure is pretty simple.
See the instructions for "Replacing a Mirrored Nonboot Disk" starting at page 31 of this document:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf
This document has good instructions for other scenarios too: you might want to keep it.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 01:06 AM
06-16-2010 01:06 AM
Re: 2 failed disks, one in Primary, one in mirror
I've got that document and it doesn't deal with this scenario. 4 disks, 4 LVs and each of those disks in each of the LVs, with a disk failure on both sides, primary and mirror.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 01:09 AM
06-16-2010 01:09 AM
Re: 2 failed disks, one in Primary, one in mirror
Just follow the documented procedure.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 01:10 AM
06-16-2010 01:10 AM
Re: 2 failed disks, one in Primary, one in mirror
PVGs are used with this volume group too, I think to keep the allocation to specific PVs. This is all a little grey area for me..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 01:13 AM
06-16-2010 01:13 AM
Re: 2 failed disks, one in Primary, one in mirror
In this case you probably need to do the vgchange -a y ... and check with vgdisplay, if all disks are available. A vgsync should be enough then.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 01:36 AM
06-16-2010 01:36 AM
Re: 2 failed disks, one in Primary, one in mirror
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 01:45 AM
06-16-2010 01:45 AM
Re: 2 failed disks, one in Primary, one in mirror
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 01:55 AM
06-16-2010 01:55 AM
Re: 2 failed disks, one in Primary, one in mirror
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 02:03 AM
06-16-2010 02:03 AM
Re: 2 failed disks, one in Primary, one in mirror
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 02:07 AM
06-16-2010 02:07 AM
Re: 2 failed disks, one in Primary, one in mirror
c2t1d0--->c1t1d0 etc, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 03:36 AM
06-16-2010 03:36 AM
Re: 2 failed disks, one in Primary, one in mirror
/etc/lvmpvg file looks correct 4 disks in vmos_primary and 4 disks in vmos_mirror. I didn't edit the file, I added the missing disk (c2t4d0) using vgextend specifying the PVG to add to. One disk is showing as unavailable in vgdisplay -v vg_vmos. Its the disk that was removed via vgreduce (c2t4d0). I have done all the vgcfgrestore work and it went through ok.
No LVs are mirrored. If I mirror using the PVG name is LVM intelligent enough to know that one of the disks currently is use was from a previous mirror and not overwrite it with the new blank primary?
The other disk is a mirror that failed so no problem there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 05:34 AM
06-16-2010 05:34 AM
Re: 2 failed disks, one in Primary, one in mirror
No LVs are currently mirrored.. How do I mirror when one failed disk is from the mirror and one from the primary and I need to ensure that the PVGs are adhered to, with each disk mirroring to its counterpart?
If use -m1 for each LV do I specify the PVG name or the devices. If I specify devices what devices do I specify considering one of the mirror disks is in use already acting as the primary and will this cause the right PV to mirror to the right PV as in my original post.
If I mirror using the PVG name how will it handle the mirror currently being used as the primary?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 06:38 AM
06-16-2010 06:38 AM
Re: 2 failed disks, one in Primary, one in mirror
Please attach
# vgdisplay -v
# lvdisplay -v
# strings /etc/lvmtab
# strings /etc/lvmpvg
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010 06:45 AM
06-16-2010 06:45 AM
Re: 2 failed disks, one in Primary, one in mirror
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2010 02:10 AM
06-18-2010 02:10 AM
Re: 2 failed disks, one in Primary, one in mirror
c2t1d0--->c1t1d0
c2t2d0--->c1t2d0
c2t3d0--->c1t3d0
c2t4d0--->c1t4d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2010 04:03 AM
06-21-2010 04:03 AM
Re: 2 failed disks, one in Primary, one in mirror
PV Name /dev/dsk/c2t4d0
PV Status unavailable
So first we need to have this disk included again.
LV Name /dev/vg_vmos/lv_vm05_vg00
...
Mirror copies 0
...
Allocation PVG-strict/distributed
...
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t1d0 768 768
/dev/dsk/c2t2d0 768 768
/dev/dsk/c2t3d0 768 768
/dev/dsk/c1t4d0 768 768
All other LVOLS look the same.
So you first need to 4th disk back online.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2010 08:22 AM
06-21-2010 08:22 AM
Re: 2 failed disks, one in Primary, one in mirror
I've just tried to mirror using "lvextend -m 1 /dev/vg_vmos_lv_vm05_vg00 vmos_mirror" and have got the error:
lvextend: Not enough free physical extends available.
Logical Volume "/dev/vg_vmos/lv_vm05_vg00" could not be extended
Failure possibly caused by PVG-Strict or Distributed allocation policies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2010 08:59 AM
06-21-2010 08:59 AM
Re: 2 failed disks, one in Primary, one in mirror
/dev/dsk/c2t1d0 768 768
/dev/dsk/c2t2d0 768 768
/dev/dsk/c2t3d0 768 768
/dev/dsk/c1t4d0 768 768
So I would disable PVGstrict, mirror to the remaining disks, remove the mirror from all disks in one group, enable PVG strict and mirror again.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2010 02:39 AM
06-24-2010 02:39 AM
Re: 2 failed disks, one in Primary, one in mirror
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2010 02:43 AM
06-24-2010 02:43 AM
SolutionQuestion is, if all disks are internal, if you really need the c2... and c1... PVGs or if it is possible to mix. In this case you only need to adjust the lvmpvg file and mirror once.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 07:11 AM
06-28-2010 07:11 AM
Re: 2 failed disks, one in Primary, one in mirror
I edited the /etc/lvmpvg file to reflect the current situation
ie.
vmos_primary
c2t1d0
c2t2d0
c2t3d0
c1t4d0
vmos_mirror
c1t1d0
c1t2d0
c1t3d0
c2t4d0
I then mirrored all disks using vmos_mirror as the pv_path then reduced mirrors to 0 specifying c1t4d0 as the pv_path. I then put the /etc/lvmpvg file back to normal
vmos_primary
c2t1d0
c2t2d0
c2t3d0
c2t4d0
vmos_mirror
c1t1d0
c1t2d0
c1t3d0
c1t4d0
then remirrored using vmos_mirror as the pv_path. All fixed now..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 07:15 AM
06-28-2010 07:15 AM
Re: 2 failed disks, one in Primary, one in mirror
Next time avoid to reduce the disks from the VG, if possible.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 07:16 AM
06-28-2010 07:16 AM