Operating System - HP-UX
1830895 Members
2744 Online
110017 Solutions
New Discussion

Failed disk, split the mirrors?

 
SOLVED
Go to solution
dictum9
Super Advisor

Failed disk, split the mirrors?

The box is 5670 running 11.23.

I have a failed disk, internally.
I want to split the mirrors, I assume it won't affect uptime?

Second question, are the internal disks hot-swappable in 5670?


vgdisplay -v /dev/vg00

(.....)

--- Physical volumes ---
PV Name /dev/dsk/c0t0d0s2
PV Status available
Total PE 4228
Free PE 161
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c0t2d0s2
PV Status unavailable
Total PE 4228
Free PE 697
Autoswitch On
Proactive Polling On
10 REPLIES 10
dictum9
Super Advisor

Re: Failed disk, split the mirrors?

vgdisplay -v vg00

--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 13
Open LV 13
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4238
VGDA 4
PE Size (Mbytes) 8
Total PE 8456
Alloc PE 7598
Free PE 858
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/stale
LV Size (Mbytes) 304
Current LE 38
Allocated PE 76
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/stale
LV Size (Mbytes) 400
Current LE 50
Allocated PE 100
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/stale
LV Size (Mbytes) 600
Current LE 75
Allocated PE 150
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/stale
LV Size (Mbytes) 24
Current LE 3
Allocated PE 6
Used PV 2
dictum9
Super Advisor

Re: Failed disk, split the mirrors?

#: ioscan -fnC disk|head -40
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/2/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c0t2d0 /dev/dsk/c0t2d0s2 /dev/rdsk/c0t2d0 /dev/rdsk/c0t2d0s2
/dev/dsk/c0t2d0s1 /dev/dsk/c0t2d0s3 /dev/rdsk/c0t2d0s1 /dev/rdsk/c0t2d0s3
disk 2 0/0/2/1.3.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c1t3d0 /dev/insf13392 /dev/rdsk/c1t3d0
dictum9
Super Advisor

Re: Failed disk, split the mirrors?

#: ioscan -fnC disk|head -40
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/2/0.0.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC
/dev/dsk/c0t2d0 /dev/dsk/c0t2d0s2 /dev/rdsk/c0t2d0 /dev/rdsk/c0t2d0s2
/dev/dsk/c0t2d0s1 /dev/dsk/c0t2d0s3 /dev/rdsk/c0t2d0s1 /dev/rdsk/c0t2d0s3
disk 2 0/0/2/1.3.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c1t3d0 /dev/insf13392 /dev/rdsk/c1t3d0
Aneesh Mohan
Honored Contributor
Solution

Re: Failed disk, split the mirrors?

1) I have a failed disk, internally.
I want to split the mirrors, I assume it won't affect uptime?

See the below doc.
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf


2)
The Internal HDD`s are hot plugable

rx 5670 specs
http://h18004.www1.hp.com/products/quickspecs/11719_div/11719_div.HTML


Thanks,
Aneesh
dictum9
Super Advisor

Re: Failed disk, split the mirrors?



Thanks for the link.

sujit kumar singh
Honored Contributor

Re: Failed disk, split the mirrors?

Hi


Try doing

for i in /dev/vg00/lvol*
>do
>lvreduce -m 0 $i /dev/dsk/c0t2d0s2
>done

and follow that with

#vgreduce -f /dev/vg00


If you do like this rememeber that you will need to put in the new disk when that arrives and create the idisk partitions on that and do a remirror of all the LVs all over again.

but that is a cleaner approach.

the deletion od the disks as well as putting in the new disk and remirroring wont require any downtime.
regards
sujit
Emil Velez
Honored Contributor

Re: Failed disk, split the mirrors?


I would follow the cookbook in the when good disks go bad and replace the failed disk and rebuild the mirroring instead of breaking the mirroring.
dictum9
Super Advisor

Re: Failed disk, split the mirrors?

I just realized the disks are not perfectly mirrored, not 1:1 correlation in lvols.

mirror disk has some swap partitions that primary does not not have. Impossible to replace without downtime.

They are both 36GB, I will do some work and replace them with 72GB.
Torsten.
Acclaimed Contributor

Re: Failed disk, split the mirrors?

"mirror disk has some swap partitions that primary does not not have. Impossible to replace without downtime. "

Probably, but the disk is already "unavailable" - you need to check this and follow the WP document.

A 72GB disk will not fit into your current configuration:

Max PE per PV 4238
PE Size (Mbytes) 8

Consider to use ignite to restore the vg with new maximum values.

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!   
Suraj K Sankari
Honored Contributor

Re: Failed disk, split the mirrors?

Hi,

For disk related issue (change bad disk ) always refer this doc.

Suraj