(DP) Support Tip: The use of "/dev/tape/by-id" with /opt/omni/.paths file is supported

2 Likes
over 2 years ago

Issue
Hardware path of tape device might be changed by OS reboot (Linux) .
To adapt to such a situation , DP provides "Automatically discover changed SCSI address" option .
However, it sometimes doesn't work as expected .

Workaround
Please consider to use "/dev/tape/by-id" with /opt/omni/.paths file .
It's supported .(QCCR2A52413)

[Steps]
1. Check the path by devbra command

# /opt/omni/lbin/devbra -dev

ex.)
Exch HP:MSL G3 Series Path: "/dev/sg4" SN: "35195F6F88"
Description: HP StorageWorks MSL 2024 G3 Series
Revision: EL31 Flags: 0x0006 Slots: 48 Drives: 4
Drive(s) SN:
"35195F6F69"
"35195F6F6B"
"35195F6F6C"
"35195F6F6D"

Tape HP:Ultrium 6-SCSI Path: "/dev/nst4" SN: "35195F6F6D"
Description: HP LTO6 Drive
Revision: ED61 Device type: lto [13] Flags: 0x0001

Tape HP:Ultrium 6-SCSI Path: "/dev/nst3" SN: "35195F6F6B"
Description: HP LTO6 Drive
Revision: ED61 Device type: lto [13] Flags: 0x0001

Tape HP:Ultrium 6-SCSI Path: "/dev/nst2" SN: "35195F6F6C"
Description: HP LTO6 Drive
Revision: ED61 Device type: lto [13] Flags: 0x0001

Tape HP:Ultrium 6-SCSI Path: "/dev/nst1" SN: "35195F6F69"
Description: HP LTO6 Drive
Revision: ED61 Device type: lto [13] Flags: 0x0001


2. Confirm the path under /dev/tape/by-id

ex.)
# ls -al /dev/tape/by-id
drwxr-xr-x. 2 root root 280 Apr 16 18:09 .
drwxr-xr-x. 4 root root 80 Apr 16 18:09 ..
lrwxrwxrwx. 1 root root 9 Apr 16 18:09 scsi-35001438024a3452e -> ../../sg4
lrwxrwxrwx. 1 root root 9 Apr 16 18:09 scsi-35001438024a3458d -> ../../st1
lrwxrwxrwx. 1 root root 10 Apr 16 18:09 scsi-35001438024a3458d-nst -> ../../nst1
lrwxrwxrwx. 1 root root 9 Apr 16 18:09 scsi-35001438024a34592 -> ../../st3
lrwxrwxrwx. 1 root root 10 Apr 16 18:09 scsi-35001438024a34592-nst -> ../../nst3
lrwxrwxrwx. 1 root root 9 Apr 16 18:09 scsi-35001438024a34597 -> ../../st2
lrwxrwxrwx. 1 root root 10 Apr 16 18:09 scsi-35001438024a34597-nst -> ../../nst2
lrwxrwxrwx. 1 root root 9 Apr 16 18:09 scsi-35001438024a3459c -> ../../st4
lrwxrwxrwx. 1 root root 10 Apr 16 18:09 scsi-35001438024a3459c-nst -> ../../nst4


3. Create /opt/omni/.paths file with the path of /dev/tape/by-id

Note : we should not add the path of "st" because we have to use "no rewind" device ,"nst"

ex.) contents of /opt/omni/.paths file
/dev/tape/by-id/scsi-35001438024a3452e
/dev/tape/by-id/scsi-35001438024a3458d-nst
/dev/tape/by-id/scsi-35001438024a34592-nst
/dev/tape/by-id/scsi-35001438024a34597-nst
/dev/tape/by-id/scsi-35001438024a3459c-nst


4. Now devbra can find the path of /dev/tape/by-id

ex.)
# /opt/omni/lbin/devbra -dev

Tape HP:Ultrium 6-SCSI Path: "/dev/tape/by-id/scsi-35001438024a3459c-nst" SN: "35195F6F6D"
Description: HP LTO6 Drive
Revision: ED61 Device type: lto [13] Flags: 0x0001

Tape HP:Ultrium 6-SCSI Path: "/dev/tape/by-id/scsi-35001438024a34597-nst" SN: "35195F6F6C"
Description: HP LTO6 Drive
Revision: ED61 Device type: lto [13] Flags: 0x0001

Tape HP:Ultrium 6-SCSI Path: "/dev/tape/by-id/scsi-35001438024a34592-nst" SN: "35195F6F6B"
Description: HP LTO6 Drive
Revision: ED61 Device type: lto [13] Flags: 0x0001

Tape HP:Ultrium 6-SCSI Path: "/dev/tape/by-id/scsi-35001438024a3458d-nst" SN: "35195F6F69"
Description: HP LTO6 Drive
Revision: ED61 Device type: lto [13] Flags: 0x0001

Exch HP:MSL G3 Series Path: "/dev/tape/by-id/scsi-35001438024a3452e" SN: "35195F6F88"
Description: HP StorageWorks MSL 2024 G3 Series
Revision: EL31 Flags: 0x0006 Slots: 48 Drives: 4
Drive(s) SN:
"35195F6F69"
"35195F6F6B"
"35195F6F6C"
"35195F6F6D"

Exch HP:MSL G3 Series Path: "/dev/sg4" SN: "35195F6F88"
Description: HP StorageWorks MSL 2024 G3 Series
Revision: EL31 Flags: 0x0006 Slots: 48 Drives: 4
Drive(s) SN:
"35195F6F69"
"35195F6F6B"
"35195F6F6C"
"35195F6F6D"

Tape HP:Ultrium 6-SCSI Path: "/dev/nst4" SN: "35195F6F6D"
Description: HP LTO6 Drive
Revision: ED61 Device type: lto [13] Flags: 0x0001

Tape HP:Ultrium 6-SCSI Path: "/dev/nst3" SN: "35195F6F6B"
Description: HP LTO6 Drive
Revision: ED61 Device type: lto [13] Flags: 0x0001

Tape HP:Ultrium 6-SCSI Path: "/dev/nst2" SN: "35195F6F6C"
Description: HP LTO6 Drive
Revision: ED61 Device type: lto [13] Flags: 0x0001

Tape HP:Ultrium 6-SCSI Path: "/dev/nst1" SN: "35195F6F69"
Description: HP LTO6 Drive
Revision: ED61 Device type: lto [13] Flags: 0x0001

Labels:

Support Tip
Comment List
Anonymous
Related Discussions
Recommended