Sunday 14 August 2011

Custom udev for iscsi

Create a rule that will create a symlink called /dev/iscsi[1-9] that points to /dev/sda[1-9]

/etc/udev/rules.d/75-iscsi_sda.rules

KERNEL=="sda[1-9]", \
POGRAM=="scsi_id -g -s /block/sda/sda%n", \
RESULT=="GUID", \
SYMLINK+="iscsi%n"

replace GUID with output from scsi_id -g -s /block/sda

No comments:

Post a Comment