Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Micro Focus Expert
Micro Focus Expert
595 views

(DP) Support Tip: How the data device SCSI address is created

Topic
How is the data device SCSI address for Tape Devices created on Windows system ?

Ex.) Tape1:0:1:0C


Response
The data device SCSI address is formed by Scsi Bus number , Target Id , Logical Unit Id and Drive Index .

Those values can be seen in Windows registry HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi .


Ex.)
HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi\Scsi Port 3\Scsi Bus 0\Target Id 0\Logical Unit Id 0
DeviceName : Changer0

The data device SCSI address for this device will be formed as Changer0:0:0:0 .

HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi\Scsi Port 3\Scsi Bus 0\Target Id 1\Logical Unit Id 0
DeviceName : Tape1

The data device SCSI address for this device will be formed as Tape1:0:1:0C .

"Tape1" means Drive Index is "1" .

9 Replies
Respected Contributor.. MFranca86 Respected Contributor..
Respected Contributor..

Re: (DP) Support Tip: How the data device SCSI address is created

Thanks for the tip.
Can you tell me why the addresses are changed every time the MA is restarted?

Sometimes they are re-created with the same address as other MA occurring duplicate paths.

0 Likes
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: (DP) Support Tip: How the data device SCSI address is created

Hi @MFranca86,

The change of the data device on the Media Agent happens in SAN environments due to the nature how Windows discovers and enumerates devices along the SCSI bus. If you have HP/HPE tape drivers installed, you might use the following addition to Windows registry to have persistent devices across server reboots.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Tape]
"Persistence"=dword:00000001

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\MChgr]
"Persistence"=dword:00000001

This works well and is fully supported.

Regards,
Sebastian Koehler

---
Please use the Like button below, if you find this post useful.
Respected Contributor.. MFranca86 Respected Contributor..
Respected Contributor..

Re: (DP) Support Tip: How the data device SCSI address is created

Thanks, I already made the changes in MA.

0 Likes
Respected Contributor.. MFranca86 Respected Contributor..
Respected Contributor..

Re: (DP) Support Tip: How the data device SCSI address is created

Didn't work.

After restart my MA, all my SCSI Address has been changed.

0 Likes
KenKrubsack Regular Contributor.
Regular Contributor.

Re: (DP) Support Tip: How the data device SCSI address is created

MFranca86,

Are you in a SAN environment (meaning, is the tape unit SAN attached) or is this a locally attached device?

Ken

0 Likes
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: (DP) Support Tip: How the data device SCSI address is created

Hi @MFranca86,

After restart the device they will change once (to the long persistent format) but will never change again.

Regards,
Sebastian Koehler

---
Please use the Like button below, if you find this post useful.
0 Likes
Respected Contributor.. MFranca86 Respected Contributor..
Respected Contributor..

Re: (DP) Support Tip: How the data device SCSI address is created

OK,
So that's it, I saw that the new addresses are now quite long.

@KenKrubsack  it's a SAN Environment.

 

0 Likes
Highlighted
Knowledge Partner Knowledge Partner
Knowledge Partner

Re: (DP) Support Tip: How the data device SCSI address is created

Hi @MFranca86,

So you're all set now and device persistence is in place. You will notice the difference after the next reboot.

Regards,
Sebastian Koehler

---
Please use the Like button below, if you find this post useful.
KenKrubsack Regular Contributor.
Regular Contributor.

Re: (DP) Support Tip: How the data device SCSI address is created

MFranca86,

Yeah, once you go persistent, the addresses go to what is called a two's-complement (basically a negative number).

The other thing I always did was to go into my media servers (the ones that actually talked to the tape drives) and locked down which LUNs went to which drives.  I did it with Emulex HBAs - never messed with QLogic HBAs.

Once you have these locked down on ALL of your media servers, this should help.

I also added this registry hack on the media servers:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hplto]
"AutoRun"=dword:00000000

which kept some of the startup scans from running and possibly changing those IDs.

Ken

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.