Skip to content

Commit 3b1ea03

Browse files
anchalagfred-lefebvre
authored andcommitted
Add udev rule to define lower timeout for instance storage volumes
The timeout will be enabled only for kernel versions>=4.14.146 [tt:D12076018]. Any kernel version below that should not be affected due to absence of sysfs attributes all together.
1 parent 0ea9f0e commit 3b1ea03

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

70-ec2-nvme-devices.rules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ KERNEL=="nvme[0-9]*n[0-9]*p[0-9]*", ENV{DEVTYPE}=="partition", ATTRS{serial}=="?
1414
# ebs nvme devices
1515
KERNEL=="nvme[0-9]*n[0-9]*", ENV{DEVTYPE}=="disk", ATTRS{model}=="Amazon Elastic Block Store", PROGRAM="/sbin/ebsnvme-id -u /dev/%k", SYMLINK+="%c"
1616
KERNEL=="nvme[0-9]*n[0-9]*p[0-9]*", ENV{DEVTYPE}=="partition", ATTRS{model}=="Amazon Elastic Block Store", PROGRAM="/sbin/ebsnvme-id -u /dev/%k", SYMLINK+="%c%n"
17+
# instance store nvme devices
18+
KERNEL=="nvme[0-9]*n[0-9]*", ENV{DEVTYPE}=="disk", ATTRS{model}=="Amazon EC2 NVMe Instance Storage", ATTR{queue/io_timeout}="90000"

ec2-utils.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Name: ec2-utils
22
Summary: A set of tools for running in EC2
33
Version: 1.0
4-
Release: 1%{?dist}
4+
Release: 2%{?dist}
55
License: MIT
66
Group: System Tools
77

@@ -80,6 +80,9 @@ rm -rf $RPM_BUILD_ROOT
8080
%{_sysconfdir}/udev/rules.d/70-ec2-nvme-devices.rules
8181

8282
%changelog
83+
* Tue Aug 27 2019 Anchal Agarwal <anchalag@amazon.com>
84+
- Add udev rule to define lower timeout for instance storage volumes
85+
8386
* Wed Sep 22 2010 Nathan Blackham <blackham@amazon.com>
8487
- move to ec2-utils
8588
- add udev code for symlinking xvd* devices to sd*

0 commit comments

Comments
 (0)