Our vBulletin migration is complete.
Welcome vBulletin users! All content and user information from the Micro Focus Forums (vBulletin) site has been migrated to this site. READ MORE.

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

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

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 (1)

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
2 of 2
Last update:
‎2019-05-08 08:45
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.