- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Removing faulty disk from 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
04-05-2008 12:35 AM
04-05-2008 12:35 AM
Removing faulty disk from mirror
I have an HP-UX 10.23 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,
Rod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2008 01:00 AM
04-05-2008 01:00 AM
Re: Removing faulty disk from mirror
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=183447
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2008 01:03 AM
04-05-2008 01:03 AM
Re: Removing faulty disk from mirror
Everything you need is in the attached pdf file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2008 03:25 AM
04-05-2008 03:25 AM
Re: Removing faulty disk from mirror
ok
this u can remove mirror first where 0 indicates u have only one mirror copy
if it is two u can use number 1
once u confirmed the disk has no physcial or logical extends u can remove it from volume group by using vgreduce command
vgreduce vgname then physcial volume name
ex: vgreduce vg00 /dev/dsk/c0t0d5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2008 07:19 AM
04-05-2008 07:19 AM
Re: Removing faulty disk from mirror
We know that we can't able to break the mirror when I have "stale". Or is there any way to break mirror when there's "stale ???
# lvreduce -m 0 -A n -k /dev/vg00/lvol8 /dev/dsk/c0t5d0
Physical extents on remaining physical volumes are stale or
Remaining physical volumes are not responding.
lvreduce: The LVM device driver failed to reduce mirrors on
Logical volume "/dev/vg00/lvol8" is not reduced
# lvdisplay -v /dev/vg00/lvol8 |grep -i stale |wc -l
776
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2008 09:51 PM
04-05-2008 09:51 PM
Re: Removing faulty disk from mirror
u can remove the mirror copy with the above command. if pvdisplay command is failed while booting then only lvreduce fail but from there also u can use key value for removing mirror
ok
lvdisplay -v -k /dev/vg00/logical volume name
it iwll display u key value
use this command then
lvreduce -m 0 -A n -k /dev/vg00/logicalvolume key
if the disk u can read then u can extend u extents to anohter physcial volume in volume group
by using pvmove command
pvmove physicalvolum1 physcial volume2
### this means u setup u disk free now u can easily remove u physical volume from u volume group
by using vgreduce command what i posted before. if the disk is not available then u have to force to reduce it but in this case u should rebuild the lvmtab file
vgreduce -f vg00
mv /etc/lvmtab /etc/lvmtab.back
vgscan -v
ok this is the complete for u posted quetion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2008 04:59 PM
04-06-2008 04:59 PM
Re: Removing faulty disk from mirror
First check the lvdisplay -v /dev/vg00/lvol8, that looks like follows:
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
then check the o/p with -k option, this will show you the key value for both the disk. Note down the key value for the first disk where it is showing ??? now.
Then you need to execute the lvreduce command using -k
Make sure that you execute this command on all the LVs since ur other LVs would have been mirrored across this disk as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2008 10:08 PM
04-10-2008 10:08 PM
Re: Removing faulty disk from mirror
Cheers,
Rodz