为什么Linux上一个磁盘设备会对应两个by-id或by-path,正常应该是一个啊?
如下所示:
[root@rg1-ceph02 /dev/disk/by-path]# ll /dev/disk/by-path/ |grep sdg
lrwxrwxrwx 1 root root 9 Feb 26 10:24 pci-0000:04:00.0-sas-0x56c92bf000376cac-lun-0 -> ../../sdg
lrwxrwxrwx 1 root root 10 Feb 26 10:24 pci-0000:04:00.0-sas-0x56c92bf000376cac-lun-0-part1 -> ../../sdg1
lrwxrwxrwx 1 root root 9 Feb 26 10:24 pci-0000:04:00.0-sas-exp0x56c92bf000376cbf-phy12-lun-0 -> ../../sdg
lrwxrwxrwx 1 root root 10 Feb 26 10:24 pci-0000:04:00.0-sas-exp0x56c92bf000376cbf-phy12-lun-0-part1 -> ../../sdg1
[root@rg1-ceph02 /dev/disk/by-path]# ll /dev/disk/by-id/ |grep sdg
lrwxrwxrwx 1 root root 9 Feb 26 10:24 ata-ST4000NM0024-1HT178_Z4F0FVZE -> ../../sdg
lrwxrwxrwx 1 root root 10 Feb 26 10:24 ata-ST4000NM0024-1HT178_Z4F0FVZE-part1 -> ../../sdg1
lrwxrwxrwx 1 root root 9 Feb 25 21:09 wwn-0x5000c5008781d550 -> ../../sdg
lrwxrwxrwx 1 root root 10 Feb 25 21:09 wwn-0x5000c5008781d550-part1 -> ../../sdg1
lrwxrwxrwx 1 root root 9 Feb 26 10:24 wwn-0xd5508781c5005000 -> ../../sdg
lrwxrwxrwx 1 root root 10 Feb 26 10:24 wwn-0xd5508781c5005000-part1 -> ../../sdg1
分享至: