[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: External hdd changing device node mid-use



On Mon, 20 Dec 2010 09:15:58 +0200, Panayiotis Karabassis wrote:

> I have an external usb 2.0 LG hard disk. It is part of an md array which
> is in turn part of an lvm array. The strange thing is that while the
> drive is in use, it will suddenly change device nodes, for example from
> /dev/sda to /dev/sdb. This will cause the md driver to mark it as
> faulty. This is very disruptive. Why is this happening and how to solve
> it?

You should not trust anymore the old method for naming devices ("/dev/
sda...") as it can change at a random basis, but use persistent naming¹ 
(by-label, by-uuid², by-id, by-path) for your disks, even more with USB/
hot pluggable devices.

BTW, shouldn't lvm2 care about this automatically? :-?

¹ http://wiki.debian.org/Part-UUID
² AFAIK, this is the preferred/recommended method in Debian

Greetings,

-- 
Camaleón


Reply to: