Skip to content
Browse files

updated kernel device names for newer kernels on Amazon EC2

  • Loading branch information...
1 parent 511fd23 commit 8a7a1ba00cd38ba2b4437260a3fb7548b23c210f @alonswartz alonswartz committed Mar 20, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −2 85-ebsmount.rules.in
  2. +1 −1 cmd_manual.py
  3. +1 −1 cmd_udev.py
  4. +1 −1 ebsmount.conf
View
4 85-ebsmount.rules.in
@@ -1,8 +1,8 @@
# udev rules to trigger ebsmount-udev on ebs attach|detach
# Amazon EC2
-KERNEL=="sd[f-p]", SUBSYSTEM=="block", ATTRS{devtype}=="vbd", ACTION=="add", RUN+="@PATH_BIN@/ebsmount-udev add"
-KERNEL=="sd[f-p]", SUBSYSTEM=="block", ACTION=="remove", RUN+="@PATH_BIN@/ebsmount-udev remove"
+KERNEL=="xvd[f-p]", SUBSYSTEM=="block", ATTRS{devtype}=="vbd", ACTION=="add", RUN+="@PATH_BIN@/ebsmount-udev add"
+KERNEL=="xvd[f-p]", SUBSYSTEM=="block", ACTION=="remove", RUN+="@PATH_BIN@/ebsmount-udev remove"
# Eucalyptus / OpenStack
KERNEL=="vd[a-z]*", SUBSYSTEM=="block", ACTION=="add", RUN+="@PATH_BIN@/ebsmount-udev add"
View
2 cmd_manual.py
@@ -18,7 +18,7 @@
Arguments:
- device EBS device to mount (e.g., /dev/sdf, /dev/vda)
+ device EBS device to mount (e.g., /dev/xvdf, /dev/vda)
Options:
View
2 cmd_udev.py
@@ -22,7 +22,7 @@
Environment variables (Amazon EC2):
- DEVNAME (required: e.g., /dev/sdf)
+ DEVNAME (required: e.g., /dev/xvdf)
PHYSDEVPATH (required: e.g., /devices/xen/vbd-2160)
Environment variables (Eucalyptus):
View
2 ebsmount.conf
@@ -7,4 +7,4 @@ MOUNTOPTIONS=noatime
FILESYSTEMS=ext2 ext3 ext4
LOGFILE=/var/log/ebsmount.log
-DEVPATHS=^/devices/xen/vbd- ^/devices/virtio-pci/virtio ^/devices/pci(.*)/virtio
+DEVPATHS=^/devices/vbd- ^/devices/virtio-pci/virtio ^/devices/pci(.*)/virtio

0 comments on commit 8a7a1ba

Please sign in to comment.
Something went wrong with that request. Please try again.