Device names on hotswap server. (Name by port rather than insert order?) – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.
But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, udev, , , .
Is there a way to name devices such that any drive plugged into slot 1 is always named /dev/sda? Rather than just first drive inserted sda even though it’s plugged into the last slot, second sdb wherever it goes, etc…
Edit (after more research):
How does /dev/disk/by-path work? Does part of the name map to a physical port?
by-path does not seem to work at all with the hotswap drives. They do not show up.
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
LABEL=FOOBAR /mnt/foobar ext3 defaults 0 0