Home > HP-UX > HP-UX When Good Disks Go Bad (Procedure for disk replacement)

HP-UX When Good Disks Go Bad (Procedure for disk replacement)

System is HP-UX 11.23 RP3440

Methods are based off document:
http://www.filibeto.org/unix/hp-ux/lib/os/volume-manager/when-good-disks-go-bad-c01911837.pdf

#vgdisplay -v vg00
— Volume groups —
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 3
Act PV 3
Max PE per PV 4384
VGDA 6
PE Size (Mbytes) 32
Total PE 13122
Alloc PE 5001
Free PE 8121
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) 1792
Current LE 56
Allocated PE 168
Used PV 3

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 13024
Current LE 407
Allocated PE 1221
Used PV 3

LV Name /dev/vg00/lvol3
LV Status available/stale
LV Size (Mbytes) 3008
Current LE 94
Allocated PE 282
Used PV 3

LV Name /dev/vg00/lvol4
LV Status available/stale
LV Size (Mbytes) 512
Current LE 16
Allocated PE 48
Used PV 3

LV Name /dev/vg00/lvol5
LV Status available/stale
LV Size (Mbytes) 28000
Current LE 875
Allocated PE 2625
Used PV 3

LV Name /dev/vg00/lvol6
LV Status available/stale
LV Size (Mbytes) 128
Current LE 4
Allocated PE 12
Used PV 3

LV Name /dev/vg00/lvol7
LV Status available/stale
LV Size (Mbytes) 4640
Current LE 145
Allocated PE 435
Used PV 3

LV Name /dev/vg00/lvol8
LV Status available/stale
LV Size (Mbytes) 2240
Current LE 70
Allocated PE 210
Used PV 3
— Physical volumes —
PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4374
Free PE 2707
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c2t1d0
PV Status unavailable
Total PE 4374
Free PE 2707
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c3t2d0
PV Status available
Total PE 4374
Free PE 2707
Autoswitch On
Proactive Polling On

#lvdisplay -v /dev/vg00/lvol1
— Logical volumes —
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 2
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1792
Current LE 56
Allocated PE 168
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

— Distribution of logical volume —
PV Name LE on PV PE on PV
/dev/dsk/c2t0d0 56 56
/dev/dsk/c2t1d0 56 56
/dev/dsk/c3t2d0 56 56

#isocan -fCdisk
sh: isocan: not found.
dawson3 #ioscan -fCdisk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-N
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GMAW3147NC
disk 2 0/1/1/0.1.0 sdisk NO_HW DEVICE HP 146 GMAW3147NC
disk 3 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 146 GST3146707LC
disk 5 0/3/1/1.1.6.0.0.0.0 sdisk CLAIMED DEVICE NETAPP LUN
disk 4 0/3/1/1.1.7.0.0.0.0 sdisk CLAIMED DEVICE NETAPP LUN
disk 7 0/4/1/1.1.6.0.0.0.0 sdisk CLAIMED DEVICE NETAPP LUN
disk 6 0/4/1/1.1.7.0.0.0.0 sdisk CLAIMED DEVICE NETAPP LUN
# pvdisplay /dev/dsk/c2t1d0|grep “PV Status”
PV Status unavailable

#diskinfo /dev/rdsk/c2t1d0
diskinfo: can’t SIOC_INQUIRY /dev/rdsk/c2t1d0: No such device or address

#### Now, lvreduce from 2 mirror copies down to 1 and disable autobackup:

#for i in 1 2 3 4 5 6 7 8
> do
> lvreduce -m 1 -A n /dev/vg00/lvol$i /dev/dsk/c2t1d0
> done

#### This may take 10min per LV, so do it from a screen session

Once completed, vgreduce (remove the PV from the VG)

On releases prior to HP-UX 11.31

# vgreduce vg00 /dev/dsk/c2t1d0

# vgscan –v ## Not necessary to run

Now replaced the failed drive (RP3440 is hot-pluggable)

# vgdisplay -v vg00 ## Before VGREDUCE

— Physical volumes —
PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4374
Free PE 2707
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c2t1d0
PV Status unavailable
Total PE 4374
Free PE 4374
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c3t2d0
PV Status available
Total PE 4374
Free PE 2707
Autoswitch On
Proactive Polling On

# vgdisplay -v vg00 ## AFTER VGREDUCE, note the bad drive is no longer there

— Physical volumes —
PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4374
Free PE 2707
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c3t2d0
PV Status available
Total PE 4374
Free PE 2707
Autoswitch On
Proactive Polling On

Categories: HP-UX
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: