Skip to content

Invalid/Placeholder WWN IDs on external DAS #1145

@gerblesh

Description

@gerblesh

Hi! Thanks for the IncusOS project, it's really amazing how good this is. One issue I'm facing with my (admittedly probably pretty crappy) DAS is that when enumerating the drives with incus admin os system storage show

I get duplicate drive IDs

- boot: false
      bus: sata
      capacity_in_bytes: 2.000398934016e+12
      id: /dev/disk/by-id/scsi-35000000000000001
      model_family: ""
      model_name: WDC WD20EFPX-68C4TN0
      multipath: false
      remote: false
      removable: false
      serial_number: WD-****
      smart:
        enabled: true
        passed: true
        power_on_hours: 2641
      wwn: "0x5000000000000001"
      wwn_id: /dev/disk/by-id/wwn-0x5000000000000001
    - boot: false
      bus: sata
      capacity_in_bytes: 2.000398934016e+12
      id: /dev/disk/by-id/scsi-35000000000000001
      model_family: ""
      model_name: WDC WD20EFPX-68C4TN0
      multipath: false
      remote: false
      removable: false
      serial_number: WD-****
      smart:
        enabled: true
        passed: true
        power_on_hours: 2641
      wwn: "0x5000000000000001"
      wwn_id: /dev/disk/by-id/wwn-0x5000000000000001

I redacted the serial numbers, however they are different between the drives. It seems like some of this is managed by incus-osd(?) I'm not too familiar with this project but I'd be happy to fix this if pointed in the right direction. Regardless, there may be some hack where if the wwn is the same or the scsi we could use the serial number instead, but I understand if this is a bit hacky and working around terrible design on the part of the hardware manufacturer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions