[CentOS] read failed after messages of non existing harddisks

Fri Oct 28 13:26:42 UTC 2011
Philippe Naudin <philippe.naudin at supagro.inra.fr>

Le ven 28 oct 2011 14:08:50 CEST, Götz Reinicke a écrit:

> Hi,
> 
> some time ago I removed some physical disks from a server and now I'm
> still getting dmesg messages like:
> 
> sd 0:2:2:0: SCSI error: return code = 0x00040001
> end_request: I/O error, dev sdc, sector 0
> 
> And all lvm tools still grumbel about that disks too:
> 
> /dev/sdb: read failed after 0 of 4096 at 0: Eingabe-/Ausgabefehler
>   /dev/sdb: read failed after 0 of 4096 at 1746969493504:
> Eingabe-/Ausgabefehler
> 
> 
> How may I tell the lvm and the system, that it is ok that this disk do
> not exist any more?

If a software RAID has been removed, don't forget :
  mdadm --misc --zero-superblock /dev/sdX 
where sdX is every disk that was part of the RAID.


-- 
Philippe Naudin
UMR MISTEA : Mathématiques, Informatique et STatistique pour 
l'Environnement et l'Agronomie
INRA, bâtiment 29   -   2 place Viala   -   34060 Montpellier cedex 2
tél: 04.99.61.26.34, fax: 04.99.61.29.03, mél: naudin at supagro.inra.fr