Source:Enabling persistent naming for tape devices: Difference between revisions

From SEPsesam
(→‎Configuring persistent naming on Windows: - Updated as proposed by DHO.)
(Marked this version for translation)
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Copyright SEP AG en}}
<noinclude><div class="noprint"><languages />
<br />


{{Navigation_latest|release=4.4.3/4.4.3 ''Tigon''|link=[[Special:MyLanguage/SEP_sesam_Documentation#previous|Documentation archive]]}}<br />
<translate>== Overview == <!--T:3--> </translate>
==Overview==
<div class="boilerplate metadata" id="Additional resources" style="background-color: #f0f0f0; color:#636f73; border: 1px ridge #cdd3db; margin: 0.5em; padding: 0.5em; float: right; width: 35%; "><center><b>
Additional resources</b></center>
{|style="margin: auto; margin-bottom:1em; width:100%; border:0px solid grey;"
| rowspan="2" style="padding:0px 10px 0px;" | 
[[File:SEP_next.png|45px|link=Special:MyLanguage/Drives_4.4|Configuring a Loader]]
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" |
See also: [[Special:MyLanguage/Configuring_Loaders_and_Drives|Configuring a Loader]]
|}


{|style="margin: auto; margin-bottom:1em; width:100%; border:0px solid grey;"
</div></noinclude><translate><!--T:9-->
| rowspan="2" style="padding:0px 10px 0px;" |
Persistent naming or binding is an option that enforces file names for loaders and tape drives, thus making them persist across reboots of the operating system. Without this feature the SCSI addresses may be changed during reboots, especially in environments with several tape libraries attached to a server, and the operating system might mix the SCSI addresses between different loaders and library tape drives. Consequently, SEP sesam may have problems accessing devices, such as unloading incorrect drives, read/open errors, volume errors, lost connections ...  
[[File:SEP Tip.png|45px|link=Special:MyLanguage/FAQ#storage_etc|FAQ]]
 
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" |
<!--T:10-->
Check [[Special:MyLanguage/FAQ#storage_etc|all FAQ about storage, devices & media management]].
Persistent naming means using symbolic names for loaders, tape drives in autoloaders and tape libraries, as well as for single tape drives. These names stay unique during server reboots, regardless of the order in which the operating system discovers the tape hardware. For example, while ''Tape0'' is a logical name that could change during system restart, the persistent name ''Tape2147483644'' is unique and will not change.
|}


{|style="margin: auto; margin-bottom:1em; width:100%; border:0px solid grey;"
<!--T:11-->
| rowspan="2" style="padding:0px 10px 0px;" |
Configuration of persistent naming depends on the used driver. Once OS is configured for persistence naming, update SEP sesam configuration with the help of [[Special:MyLanguage/Configuring_Loaders_and_Drives#slu topology|<tt>slu topology</tt>]].</translate>
[[File:SEP Troubleshooting.png|45px|link=Special:MyLanguage/Troubleshooting_Guide|Troubleshooting Guide]]
{{note|<translate><!--T:13-->
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" |
Persistent naming is not part of SEP sesam as each hardware vendor handles it differently. If you need any assistance, consult your respective OS and hardware vendor support. The following information are only for reference and are not meant to replace the official vendor documentation.</translate>}}
Problems? Check the [[Special:MyLanguage/Troubleshooting_Guide|Troubleshooting Guide]].
|}


{|style="margin: auto; margin-bottom:1em; width:100%; border:0px solid grey;"
=={{anchor|Windows}}<translate><!--T:14-->
| rowspan="2" style="padding:0px 10px 0px;" |
Configuring persistent naming on Windows==  


[[File:icon_archived_docs.png|45px|link=Special:MyLanguage/SEP_sesam_Documentation#previous|Documentation archive]]
<!--T:15-->
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" |
To enable persistent bindings of symbolic tape and library names, you have to modify the registry key. Make sure that you have a valid SEP sesam and operating system backup before proceeding!</translate>
If you are using an older SEP sesam version, refer to [[Special:MyLanguage/Archive:How_to_set_up_a_loader|previous document version]].
;{{anchor|standard}}<translate><!--T:16-->
|}</div></noinclude>
''Standard Windows drivers'': For standard Windows drivers, proceed as follows:</translate>
Persistent naming or binding is an option that enforces file names for loaders and tape drives, thus making them persist across reboots of the operating system. Without this feature the SCSI addresses may be changed during reboots, especially in environments with several tape libraries attached to a server, and the operating system might mix the SCSI addresses between different loaders and library tape drives. Consequently, SEP sesam may have problems accessing devices, such as unloading incorrect drives, read/open errors, volume errors, lost connections ...  
<ol><li><translate><!--T:17-->
Open ''Registry Editor'': use '''Start''' and type ''regedit''.</translate></li>
<li><translate><!--T:18-->
Locate and select the following registry subkey:</translate></li>
<pre> HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Tape</pre>
<li><translate><!--T:19-->
From the '''Edit''' menu, select '''New''' and then '''DWORD Value'''.</translate></li>
<li><translate><!--T:20-->
Type ''Persistence'' and then press ENTER.</translate></li>
<li><translate><!--T:21-->
Right-click the '''Persistence''' registry entry, then click '''Modify'''.</translate></li>
<li><translate><!--T:22-->
Type ''1'' in the ''Value data box'', and then click '''OK'''.</translate></li>
<li><translate><!--T:23-->
Close ''Registry Editor'' and restart the computer.</translate></li></ol>
 
<translate><!--T:24-->
When you set the ''Persistence'' registry entry to ''1'', symbolic names become persistent. For example, if your tape drive has the name ''\\.\\tape1'', this name is reserved for use by that device even after your server reboots.</translate>
 
;{{anchor|IBM}}<translate><!--T:25-->
''IBM drivers'':For IBM drivers, proceed as follows:</translate>
<ol><li><translate><!--T:26-->
Go to</translate>
<pre> HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ibmtp2k''<x>'' </pre>
<translate><!--T:27-->
where value ''<x>'' in <tt>ibmtp2k</tt> specifies the Windows Server version, for example, <tt>ibmtp2k8</tt> for Windows Server 2008, <tt>ibmtp2k12</tt> for Windows 2012, and <tt>ibmtp2k16</tt> for Windows 2016, respectively.</translate></li>
<li><translate><!--T:28-->
Add <tt>DWORD:PersistentNaming=1</tt></translate>. </li>
<li><translate><!--T:29-->
Close ''Registry Editor'' and ensure that <tt>AutoRun</tt> is set to 0 for the driver prior to rebooting; for details, see official Microsoft documentation, e.g.,  [https://support.microsoft.com/en-us/help/842411/windows-server-2003-cannot-perform-backup-jobs-to-tape-devices-on-a-st Windows Server 2003 cannot perform backup jobs to tape devices on a storage area network] or refer to the article [https://www.lifewire.com/disable-autorun-on-a-pc-153344 Disable Autorun/Autoplay].</translate></li>
<li><translate><!--T:30-->
Restart the computer.</translate></li></ol>
 
<translate><!--T:31-->
For more details, see IBM article [http://www-01.ibm.com/support/docview.wss?uid=swg21664260 Configuring drives with persistent naming with IBM devices on Windows].</translate>
 
;{{anchor|HP_LTO}}<translate><!--T:32-->
''HP LTO drivers'':For HP LTO drivers, follow the procedure as provided by [https://www.data-protector.org/wordpress/2013/05/persistent-binding-hp-lto-tape-drives-windows/ data-protector.org]:</translate>
<ol><li><translate><!--T:33-->
Make sure that you have installed the required HP tape drivers.</translate></li>
<li><translate><!--T:34-->
Copy the following code and insert it into text editor, then save the content as <tt>.reg</tt> file.</translate></li>
*<translate><!--T:35-->
Tape drives:</translate>
 
<pre>Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hplto]
"AutoRun"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Tape]
"Persistence"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NtmsSvc]
"Start"=dword:00000004</pre>
<translate><!--T:36-->
*Changer:</translate>
If you have more than one medium changer include the following two lines as well:
<pre>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MChgr]
"Persistence"=dword:00000001</pre>
<li><translate><!--T:37-->
Execute the <tt>.reg</tt> file and reboot the Windows system.</translate></li></ol>
 
=={{anchor|Linux}}<translate><!--T:38-->
Configuring persistent naming on Linux==
 
<!--T:39-->
Device persistence on Linux is based on preconfigured <tt>udev</tt> rules. These rules create aliases in the device filesystem in <tt>/dev/tape</tt>.


Persistent naming means using symbolic names for loaders, tape drives in autoloaders and tape libraries, as well as for single tape drives. These names stay unique during server reboots, regardless of the order in which the operating system discovers the tape hardware. For example, while ''Tape0'' is a logical name that could change during system restart, the persistent name ''Tape2147483644'' is unique and will not change.
<!--T:43-->
Once the persistent naming is configured, you have to identify the WWN of the device and its name. This is because after each reboot on Linux, if you have, for example, two tape drives: <tt>/dev/nst0</tt> (typically, the automatically assigned name for the first tape drive on Linux) and <tt>/dev/nst1</tt> (the second tape drive), they may be switched around. The device name of a loader may also be changed after reboot. For example, a loader is currently recognized as <tt>/dev/sg9</tt>, but after reboot its name is changed to <tt>/dev/sg6</tt>. Changing the device name(s) after each reboot makes it impossible for SEP sesam to recognize the devices without adjustment, causing automated backup processing to fail.


Configuration of persistent naming depends on the used driver.
<!--T:48-->
{{note|Persistent naming is not part of SEP sesam as each hardware vendor handles it differently. If you need any assistance, consult your respective OS and hardware vendor support. The following information are only for reference and are not meant to replace the official vendor documentation.}}
To correctly identify the persistent names of devices on Linux, use the <tt>slu scan</tt> command and then the <tt>/dev/tape/by-id</tt>, as shown in the example below.


====Configuring persistent naming on Windows====
<!--T:44-->
To enable persistent bindings of symbolic tape and library names, you have to modify the registry key. Make sure that you have a valid SEP sesam and operating system backup before proceeding!
For example, the <tt>slu scan</tt> output is as follows:</translate>
;Standard Windows drivers:For standard Windows drivers, proceed as follows:
'''ID=9:0:9:0    Tape:   STK      T10000B          0105 (/dev/nst4)'''
<ol><li>Open ''Registry Editor'': use '''Start''' and type ''regedit''.
ID=9:0:10:0  Tape:   STK      T10000B          0105 (/dev/nst5)
<li>Locate and select the following registry subkey:</li>
  ID=9:0:11:0  Tape:    STK      T10000B          0105 (/dev/nst6)
  HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Tape
ID=9:0:12:0  Tape:    STK      T10000B          0105 (/dev/nst7)
<li>From the '''Edit''' menu, select '''New''' and then '''DWORD Value'''.</li>
ID=9:0:0:0    Loader:  STK      L700            0105 (/dev/sg17)
<li>Type ''Persistence'' and then press ENTER.</li>
'''ID=9:0:8:0    Loader:  STK      L80              0105 (/dev/sg18)'''  
<li>Right-click the '''Persistence''' registry entry, then click '''Modify'''.</li>
<li>Type ''1'' in the ''Value data box'', and then click '''OK'''.</li>
<li>Close ''Registry Editor'' and restart the computer.</li></ol>


When you set the ''Persistence'' registry entry to ''1'', symbolic names become persistent. For example, if your tape drive has the name ''\\.\\tape1'', this name is reserved for use by that device even after your server reboots.
<translate><!--T:45-->
The output of <tt>ls -l /dev/tape/by-id/</tt> shows the following:</translate>
total 0
lrwxrwxrwx 1 root root  9 Dec 14 11:17 scsi-350223344ab000900 -> ../../st4
'''lrwxrwxrwx 1 root root 10 Dec 14 11:17 scsi-350223344ab000900-nst -> ../../nst4'''
lrwxrwxrwx 1 root root  9 Dec 14 11:17 scsi-350223344ab001000 -> ../../st5
lrwxrwxrwx 1 root root 10 Dec 14 11:17 scsi-350223344ab001000-nst -> ../../nst5
lrwxrwxrwx 1 root root  9 Dec 14 11:17 scsi-350223344ab001100 -> ../../st6
lrwxrwxrwx 1 root root 10 Dec 14 11:17 scsi-350223344ab001100-nst -> ../../nst6
lrwxrwxrwx 1 root root  9 Dec 14 11:17 scsi-350223344ab001200 -> ../../st7
lrwxrwxrwx 1 root root 10 Dec 14 11:17 scsi-350223344ab001200-nst -> ../../nst7
lrwxrwxrwx 1 root root 10 Dec 14 11:17 scsi-SSTK_L700_XYZZY_A -> ../../sg17
'''lrwxrwxrwx 1 root root 10 Dec 14 11:17 scsi-SSTK_L80_XYZZY_B -> ../../sg18'''


;IBM drivers:For IBM drivers, proceed as follows:
<translate><!--T:46-->
<ol><li>Go to</li>
In our example, by using <tt>/dev/tape/by-id/scsi-350223344ab000900-nst</tt> instead of <tt>/dev/nst4</tt> for the particular drive, the device name will automatically use the correct '''''nst''''' device even after reboot. The same is true for loader names, for example, <tt>/dev/tape/by-id/scsi-SSTK_L80_XYZZY_B</tt> should be used instead of <tt>/dev/sg18</tt>.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ibmtp2k''<x>'' 
{{note|Make sure that you use the non-rewind device name '''''nst''''', in the above example scsi-350223344ab000900-nst, and not the auto rewind version '''''st'''''. If you specify auto rewind version '''''st''''', a rewind command will be issued to the tape drive and the tape will be positioned at the beginning at the tape. When accessing a non-rewind tape device '''''nst''''', a rewind command is not issued.}}
where the value ''<x>'' in <tt>ibmtp2k</tt> specifies the Windows Server version, for example <tt>ibmtp2k8</tt> for Windows Server 2008, <tt>ibmtp2k12</tt> for Windows 2012, and <tt>ibmtp2k16</tt> for Windows 2016, respectively.
<li>Add <tt>DWORD:PersistentNaming=1</tt>.  
<li>Close ''Registry Editor'' and ensure that <tt>AutoRun</tt> is set to 0 for the driver prior to rebooting; for details, see official Microsoft documentation, e.g., [https://support.microsoft.com/en-us/help/842411/windows-server-2003-cannot-perform-backup-jobs-to-tape-devices-on-a-st Windows Server 2003 cannot perform backup jobs to tape devices on a storage area network] or refer to the article [https://www.lifewire.com/disable-autorun-on-a-pc-153344 Disable Autorun/Autoplay].</li>
<li>Restart the computer.</li></ol>
For more details, see IBM article [http://www-01.ibm.com/support/docview.wss?uid=swg21664260 Configuring drives with persistent naming with IBM devices on Windows].


;HP LTO drivers:For HP LTO drivers, follow the procedure as provided by [https://www.data-protector.org/wordpress/2013/05/persistent-binding-hp-lto-tape-drives-windows/ data-protector.org]:
<!--T:47-->
For more details, refer to your hardware manufacturer documentation; for example, IBM article [http://www-01.ibm.com/support/docview.wss?uid=swg21664258 Configuring drives with persistent naming for IBM devices on Linux].</translate>


<ol><li>Make sure that you have installed the required HP tape drivers.</li>
<translate>==What is next?== <!--T:40-->
<li>Copy the following code and insert it into text editor, then save the content as <tt>.reg</tt> file.</li>
*Tape drives:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hplto]
"AutoRun"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Tape]
"Persistence"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NtmsSvc]
"Start"=dword:00000004
*Changer:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MChgr]
"Persistence"=dword:00000001
<li>Execute the <tt>.reg</tt> file and restart the system.</li></ol>
Once OS is configured for persistence naming, update SEP sesam configuration with the help of <tt>slu topology</tt>.


====Configuring persistent naming on Linux====
<!--T:41-->
Device persistence on Linux is based on preconfigured <tt>udev</tt> rules. These rules create aliases in the device filesystem in <tt>/dev/tape</tt>. The name of the alias is not fixed, but it will remain consistent across reboots on different hosts. For more details, refer to your hardware manufacturer documentation; for example, IBM article [http://www-01.ibm.com/support/docview.wss?uid=swg21664258 Configuring drives with persistent naming for IBM devices on Linux].  
Enabling persistent naming is only one step in a sequence for (re-)configuring storage hardware. For full procedure, including using <tt>slu topology</tt> for identifying the name of the tape hardware and re-configuring loaders and drives, refer to [[Special:MyLanguage/Configuring_Loaders_and_Drives|Configuring Loaders and Drives]].</translate>


<noinclude>==See also==
<noinclude><div class="noprint">{{Copyright}}</div></noinclude>
[[Special:MyLanguage/Configuring_Loaders_and_Drives|Configuring a Loader]]</noinclude>

Latest revision as of 14:06, 12 September 2023

Persistent naming or binding is an option that enforces file names for loaders and tape drives, thus making them persist across reboots of the operating system. Without this feature the SCSI addresses may be changed during reboots, especially in environments with several tape libraries attached to a server, and the operating system might mix the SCSI addresses between different loaders and library tape drives. Consequently, SEP sesam may have problems accessing devices, such as unloading incorrect drives, read/open errors, volume errors, lost connections ...

Persistent naming means using symbolic names for loaders, tape drives in autoloaders and tape libraries, as well as for single tape drives. These names stay unique during server reboots, regardless of the order in which the operating system discovers the tape hardware. For example, while Tape0 is a logical name that could change during system restart, the persistent name Tape2147483644 is unique and will not change.

Configuration of persistent naming depends on the used driver. Once OS is configured for persistence naming, update SEP sesam configuration with the help of slu topology.

Information sign.png Note
Persistent naming is not part of SEP sesam as each hardware vendor handles it differently. If you need any assistance, consult your respective OS and hardware vendor support. The following information are only for reference and are not meant to replace the official vendor documentation.

Configuring persistent naming on Windows

To enable persistent bindings of symbolic tape and library names, you have to modify the registry key. Make sure that you have a valid SEP sesam and operating system backup before proceeding!

Standard Windows drivers
For standard Windows drivers, proceed as follows:
  1. Open Registry Editor: use Start and type regedit.
  2. Locate and select the following registry subkey:
  3.  HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Tape
  4. From the Edit menu, select New and then DWORD Value.
  5. Type Persistence and then press ENTER.
  6. Right-click the Persistence registry entry, then click Modify.
  7. Type 1 in the Value data box, and then click OK.
  8. Close Registry Editor and restart the computer.

When you set the Persistence registry entry to 1, symbolic names become persistent. For example, if your tape drive has the name \\.\\tape1, this name is reserved for use by that device even after your server reboots.

IBM drivers
For IBM drivers, proceed as follows:
  1. Go to
     HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ibmtp2k''<x>'' 
    where value <x> in ibmtp2k specifies the Windows Server version, for example, ibmtp2k8 for Windows Server 2008, ibmtp2k12 for Windows 2012, and ibmtp2k16 for Windows 2016, respectively.
  2. Add DWORD:PersistentNaming=1.
  3. Close Registry Editor and ensure that AutoRun is set to 0 for the driver prior to rebooting; for details, see official Microsoft documentation, e.g., Windows Server 2003 cannot perform backup jobs to tape devices on a storage area network or refer to the article Disable Autorun/Autoplay.
  4. Restart the computer.

For more details, see IBM article Configuring drives with persistent naming with IBM devices on Windows.

HP LTO drivers
For HP LTO drivers, follow the procedure as provided by data-protector.org:
  1. Make sure that you have installed the required HP tape drivers.
  2. Copy the following code and insert it into text editor, then save the content as .reg file.
    • Tape drives:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hplto]
    "AutoRun"=dword:00000000
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Tape]
    "Persistence"=dword:00000001
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NtmsSvc]
    "Start"=dword:00000004
    • Changer:

    If you have more than one medium changer include the following two lines as well:

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MChgr]
    "Persistence"=dword:00000001
  3. Execute the .reg file and reboot the Windows system.

Configuring persistent naming on Linux

Device persistence on Linux is based on preconfigured udev rules. These rules create aliases in the device filesystem in /dev/tape.

Once the persistent naming is configured, you have to identify the WWN of the device and its name. This is because after each reboot on Linux, if you have, for example, two tape drives: /dev/nst0 (typically, the automatically assigned name for the first tape drive on Linux) and /dev/nst1 (the second tape drive), they may be switched around. The device name of a loader may also be changed after reboot. For example, a loader is currently recognized as /dev/sg9, but after reboot its name is changed to /dev/sg6. Changing the device name(s) after each reboot makes it impossible for SEP sesam to recognize the devices without adjustment, causing automated backup processing to fail.

To correctly identify the persistent names of devices on Linux, use the slu scan command and then the /dev/tape/by-id, as shown in the example below.

For example, the slu scan output is as follows:

ID=9:0:9:0    Tape:    STK      T10000B          0105 (/dev/nst4)
ID=9:0:10:0   Tape:    STK      T10000B          0105 (/dev/nst5)
ID=9:0:11:0   Tape:    STK      T10000B          0105 (/dev/nst6)
ID=9:0:12:0   Tape:    STK      T10000B          0105 (/dev/nst7)
ID=9:0:0:0    Loader:  STK      L700             0105 (/dev/sg17)
ID=9:0:8:0    Loader:  STK      L80              0105 (/dev/sg18) 

The output of ls -l /dev/tape/by-id/ shows the following:

total 0
lrwxrwxrwx 1 root root  9 Dec 14 11:17 scsi-350223344ab000900 -> ../../st4
lrwxrwxrwx 1 root root 10 Dec 14 11:17 scsi-350223344ab000900-nst -> ../../nst4
lrwxrwxrwx 1 root root  9 Dec 14 11:17 scsi-350223344ab001000 -> ../../st5
lrwxrwxrwx 1 root root 10 Dec 14 11:17 scsi-350223344ab001000-nst -> ../../nst5
lrwxrwxrwx 1 root root  9 Dec 14 11:17 scsi-350223344ab001100 -> ../../st6
lrwxrwxrwx 1 root root 10 Dec 14 11:17 scsi-350223344ab001100-nst -> ../../nst6
lrwxrwxrwx 1 root root  9 Dec 14 11:17 scsi-350223344ab001200 -> ../../st7
lrwxrwxrwx 1 root root 10 Dec 14 11:17 scsi-350223344ab001200-nst -> ../../nst7
lrwxrwxrwx 1 root root 10 Dec 14 11:17 scsi-SSTK_L700_XYZZY_A -> ../../sg17
lrwxrwxrwx 1 root root 10 Dec 14 11:17 scsi-SSTK_L80_XYZZY_B -> ../../sg18

In our example, by using /dev/tape/by-id/scsi-350223344ab000900-nst instead of /dev/nst4 for the particular drive, the device name will automatically use the correct nst device even after reboot. The same is true for loader names, for example, /dev/tape/by-id/scsi-SSTK_L80_XYZZY_B should be used instead of /dev/sg18.

Information sign.png Note
Make sure that you use the non-rewind device name nst, in the above example scsi-350223344ab000900-nst, and not the auto rewind version st. If you specify auto rewind version st, a rewind command will be issued to the tape drive and the tape will be positioned at the beginning at the tape. When accessing a non-rewind tape device nst, a rewind command is not issued.

For more details, refer to your hardware manufacturer documentation; for example, IBM article Configuring drives with persistent naming for IBM devices on Linux.

What is next?

Enabling persistent naming is only one step in a sequence for (re-)configuring storage hardware. For full procedure, including using slu topology for identifying the name of the tape hardware and re-configuring loaders and drives, refer to Configuring Loaders and Drives.

Copyright © SEP AG 1999-2024. All rights reserved.
Any form of reproduction of the contents or parts of this manual is allowed only with the express written permission from SEP AG. When compiling and designing user documentation SEP AG uses great diligence and attempts to deliver accurate and correct information. However, SEP AG cannot issue a guarantee for the contents of this manual.