[Gllug] Replacement SATA disk naming
Bruce Richardson
itsbruce at workshy.org
Thu Mar 5 14:30:39 UTC 2009
On Thu, Mar 05, 2009 at 01:57:16PM +0000, Alain wrote:
> On Thu, Mar 05, 2009 at 01:07:07PM +0000, Bruce Richardson wrote:
>
> > > How do I get the kernel to rename /dev/sdc as /dev/sda ?
> >
> > Don't. Use udev to create unique names (or symlinks) in /dev/ for your
> > disks and their partitions and then tell your raid software about that.
>
> Hmmmm: pity the installation s/ware (anaconda) didn't do that.
> /dev/sda is referenced is all sorts of places, eg: nagios & smart monitoring.
> I'd like to try this one something other than a live customer machine -- first time round.
If you create a unique symlink rather than a unique name, you can cope
for the moment by making sda a symlink to sdc and then removing the
symlink before a reboot. Alternatively, make a rule that creates a
unique name for the drive AND the sdc symlink.
It is a good idea to investigate udev and unique names whereever you are
working with hot-pluggable devices. Saves so much pain in the long run.
So many Mythtv newbies, for example, get everything working at last,
disconnect the usb kb, reboot and wonder why the ir device is no longer
working.
>
> > udevinfo --query=all --name=sdc
> >
> > should give you enough information to create a custom rule.
>
> Didn't work, but this did:
>
> udevinfo -q all -n sdc
>
Older version, perhaps?
--
Bruce
If the universe were simple enough to be understood, we would be too
simple to understand it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20090305/5328ce8c/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list