Operating System - HP-UX
1833927 Members
3442 Online
110063 Solutions
New Discussion

Remove "Ghost" disk from kernel

 
SOLVED
Go to solution
Henry Goverde
Frequent Advisor

Remove "Ghost" disk from kernel

I was able to get the new disk recognized and added to the vg. My only issue now is that the kernel still thinks the "dead disk" is in the system and part of vg00. It will not let me re-mirror the logical volumes.

The lvmtab file only shows the 4 existing disks while SAM volume groups reports 5 disks in vg00. I am assuming that this includes the "dead (and removed) disk.

Is there a way to get the kernel to throw out the "dead disk"?

Thanks in Advance,

Henry
8 REPLIES 8
Christopher McCray_1
Honored Contributor

Re: Remove "Ghost" disk from kernel

Hello,

Have you tried to unconfigure the disk in sam through disks and file systems --> disk devices?

Select the disk, tab --> actions --> unconfigure.

Does this help??

Chris
It wasn't me!!!!
James R. Ferguson
Acclaimed Contributor

Re: Remove "Ghost" disk from kernel

Hi Henry:

Have a look at Technical Knowledge Base document #LVMKBRC00006257, 'Removing a "ghost disk"'.

Regards!

...JRF...
harry d brown jr
Honored Contributor

Re: Remove "Ghost" disk from kernel

do a man on vgscan


mv /etc/lvmtab /etc/orig.lvmtab
vgscan -a

live free or die
harry
Live Free or Die
S.K. Chan
Honored Contributor
Solution

Re: Remove "Ghost" disk from kernel

The key to this is to remove the "stale" mirrored copies on the ghost disk first with the "key-value" from lvdisplay output of the LV that is stale.. example ..(lvol2 in vg00)
and

# lvdisplay -v -k /dev/vg00/lvol2
==> the PV column will show you the disk key value (usually 0 or 1)

With that remove the mirrored stale LV (assuming disk key value is 1)

# lvreduce -m 0 -k /dev/vg00/lvol2 1

Final steps ..
# cd /etc
# mv lvmtab lvmtab.org
# vgscan ???v
# vgchange -a y vg00
--> reactivate vg00
# vgreduce -f vg00
--> force removal of the ghost disk

Sanjay_6
Honored Contributor

Re: Remove "Ghost" disk from kernel

Hi Henry,

Try this link,

{note: contract customer link removed by moderator}

Hope this helps.

Regds
Henry Goverde
Frequent Advisor

Re: Remove "Ghost" disk from kernel

Hi,

The vgscan -a doesn't change a thing. lvmtab reports 4 disks and SAM reports 5. I haven't been able to locate the document for removing a ghost disk.

Thanks for your input. If you have any more suggestions they will be appreciated.

Thanks,

Henry
James R. Ferguson
Acclaimed Contributor

Re: Remove "Ghost" disk from kernel

Hi Henry:

For full access to the Knowledge Base, you must have a support agreement and you must login to the ITRC. When you meet these criteria, be sure to select the "by DocID" from the dropdown box to the left of the search criteria.

Regards!

...JRF...
Henry Goverde
Frequent Advisor

Re: Remove "Ghost" disk from kernel

Thanks a bunch. Looks OK through SAM as well now. I'll try my re-mirroring tonight.