this post was submitted on 25 Aug 2024
16 points (100.0% liked)

Linux

5280 readers
627 users here now

A community for everything relating to the linux operating system

Also check out [email protected]

Original icon base courtesy of [email protected] and The GIMP

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 2 months ago* (last edited 2 months ago) (3 children)

I have four identical machines. Each with the following set of disks:
2x NVMe
2x 2.5" SSD
4x 3.5" HDD in hardware RAID6

now, the device nodes for the SSDs and the RAID seems random. These populate /dev/sda through sdc, but which is which varies between the machines.

Is it possible to somehow reassign the device nodes so that I have the RAID show up as sdc on all machines?

[–] anzo 2 points 2 months ago

AFAIK the a-b-c enumeration comes from hardware, so for example whichever sata port you use in a motherboard would always get the same identifier. You'd need to turn off all four nodes and check the disks are indeed connected in exactly the same ports. If that fails, then I'd assume the motherboards are from different batched or soldered differently for whatever reasons.

[–] anzo 2 points 2 months ago

How about using labels in etc-fstab ? That should be all you really need to be able to refer to disks in a cohesive fashion between nodes.

[–] onlinepersona 2 points 2 months ago

@[email protected] is correct, it's the order you connected them in (see tldp). Use UUIDs or devices lables for consistency or connect them in the order you want.

Anti Commercial-AI license