Reply to post: Re: Device naming

Linux in 2020: 27.8 million lines of code in the kernel, 1.3 million in systemd

Dazed and Confused

Re: Device naming

I don't think the device naming weirdness is down to systemd, that's down to the kernel initializing stuff in parallel. So if you've got multiple disk interfaces they're being enumerated at the same time, so it's anyone's guess which device will be sdWhatEver. You could see issues in pre-systemd boxes too, Linux doesn't natively have persistent device naming, hence the pre-systemd udev rules to make /dev/disk/* and the similar arrangement for tapes etc.

I must admit I've not tried changing the names of disks with systemd-udevd just used symlinks. If multiple udev rules generate the same symlink then the one which remains at the end is the last rule to fire, so you'll see this for multipathed disks is if you compare /dev/disk/by-id and /dev/disk/by-path, and RHEL7's (with systemd) and RHEL6 (without) behave the same here.

BTW, I'm not trying to defend systemd here, I've got enough gripes against it.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon