Device names on hotswap server. (Name by port rather than insert order?)

Rather than rely on device names being always the same, why not use filesystem labels? Those are a lot easier to deal with.

To set a label on a partiton (ext2/3/4 in this case):

$ e2label /dev/sda1 FOOBAR

Then in /etc/fstab:

LABEL=FOOBAR     /mnt/foobar    ext3   defaults 0 0