Hi,
I have installed lin_tape 1.76.0 on RedHat 5.9 and i trying to set the
persistent rule.
I append on /etc/modprobe.conf the line options lin_tape
alternate_pathing=1 tape_reserve_type=persistent
and i have created the file /etc/udev/rules.d/98-lin_tape.rules with the
following content:
KERNEL=="IBMtape*[!n]", SYSFS{serial_num}=="0007887946",SYMLINK="IBMtapeP1"
KERNEL=="IBMtape*[!n]", SYSFS{serial_num}=="0007887247",SYMLINK="IBMtapeP2"
KERNEL=="IBMtape*[!n]", SYSFS{serial_num}=="0007889632",SYMLINK="IBMtapeP3"
KERNEL=="IBMtape*[!n]", SYSFS{serial_num}=="0007889582",SYMLINK="IBMtapeP4"
KERNEL=="IBMtape*[!n]", SYSFS{serial_num}=="0007889574",SYMLINK="IBMtapeP5"
KERNEL=="IBMtape*[!n]", SYSFS{serial_num}=="0007889515",SYMLINK="IBMtapeP6"
KERNEL=="IBMtape*[!n]",
SYSFS{serial_num}=="00078AD572",SYMLINK="IBMtapeP25"
The others configurations are:
cat /proc/scsi/IBM*
lin_tape version: 1.76.0
lin_tape major number: 250
Attached Changer Devices:
Number model SN HBA SCSI FO
Path
0 03584L32 0000078244410403 bfa 2:0:2:1
Primary
1 03584L32 0000078244410403 bfa 3:0:4:1
Alternate
lin_tape version: 1.76.0
lin_tape major number: 250
Attached Tape Devices:
Number model SN HBA SCSI FO
Path
0 ULT3580-TD4 0007889632 bfa 2:0:0:0
Primary
1 ULT3580-TD5 00078AD572 bfa 2:0:1:0
Primary
2 ULT3580-TD4 0007889574 bfa 2:0:2:0
Primary
3 ULT3580-TD4 0007887946 bfa 2:0:3:0
Primary
4 ULT3580-TD5 00078AD572 bfa 3:0:2:0
Alternate
5 ULT3580-TD4 0007889582 bfa 3:0:3:0
Primary
6 ULT3580-TD4 0007889515 bfa 3:0:4:0
Primary
7 ULT3580-TD4 0007887247 bfa 3:0:5:0
Primary
ls -la /dev/IBMtape*
crw-r--r-- 1 root root 250, 3071 May 9 18:18 /dev/IBMtape
crw-rw-rw- 1 root root 250, 0 May 9 18:18 /dev/IBMtape0
crw-rw-rw- 1 root root 250, 1024 May 9 18:18 /dev/IBMtape0n
crw-rw-rw- 1 root root 250, 1 May 9 18:18 /dev/IBMtape1
crw-rw-rw- 1 root root 250, 1025 May 9 18:18 /dev/IBMtape1n
crw-rw-rw- 1 root root 250, 2 May 9 18:18 /dev/IBMtape2
crw-rw-rw- 1 root root 250, 1026 May 9 18:18 /dev/IBMtape2n
crw-rw-rw- 1 root root 250, 3 May 9 18:18 /dev/IBMtape3
crw-rw-rw- 1 root root 250, 1027 May 9 18:18 /dev/IBMtape3n
crw-rw-rw- 1 root root 250, 4 May 9 18:18 /dev/IBMtape4
crw-rw-rw- 1 root root 250, 1028 May 9 18:18 /dev/IBMtape4n
crw-rw-rw- 1 root root 250, 5 May 9 18:18 /dev/IBMtape5
crw-rw-rw- 1 root root 250, 1029 May 9 18:18 /dev/IBMtape5n
crw-rw-rw- 1 root root 250, 6 May 9 18:18 /dev/IBMtape6
crw-rw-rw- 1 root root 250, 1030 May 9 18:18 /dev/IBMtape6n
crw-rw-rw- 1 root root 250, 7 May 9 18:18 /dev/IBMtape7
crw-rw-rw- 1 root root 250, 1031 May 9 18:18 /dev/IBMtape7n
lrwxrwxrwx 1 root root 8 May 9 18:18 /dev/IBMtapeP1 -> IBMtape3
lrwxrwxrwx 1 root root 8 May 9 18:18 /dev/IBMtapeP2 -> IBMtape7
lrwxrwxrwx 1 root root 8 May 9 18:18 /dev/IBMtapeP25 -> IBMtape4
lrwxrwxrwx 1 root root 8 May 9 18:18 /dev/IBMtapeP3 -> IBMtape0
lrwxrwxrwx 1 root root 8 May 9 18:18 /dev/IBMtapeP4 -> IBMtape5
lrwxrwxrwx 1 root root 8 May 9 18:18 /dev/IBMtapeP5 -> IBMtape2
lrwxrwxrwx 1 root root 8 May 9 18:18 /dev/IBMtapeP6 -> IBMtape6
Now, with this configuration the /dev/IBMtapeP25 is a link of IBMtape4 that
is an Alternate Path!
I have tried to add the option SYSFS{primary_path}=="Primary" at the
rule's udev but doesn't works.
How fix the persistent rule with primary devices?
Thanks
Gianpaolo Silvestrini
|