LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-22-2019, 06:54 AM   #1
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Rep: Reputation: 41
Question Tape Library Issues


I have two HPe tape drives and only one of them is working.
Best I can tell for some reason the OS (RHEL 7.5) seems to have assigned them both the same ID_SERIAL and seems to be mapping both libraries to /dev/tape/by-id/scsi-20404040404040404

Has anyone seen this before? Is there a way to change the ID_SERIAL manually?


#udevadm info --query=all --name /dev/sg16
P: /devices/pci0000:20/0000:20:02.2/0000:24:00.1/host5/rport-5:0-4/target5:0:4/5:0:4:1/scsi_generic/sg16
N: sg16
S: NW_TAPE_1
S: tape/by-id/scsi-20404040404040404 <------ HERE
E: DEVLINKS=/dev/NW_TAPE_1 /dev/tape/by-id/scsi-20404040404040404 <------ HERE
E: DEVNAME=/dev/sg16
E: DEVPATH=/devices/pci0000:20/0000:20:02.2/0000:24:00.1/host5/rport-5:0-4/target5:0:4/5:0:4:1/scsi_generic/sg16
E: ID_MODEL=MSL_G3_Series
E: ID_MODEL_ENC=MSL\x20G3\x20Series\x20\x20\x20
E: ID_REVISION=7.10
E: ID_SCSI=1
E: ID_SCSI_SERIAL=DEC129015YB
E: ID_SERIAL=20404040404040404 <------ HERE
E: ID_SERIAL_SHORT=0404040404040404 <------ HERE
E: ID_TYPE=generic
E: ID_VENDOR=HP
E: ID_VENDOR_ENC=HP\x20\x20\x20\x20\x20\x20
E: MAJOR=21
E: MINOR=16
E: SUBSYSTEM=scsi_generic
E: USEC_INITIALIZED=5362809373

udevadm info --query=all --name /dev/sg16
P: /devices/pci0000:20/0000:20:02.2/0000:24:00.1/host5/rport-5:0-1/target5:0:1/5:0:1:1/scsi_generic/sg9
N: sg9
S: NW_TAPE_2
S: tape/by-id/scsi-20404040404040404 <------ HERE
E: DEVLINKS=/dev/NW_TAPE_2 /dev/tape/by-id/scsi-20404040404040404 <------ HERE
E: DEVNAME=/dev/sg9
E: DEVPATH=/devices/pci0000:20/0000:20:02.2/0000:24:00.1/host5/rport-5:0-1/target5:0:1/5:0:1:1/scsi_generic/sg9
E: ID_MODEL=MSL_G3_Series
E: ID_MODEL_ENC=MSL\x20G3\x20Series\x20\x20\x20
E: ID_REVISION=7.10
E: ID_SCSI=1
E: ID_SCSI_SERIAL=DEC1111BLA
E: ID_SERIAL=20404040404040404 <------ HERE
E: ID_SERIAL_SHORT=0404040404040404 <------ HERE
E: ID_TYPE=generic
E: ID_VENDOR=HP
E: ID_VENDOR_ENC=HP\x20\x20\x20\x20\x20\x20
E: MAJOR=21
E: MINOR=9
E: SUBSYSTEM=scsi_generic
E: USEC_INITIALIZED=19868
 
Old 05-22-2019, 07:41 AM   #2
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Original Poster
Rep: Reputation: 41
I ended up writing my own udev rule but it did not work as desired.

Mine just uses the actual Serial Number rather than the conflicting ID_SERIAL.
However the backup software still did not find the missing library. if someone knows how to fix the ID_SERIAL i would prefer to do that.



# persistent storage links: /dev/tape/{by-id,by-path}

ACTION=="remove", GOTO="persistent_storage_tape_end"

# # type 8 devices are "Medium Changers"
SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="8", IMPORT{program}="scsi_id --sg-version=3 --export --whitelisted -d $devnode", \
SYMLINK+="tape/by-id/scsi-$env{ID_SCSI_SERIAL}" <------- UPDATED HERE

