- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- need to replace bad disk 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
08-28-2008 04:07 AM
08-28-2008 04:07 AM
I'm running on a rx4640 at 11.23 with all patches installed.
I've been giving a setup that I've not worked with before and it has a bad disk. This is not a system disk.
I have a scsi shelf containing the max of 14 disks. 7 of those disks are mirrored to the other 7. One of the disks is bad. LV status shows available/stale. Thirteen of the disks show up in the Physical volumes list but not the bad one. A listing of Logical extents gives me 2168 lines of
"23868 ??? 02168 stale /dev/dsk/c5t4d0 02168 current"
where the rest of the 25000 lines are currenet/current. So my question is, do I have to remove the mirror before I can replace the one disk or is the disk hot swappable? Or is there anything else I can do? I do not have any slots in which to place another disk prior to the replacement. I also get no response from the bad disk at all.
Thanks,
Bill
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 04:10 AM
08-28-2008 04:10 AM
Re: need to replace bad disk in mirror
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
It will tell you how to do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 04:16 AM
08-28-2008 04:16 AM
Re: need to replace bad disk in mirror
before inserting a new disk take the o/p of
#ioscan -fnC disk
Also look in to /etc/lvmtab
That will easy to u after replacing the disk whether its detected or not
Regards
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 04:40 AM
08-28-2008 04:40 AM
Re: need to replace bad disk in mirror
You can replace the disk & do a vgcfgrestore. But go through the document which TTR has pointed to. Its a very good document & will give you pretty good insights on how to go about it.
Regards,
Vihang.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 04:42 AM
08-28-2008 04:42 AM
Re: need to replace bad disk in mirror
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
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
08-28-2008 04:59 AM
08-28-2008 04:59 AM
Re: need to replace bad disk in mirror
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 05:06 AM
08-28-2008 05:06 AM
Re: need to replace bad disk in mirror
Can you confirm if disk (14) are mirrored at storage box level or at OS level.
IF at storage box level then procedure will differ here!!
If at OS level then we will use different steps!!
provide vgdisplay -v vg_name
#lvdisplay /dev/vg_name/lv_name |grep mirror
#lvdisplay -v /dev/vg_name/any_lv_name |tail -9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 05:21 AM
08-28-2008 05:21 AM
Re: need to replace bad disk in mirror
This shows that there is a missing disk that was part of LVM mirroring. The 3 questionmarks above are in place of the missing disk device. The c5t4d0 is the good disk remaining in the mirror setup.
The disk should be hot pluggable. You did not say what kind of enclosure it is but everything nowadays is hot pluggable at least.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 05:49 AM
08-28-2008 05:49 AM
Re: need to replace bad disk in mirror
If I understand you correctly, I can just remove the dead disk and insert a new one. At that point I'll need to determine if OLR is installed or not on the system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 05:54 AM
08-28-2008 05:54 AM
Re: need to replace bad disk in mirror
Because you are running 11.23 I assume you have.
man pvchange
if the "-a" option is listed, OLR is available.
You *must* use
pvchange -a n ...
in order to replace the disk, otherwise the vgcfgrestore will not work!
Just follow the well known manual...
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
08-28-2008 06:13 AM
08-28-2008 06:13 AM
Re: need to replace bad disk in mirror
Once you replace the faulty disk successfully, follow these steps:
#ioscan -funC disk|more
new disk should recognised here!!
#pvcreate -f -B /dev/rdsk/c_t_d0
#vgcfgrestore -n vgname /dev/rdsk/c_t_d0
# vgchange -a y /dev/vgname
# vgsync vgname
check mirror status after vgsync is completed!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 06:18 AM
08-28-2008 06:18 AM
Re: need to replace bad disk in mirror
why using "pvcreate -B ..." on a non-boot disk?
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
08-28-2008 06:38 AM
08-28-2008 06:38 AM
Re: need to replace bad disk in mirror
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 06:44 AM
08-28-2008 06:44 AM
SolutionIf it is not currently showing up in ioscan, then what you should do is:
1) Replace the disk
2) ioscan -fnC disk
to make sure you see it. If the device file names are not showing up, then do
2a) insf -eC disk
to create the device files
2b) ioscan -fnC disk
to make sure the device files are now showing up in ioscan
3) pvcreate
4) vgcfgrestore
5) vgchange -a y vg??
6) vgsync
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 06:46 AM
08-28-2008 06:46 AM
Re: need to replace bad disk in mirror
This could be different with 11.31 or SAS controllers, but you don't have this.
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
08-28-2008 07:05 AM
08-28-2008 07:05 AM
Re: need to replace bad disk in mirror
why using "pvcreate -B ..." on a non-boot disk?
pvcreate -f disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 07:11 AM
08-28-2008 07:11 AM
Re: need to replace bad disk in mirror
The "-f" is dangerous, if you use a wrong disk device file by accident.
The vgcfgrestore will do the same and more as the pvcreate - so pvcreate is not needed.
;-)
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
08-28-2008 07:31 AM
08-28-2008 07:31 AM
Re: need to replace bad disk in mirror
ioscan -fnC disk
and
insf -eC disk
and the new device is seen by the system, I only need to do
vgcfgrestore -n vg01 /dev/rdsk/c4_t4_d0
vgchange -a y /dev/vg01
vgsync vg01
That's it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 07:34 AM
08-28-2008 07:34 AM
Re: need to replace bad disk in mirror
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2008 08:53 AM
08-28-2008 08:53 AM
Re: need to replace bad disk in mirror
Bill