Operating System - HP-UX
1834156 Members
2826 Online
110064 Solutions
New Discussion

Removing faulty disks from mirror

 
SOLVED
Go to solution
Rui Vilao
Regular Advisor

Removing faulty disks from mirror

Hi all,

I have an HP-UX 10.20 with mirrored disks.

A disk failed (I have no more maintenance for this host...).
I want to remove the mirror from the
logical volumes and remove the faulty disk from the Volume Group.
# strings /etc/lvmtab
/dev/vg00
cd7^
/dev/dsk/c0t6d0
/dev/dsk/c0t4d0
/dev/dsk/c0t5d0
/dev/dsk/c0t3d0
/dev/vgapp
cd7d
/dev/dsk/c3t0d1
/dev/dsk/c3t1d1
/dev/vghmi
!$7b
/dev/dsk/c3t0d2
/dev/dsk/c3t1d2
/dev/vgdb
U7]O'
/dev/dsk/c3t0d0
/dev/dsk/c3t1d0
/dev/vgoradb
U7]Oe
/dev/dsk/c3t0d3
/dev/dsk/c3t1d3

==> c0t5d0 is faulty

# lvdisplay -v /dev/vg00/lvol8
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol8
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 512
Current LE 128
Allocated PE 256
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t3d0 128 128

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
0000 ??? 0462 stale /dev/dsk/c0t3d0 0462 current
0001 ??? 0463 stale /dev/dsk/c0t3d0 0463 current
0002 ??? 0464 stale /dev/dsk/c0t3d0 0464 current
0003 ??? 0465 stale /dev/dsk/c0t3d0 0465 current
0004 ??? 0466 stale /dev/dsk/c0t3d0 0466 current
0005 ??? 0467 stale /dev/dsk/c0t3d0 0467 current
0006 ??? 0468 stale /dev/dsk/c0t3d0 0468 current

...

When I try:

# lvreduce -m 0 /dev/vg00/lvol8 /dev/dsk/c0t5d0
lvreduce: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
lvreduce: Warning: couldn't query all of the physical volumes.
lvreduce: Physical volume "/dev/dsk/c0t5d0" does not belong
to volume group "/dev/vg00".
Logical volume "/dev/vg00/lvol8" is not reduced.

# vgreduce /dev/vg00 /dev/dsk/c0t5d0
vgreduce: Couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group

How can I remove the disk?

Thanks in advance for your help,

Kind Regards,

Rui.
"We should never stop learning"_________ rui.vilao@rocketmail.com
3 REPLIES 3
steven Burgess_2
Honored Contributor
Solution

Re: Removing faulty disks from mirror

steven Burgess_2
Honored Contributor

Re: Removing faulty disks from mirror

Hi again

Here's a link to a similar discussion

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xb217543254bfd611abdb0090277a778c,00.html

HTH

Steve

take your time and think things through
Rui Vilao
Regular Advisor

Re: Removing faulty disks from mirror

Hi Steven,

Thanks a lot for the information.
Problem solved!

Best Regards,

Rui.
"We should never stop learning"_________ rui.vilao@rocketmail.com