On Fri, 2022-06-17 at 10:39 +0200, Carlos E. R. wrote:
On 2022-06-17 10:10, Martin Wilck wrote:
On Wed, 2022-06-15 at 20:07 +0300, Andrei Borzenkov wrote:
On 15.06.2022 19:15, Manfred Schwarb wrote:
Am 15.06.22 um 11:35 schrieb Franck Bui:
...
This is probably misunderstanding. It is only about some links generated by /usr/lib/udev/rules.d/61-persistent-storage-compat.rules
You can read this file to check whether you ever used these links at all.
Indeed. For clarification:
First of all, these symlinks are generally rarely used, because they are for _device_ identifcation, whereas users typically configure _filesystem_ identification using by-uuid or by-label. The latter methods are absolutely independent of the proposed change.
The device symlinks might be used in filter expressions in /etc/lvm.conf, for example. If this is the case, you may need to fix your filters.
Details
- NMVe: Later kernels have settled on the generic "wwid" sysfs attribute, which is a superset of the previously used methods "eui", nguid", etc, and also of the legacy use of the SCSI translation layer. - SCSI: The compat symlinks are only relevant for SATA disks, where they create an additional symlink. On my system, it looks like this:
scsi-SATA_SK_hynix_SC300_MFJ63N456110303C1E -> ../../sda scsi-SATA_SK_hynix_SC300_M_FJ63N456110303C1E -> ../../sda
The first link is missing a '_' between product ID and serial number, That's the compat link.
Ok, in this case what should we use?
The non-compat link, i.e. the latter. I thought this was obvious from thw thread's topic, sorry,
sda?
scsi-SATA_SK_hynix_SC300_MFJ63N456110303C1E?
scsi-SATA_SK_hynix_SC300_M_FJ63N456110303C1E?
Something else?
- path_id: this also matters to SATA disks only. The compat link is a /dev/disk/by-path/pci...scsi... link, whereas udev's path_id built- in generates a /dev/disk/by-id/pci...ata link. Example:
pci-0000:00:17.0-ata-3.0 -> ../../sda pci-0000:00:17.0-scsi-2:0:0:0 -> ../../sda
The second one here is the compat symlink.
Same question.
The former.
sda?
pci-0000:00:17.0-ata-3.0?
pci-0000:00:17.0-scsi-2:0:0:0
Something else?
Sorry if I'm being thick, but I don't understand what are the wrong ones and the correct ones.
"compat" stands for "legacy"; i.e. the ones that shouldn't be used any more. Out of curiosity: are you using these links, and if yes, what for? Martin