ATA drive /dev/disk/by-path/ incorrect due to kernel change
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udev (Ubuntu) |
Invalid
|
Undecided
|
Martin Pitt |
Bug Description
Starting in Ubuntu 12.04.3 the kernel commit http://
As a result, when a drive is detected by udev the path ID is determined and assumes a multi-port host that must be rebased. This results in /dev/disk/by-path/ nodes that overlap. For example, the following shows two different disks, sdb and sdc, that have the same scsi-0:0:0:0 path.
# Before inserting second disk:
ubuntu@ubuntu:~$ ls -l /dev/disk/by-path/
total 0
lrwxrwxrwx 1 root root 9 Feb 21 15:57 pci-0000:
lrwxrwxrwx 1 root root 10 Feb 21 15:57 pci-0000:
lrwxrwxrwx 1 root root 9 Feb 21 23:58 pci-0000:
lrwxrwxrwx 1 root root 10 Feb 21 23:58 pci-0000:
lrwxrwxrwx 1 root root 10 Feb 21 23:58 pci-0000:
lrwxrwxrwx 1 root root 10 Feb 21 23:58 pci-0000:
lrwxrwxrwx 1 root root 10 Feb 21 23:58 pci-0000:
lrwxrwxrwx 1 root root 10 Feb 21 23:58 pci-0000:
# After inserting second disk:
ubuntu@ubuntu:~$ ls -l /dev/disk/by-path/
total 0
lrwxrwxrwx 1 root root 9 Feb 21 15:57 pci-0000:
lrwxrwxrwx 1 root root 10 Feb 21 15:57 pci-0000:
lrwxrwxrwx 1 root root 9 Feb 21 23:58 pci-0000:
lrwxrwxrwx 1 root root 10 Feb 21 23:58 pci-0000:
lrwxrwxrwx 1 root root 10 Feb 21 23:58 pci-0000:
lrwxrwxrwx 1 root root 10 Feb 21 23:58 pci-0000:
lrwxrwxrwx 1 root root 10 Feb 21 23:58 pci-0000:
lrwxrwxrwx 1 root root 10 Feb 21 23:58 pci-0000:
I have a fix proposed and will attach a patch. I have tested it on all 12.04 releases including 12.04.4.
tags: | added: precise |
Changed in udev (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
The attachment "udev_ata_ path_id_ rebase_ fix.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]