SUBSYSTEM!="scsi_tape", GOTO="persistent_storage_tape_end"

KERNEL=="st*[0-9]|nst*[0-9]", ATTRS{ieee1394_id}=="?*", ENV{ID_SERIAL}="$attr{ieee1394_id}", ENV{ID_BUS}="ieee1394"
KERNEL=="st*[0-9]|nst*[0-9]", ENV{ID_SERIAL}!="?*", SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id"
KERNEL=="st*[0-9]|nst*[0-9]", ENV{ID_SERIAL}!="?*", SUBSYSTEMS=="scsi", KERNELS=="[0-9]*:*[0-9]", ENV{.BSG_DEV}="$root/bsg/$id"
KERNEL=="st*[0-9]|nst*[0-9]", ENV{ID_SERIAL}!="?*", IMPORT{program}="scsi_id --whitelisted --export --device=$env{.BSG_DEV}", ENV{ID_BUS}="scsi"
KERNEL=="st*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
KERNEL=="nst*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="tape/by-id/$env{ID_BUS}-$env{ID_SERIAL}-nst"

# by-path (parent device path)
KERNEL=="st*[0-9]|nst*[0-9]", IMPORT{builtin}="path_id"
KERNEL=="st*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="tape/by-path/$env{ID_PATH}"
KERNEL=="nst*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="tape/by-path/$env{ID_PATH}-nst"

LABEL="persistent_storage_tape_end"

Last edited by watcher69b; 05-22-2019 at 07:59 AM.
 
Old 06-11-2019, 12:08 PM   #3
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,852

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
Quote:
Originally Posted by watcher69b View Post
I ended up writing my own udev rule but it did not work as desired.

Mine just uses the actual Serial Number rather than the conflicting ID_SERIAL.
However the backup software still did not find the missing library. if someone knows how to fix the ID_SERIAL i would prefer to do that.
Would it possible to reference the ID_SCSI_SERIAL parameter in your udev rule(s)? At least those are unique.

Cheers...
 
Old 06-12-2019, 03:48 AM   #4
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Original Poster
Rep: Reputation: 41
No, I tried that and it did not work as expected.

I called HPe and had replacement libraries sent to me. The new ones all worked properly out of the box. I assume they had a bad batch of libraries in December based on the serial number sequence - all started with S/N DEC1290
 
Old 06-20-2019, 07:01 AM   #5
jaipankaj
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Rep: Reputation: Disabled
HPE LTO8 same scsi_id

Hi,

I am having the same issue with HPE libraries connected to single host.
Do you have any case ID for case logged with HPE for resolution?
It will be very helpful for reference.
 
Old 06-21-2019, 01:41 AM   #6
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by jaipankaj View Post
Hi,

I am having the same issue with HPE libraries connected to single host.
Do you have any case ID for case logged with HPE for resolution?
It will be very helpful for reference.
HPe was a joke and told me to talk to my Linux Engineer, which is me.
They swore that it had nothing to do with the library and that it was an OS issue.
If you have a warranty just tell them you are getting a robot error code 80 and to sent a replacement library.
Swapping out the library and robot was the only solution
 
1 members found this post helpful.
Old 08-06-2019, 10:21 PM   #7
jaipankaj
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Rep: Reputation: Disabled
Finally I got replacement of all 5 libraries (MSL4048) with new model MSL3040 from HPE.

Thanks for your suggestion
 
  


Reply

Tags
hpe


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tape Backups and How can i find out the Name (label) of the tape in the drive?? helptonewbie Linux - Newbie 2 10-27-2008 07:20 AM
How to backup more than one time on same tape using DLT tape? hocheetiong Linux - Newbie 3 01-30-2008 06:54 AM
bacula - How do I setup up tape daily tape changes neocontrol Linux - Software 3 01-23-2008 09:27 PM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 09:15 AM
Tape incremental backup to different tape tungaw2001 Linux - Software 0 08-13-2003 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration