[Solved] /dev/disk/by-id: WWN sometimes is missing - implications?

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
Meow
Posts: 43
Joined: 2015-04-13 23:32
Has thanked: 17 times

[Solved] /dev/disk/by-id: WWN sometimes is missing - implications?

#1 Post by Meow »

Problem:
For some drive(s) the system sometimes does not create the appropriate wwn-0x... links.
Here, in case of a HP S700 SSD, It sometimes only creates the ata-... links.

This causes timeouts in the boot process when the system looks for the drives which were announced to it using the wwn-... link instead of ata-... or just sdX.

(When the boot process continues after that timeout, ZFS on linux itself recognizes the ZFS filesystems itself automagically, so bad data in fstab or whatever usually does not matter that much)

Questions:
Often in documents/instructions it is recommended to use the WWN identification method, as it is most convenient and safe, because every device's WWN is written on it.
But now I feel no longer sure about this.

1. Am I doing something grossly wrong which made the wwn-... identification links not appear?
2. Or, is this normal behaviour which makes more prudent to use the ata-... link instead of the wwn-...?
Last edited by Meow on 2024-10-31 00:24, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 3949
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 109 times
Been thanked: 518 times

Re: /dev/disk/by-id: WWN sometimes is missing - implications?

#2 Post by Aki »

Hello,
Meow wrote: 2024-10-30 09:03 Often in documents/instructions it is recommended to use the WWN identification method, as it is most convenient and safe, because every device's WWN is written on it. But now I feel no longer sure about this.
Can you please provide a reference to an example of these documents/instructions?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
Meow
Posts: 43
Joined: 2015-04-13 23:32
Has thanked: 17 times

Re: /dev/disk/by-id: WWN sometimes is missing - implications?

#3 Post by Meow »

Aki wrote: 2024-10-30 17:32 Can you please provide a reference to an example of these documents/instructions?
Well, I read again the Root on ZFS manual, I misinterpreted that.
It strongly recommended there to use the links in /dev/disk/by-id/ instead of " sda", "sdb" etc when specifying particular drives, as the latter might change.

If the wwn thing would work reliably, this would be nice. But I read there is a lot of udev stuff etc to get right for that.
So I for now have modified my script to use the ata-... instead of the wwn- references.
Not a big deal.

Aki
Global Moderator
Global Moderator
Posts: 3949
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 109 times
Been thanked: 518 times

Re: /dev/disk/by-id: WWN sometimes is missing - implications?

#4 Post by Aki »

Hello,
Meow wrote: 2024-10-30 18:42
Aki wrote: 2024-10-30 17:32 Can you please provide a reference to an example of these documents/instructions?
Well, I read again the Root on ZFS manual, I misinterpreted that. It strongly recommended there to use the links in /dev/disk/by-id/ instead of " sda", "sdb" etc when specifying particular drives, as the latter might change.

If the wwn thing would work reliably, this would be nice. But I read there is a lot of udev stuff etc to get right for that.
So I for now have modified my script to use the ata-... instead of the wwn- references.
Not a big deal.
I'm glad you sorted it out. :)

Please, mark the discussion as "solved" manually adding the text tag "[Solved]" at the beginning of the subject of the first message (after other tags, if any).

Thanks.

Happy Debian ! :)
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply