Operating System - HP-UX
1832781 Members
3064 Online
110045 Solutions
New Discussion

Re: Disk failure...Remove Disk, need help removing it so disk_em stop reporting

 
Jon Le
Advisor

Disk failure...Remove Disk, need help removing it so disk_em stop reporting

Hello everyone. I had a hard drive that failed on me. I would like to take it off the system. I have already removed the disk from the system and now just need to reconfigure the system so that it stops monitoring it.

Disk_em is reporting that its critical severity and list a few hardware path that doesn't exisit anymore. I verified that it doesn't show up on ioscan -fnC disk

What is the procedure I have to take to remove this drive out of the system. Any help is appreciated.
8 REPLIES 8
Ivan Krastev
Honored Contributor

Re: Disk failure...Remove Disk, need help removing it so disk_em stop reporting

Use the following steps:

1. run /etc/opt/resmon/lbin/moncheck to determine the names of instances which should be disabled
2. add/delete/modify instances in the disabled_instances file with an editor of your choice
3. run /etc/opt/resmon/lbin/monconfig
select the "E)nable Monitoring" command
wait for monitoring to be re-enabled
4. select "(C)heck detailed monitoring status", or run moncheck again to verify the changes

regards,
ivan
Jon Le
Advisor

Re: Disk failure...Remove Disk, need help removing it so disk_em stop reporting

thank you for the quick response.

I went through the document, "When Good Disks Go Bad.pdf" and followed the Removing the disk portion of it. I did the following:

I tried to do a vgreduce but it states that the disk wasn't in the lvmtab file. So I did a

#mv /etc/lvmtab /etc/lvmtab.save
#vgscan -v

is that correct? do I have to do anything else?

when I did the vgscan -v

i get the following:

Creating "/etc/lvmtab"

vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg00"

vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg01"

vgscan: Couldn't access the list of physical volumes for volume group "/dev/data"

vgscan: Couldn't access the list of physical volumes for volume group "/dev/data2"

After a couple of minutes, it went by quick and this is all i got:

/dev/vg00
/dev/dsk/c1t2d0

/dev/data2
/dev/dsk/c7t0d0

following physical volumes belong to one volume group. Unable to match these Physical Volumes to a Volume Group. Use the vgimport command to complete the process:

/dev/dsk/c7t2d0

following physical volumes belong to one volume group. Unable to match these Physical Volumes to a Volume Group. Use the vgimport command to complete the process:

/dev/dsk/c7t4d0

The volume group /dev/data was not matched with any Physical Volumes. Scan of physical volumes complete


The damage drive that I removed was /dev/data. Let me know your thoughts. Thank you.



Jon Le
Advisor

Re: Disk failure...Remove Disk, need help removing it so disk_em stop reporting

when i run a ioscan -fnC disk

it shows up sdisk NO_HW on the drive that went bad. How do I get that off.

I attach the output of ioscan -fnC disk

The bad disk was the Seagate ST318404LW. I connected the drive a few times as I got the wrong jumper in place so that is why you see the hardware address of

0/9/0/0/0.2.0
0/9/0/0/0.4.0
0/9/0/0/0.6.0 --> This was the orignal harddrive address.
0/9/0/0/0.8.0
0/9/0/0/0.12.0

Any help is appreciated.
Bill Hassell
Honored Contributor

Re: Disk failure...Remove Disk, need help removing it so disk_em stop reporting

> 0/9/0/0/0.6.0

To remove the kernel's knowledge of a missing disk, use rmsf as in:

rmsf -aH 0/9/0/0/0.6.0

Remove Special Files (rmsf) is the correct command (not: rm /dev/dsk/....)


Bill Hassell, sysadmin
psreedhar
Frequent Advisor

Re: Disk failure...Remove Disk, need help removing it so disk_em stop reporting

Hi,
What exactly you want to do?
You want to get rid of the DSF and the volume group and Kernel knowledge about the disk?
or
you want to replace the old disk with the new one?

If you don't want the volume group you must have done vgexport instead of doing vgscan.
"Good disks goes bad.pdf" is helpful only when you have mirror disk. In your case it looks like you have only one disk in the Volume group, and you replaced that with new one. So you cant recover the data of that volume group.
If you already have backup of the data, then put back the old /etc/lvmtab file and run vgcfgrestore command.
Sajjad Sahir
Honored Contributor

Re: Disk failure...Remove Disk, need help removing it so disk_em stop reporting

u have to use
rsmf -H then hardware path
ok
then it will remvoe that one
AVV
Super Advisor

Re: Disk failure...Remove Disk, need help removing it so disk_em stop reporting

You can do

rmsf -aH 0/9/0/0/0.6.0 -- It will remove the kernel info .

You can vgexport the same VG and import the file back once you replaced the disk.Then do a vg activation. But be aware that VG will not be available till you do an vgimport followed by activation.

Anyway await for more reply before doing the final step.
Sajjad Sahir
Honored Contributor

Re: Disk failure...Remove Disk, need help removing it so disk_em stop reporting

this is the steps u have to follow up if u want to do any thing here

vgchange -a n /dev/vg03--- means volume group deactivate
vgexport -s -m /tmp/vg03map /dev/vg003
mkdir /dev/vg03
mknod /dev/vg03/group c 64 0x050000
vgimport -s -m /tmp/vg03map /dev/vg03
vgchange -a y /dev/vg03