Beiträge von bensisko

    No, that first list IS in order, this is how it should be counting from left to right (hence the index numbers). I've showed the by-id paths because they seem to have no relation to the SCSI IDs.



    And no, perish the thought, they're all connected to a scsi controller on pci-express.



    So to reiterate, I'd like to rename these drives based on the scsi port they're connected to

    Unfortunately not for me, in fact they're quite not-in-order


    Code
    0 [3:0:0:0] /dev/sdb ata-Samsung_SSD_860_EVO_250GB_S3YJNF0M717186E  
    1 [2:0:0:0] /dev/sda ata-ST4000VN008-2DR166_ZDH60ERC 
    2 [7:0:0:0] /dev/sdd ata-ST4000VN008-2DR166_ZDH5T2L1 
    3 [6:0:0:0] /dev/sdc ata-ST4000VN008-2DR166_ZGY3DRBN 
    
    
    lrwxrwxrwx 1 root root   9 Oct 31 18:24 pci-0000:01:00.0-ata-3 -> ../../sda
    lrwxrwxrwx 1 root root   9 Oct 31 18:24 pci-0000:01:00.0-ata-4 -> ../../sdb
    lrwxrwxrwx 1 root root   9 Oct 31 18:24 pci-0000:02:00.0-ata-3 -> ../../sdc
    lrwxrwxrwx 1 root root   9 Oct 31 18:24 pci-0000:02:00.0-ata-4 -> ../../sdd


    I'm thinking on how to get udev to do what I do.. The attributes that I want are in the parent device of the actual disk, not in the disk itself..


    So for some time now I've been happily using OMV inside a QNAP TS-451+, and it's working much better than the stuff qnap gives. However, there's only thing I'm missing from this arrangement. If a drive fails, I have to basically guess which bay is the one that houses it. Is there a good way to make hdd devices have stable device names? I'm thinking something on the order of a udev rule, so I could assign disks to paths, and when it fails, i can see that instead of /dev/sda failing it's something like /dev/bay0 or something of the sort


    systemd already does something similar to ethernet ports.


    If anyone already has something similar done, I'd love to hear about it