Operating System - HP-UX
1748154 Members
3764 Online
108758 Solutions
New Discussion юеВ

Disk showing as NO_HW in Volume Group

 
SOLVED
Go to solution
MikeL_4
Super Advisor

Disk showing as NO_HW in Volume Group

I have one large Volume group with one large Logical Volume defined in it. I noticed in an ioscan that it now shows as NO_HW and I cannot get it back to claimed with insf... I'm assumming the disk went bad ???

The LV is working fine without any errors so I am assumming that the disk did not have any data allocated to it yet. Is there a way to verify this before I replace it ?

And what would the steps be to remove it from the Logical Volume, and Volume Group before replacing it ?
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Disk showing as NO_HW in Volume Group

The disk probably went bad although you could have bad cabling, bad termination, no termination power, two or more devices on the bus with identical SCSI ID's, etc. Check all of those first.

I'm not sure what "the LV is working fine without any errors" means when combined with your NO_HW.

In any event, you replace the drive, run an ioscan -fn to see if the disk is visible, and then run insf to replace the device nodes. Do another ioscan -fn and now you should see "CLAIMED" and device nodes should be associated with the disk.

You don't need to remove the VG or LVOL but
vgcfgrestore -n /dev/vgXX /dev/rdsk/cXtYdZ
vgchange -a y /dev/vgXX

That should have you. These step assume that this LVOL was not mirrored.

Search docs.hp.com for "Procedure for replacing an LVM disk" and you should find all the possible permutations and combinations of disk replacement.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Disk showing as NO_HW in Volume Group

Note that the above procedure will recreate the LVOL in raw form. You will then have to build a filesystem, mount it, and restore from backup.
If it ain't broke, I can fix that.
Florian Heigl (new acc)
Honored Contributor

Re: Disk showing as NO_HW in Volume Group

pvdisplay -v /dev/dsk/cXtYdZ will show You if there was any data allocated on the disk.

Check if the pv state is 'unavailable' already, it ought to be.

Next, before further action do:
lvdisplay -v /dev/vgNN/lv* | grep -ic stale

this has to return '0', otherwise You should consider some method of data recovery (ranging from carefully re-seating the disk to searching out Your tapes ;)

if the disk is still marked available and no Stale PE exist, then You can mark the LV as dead using pvchange -u /dev/dsk/cXtYdZ (only availabe in HP-UX 11.11 and above)

Also search for the LVM manual 'when good disks go bad' that was posted here a few months ago.

In the good case the next step is removing the disk and restoring the vg header to it.
In the bad case You'll have to umount all lv's, vgchange -a n /dev/vgNN and vgchange -a y /dev/vgNN the vg, and then vgreduce -u /dev/vgNN /dev/dsk/cXtYdZ.

And, last, but not least, You should do some forensics in the EMS logs as to how and when the disks died.
yesterday I stood at the edge. Today I'm one step ahead.
Florian Heigl (new acc)
Honored Contributor

Re: Disk showing as NO_HW in Volume Group

Oh, it should read s/removing/replacing/!
yesterday I stood at the edge. Today I'm one step ahead.
MikeL_4
Super Advisor

Re: Disk showing as NO_HW in Volume Group

It looks like it was dropped out of the LV:

[/root]:=>lvdisplay -v /dev/vgign1/ignitelv |grep -ic stale
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c4t5d0":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
0
[/root]:=>
Steven E. Protter
Exalted Contributor

Re: Disk showing as NO_HW in Volume Group

The behavior is normal for a disk going bad.

I did have the same thing happen to a disk that was sitting in a bad spot in a JBOD.

Same results except no need to spend any money replacing the disk, it was perfectly fine in another slot.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
MikeL_4
Super Advisor

Re: Disk showing as NO_HW in Volume Group

Thanks, reseating drive did not resolve issue, but replacing it did. Don't understand why there was nothing in syslog.log though on the drive???