Commit 5adc280
committed
Rescan PCI bus to allow outdated NVMe drivers to discover volumes.
With CentOS 6 AMIs that have an outdated NVMe driver, we need to force a rescan
of the PCI bus after attaching an EBS volume so the driver can attach to it. The
rescan should not be harmful for other platforms, so triggering it
unconditionally. Implementing it here as the rescan has to be done after the
boto call has been made to attach a volume (from attachVolume.py) while polling
for the device so the rescan can cause our udev rule to kick in for
/dev/disk/by-ebs-volumeid.
Signed-off-by: Raghu Raja <craghun@amazon.com>1 parent 763f0b4 commit 5adc280
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
15 | 25 | | |
16 | 26 | | |
17 | 27 | | |
| |||
0 commit comments