Need help on a DAT72 drive on a linux system. I have a USB version

I am using Linux Fedora 23 and I have a CentOS 7 also.   I need to hook up a DAT72 drive to read old data from one of our old systems that I wan to take off line.  At the moment it is flashing "Clean Tape", and I have some cleaning ordered.

INFO:
SCSI 2 tape drive:
sudo mt -f /dev/st0 status

File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
 DR_OPEN IM_REP_EN

lsusb
Bus 001 Device 003: ID 03f0:0125 Hewlett-Packard DAT72 Tape

Regards,
Jason ArnoldSenior SpecialistAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dr. KlahnPrincipal Software EngineerCommented:
Sounds like you're on the right path so far.  I don't see an issue or a question there that we can help you with at this stage.
0
Jason ArnoldSenior SpecialistAuthor Commented:
Thanks,  

I am still waiting on the tapes I hope the tapes work.  But in the long run we are switching to LTO6.  I ported our main application from Hpunix 10.2 to a linux kernel 3.1 version.
0
Jason ArnoldSenior SpecialistAuthor Commented:
I put the cleaning tape in and the clean light did go away.
However, when I put a dds3 tape in it started blinking again as in needs to be cleaned.

I am putting the Clean tape again and see if I can get some type of information.
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Jason ArnoldSenior SpecialistAuthor Commented:
us 001 Device 004: ID 03f0:0125 Hewlett-Packard DAT72 Tape
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x03f0 Hewlett-Packard
  idProduct          0x0125 DAT72 Tape
  bcdDevice           30.30
  iManufacturer           1 Hewlett Packard
  iProduct                2 DAT72 USB Tape
  iSerial                 3 4855310713563841
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          5 High Speed
    bmAttributes         0x80
      (Bus Powered)
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              6 SCSI Over USB????????
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0000
  (Bus Powered)


Here is more info.
0
Jason ArnoldSenior SpecialistAuthor Commented:
I have the cleaning tapes and it seems to work as in the clean light does go away, but after I put in another tape I get the Green light for "tape" but right after it wants a cleaning tape.

DMESG:
[6391605.768626] usb 1-5.2: USB disconnect, device number 3
[6391614.048017] usb 1-5.2: new high-speed USB device number 4 using ehci-pci
[6391614.126941] usb 1-5.2: New USB device found, idVendor=03f0, idProduct=0125
[6391614.126944] usb 1-5.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[6391614.126946] usb 1-5.2: Product: DAT72 USB Tape
[6391614.126948] usb 1-5.2: Manufacturer: Hewlett Packard
[6391614.126949] usb 1-5.2: SerialNumber: 4855310713563841
[6391614.128452] usb-storage 1-5.2:1.0: USB Mass Storage device detected
[6391614.128588] scsi host3: usb-storage 1-5.2:1.0
[6391615.148473] scsi 3:0:0:0: Sequential-Access HP       C7438A           ZU5A PQ: 0 ANSI: 3
[6391615.149958] st 3:0:0:0: Attached scsi tape st0
[6391615.149961] st 3:0:0:0: st0: try direct i/o: yes (alignment 512 B)
[6391615.150187] st 3:0:0:0: Attached scsi generic sg4 type 1
[6393659.355572] st 3:0:0:0: [st0] Block limits 1 - 16777215 bytes.
[6568844.168035] usb 1-5.2: USB disconnect, device number 4
[6568846.296018] usb 1-5.2: new high-speed USB device number 5 using ehci-pci
[6568846.374879] usb 1-5.2: New USB device found, idVendor=03f0, idProduct=0125
[6568846.374882] usb 1-5.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[6568846.374884] usb 1-5.2: Product: DAT72 USB Tape
[6568846.374885] usb 1-5.2: Manufacturer: Hewlett Packard
[6568846.374887] usb 1-5.2: SerialNumber: 4855310713563841
[6568846.375807] usb-storage 1-5.2:1.0: USB Mass Storage device detected
[6568846.376083] scsi host3: usb-storage 1-5.2:1.0
[6568847.404544] scsi 3:0:0:0: Sequential-Access HP       C7438A           ZU5A PQ: 0 ANSI: 3
[6568847.405855] st 3:0:0:0: Attached scsi tape st0
[6568847.405858] st 3:0:0:0: st0: try direct i/o: yes (alignment 512 B)
[6568847.406070] st 3:0:0:0: Attached scsi generic sg4 type 1

I know eject works from command line, but it seems some type of configuration needs to be done.

Regards,
0
TapeDudeCommented:
What generation DDS is the tape you're trying to read? Do you know what drive wrote to it?
0
Jason ArnoldSenior SpecialistAuthor Commented:
We have DDR3 & 4 which should be compatible for DAT72.
0
joolsSenior Systems AdministratorCommented:
The light starts flashing because it doesnt like the tape, Ive not used tape backup for several years but that was a common issue. It was more common when people used exabyte tape drives.

https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-lpg50457

Can you get hold of an old DDS3 or DDS4 tape drive? Do you know if that is what the tapes were written on?
0
Jason ArnoldSenior SpecialistAuthor Commented:
I have an older one but i need recommendations on the scsi board and connections to linux.
0
TapeDudeCommented:
Depending on what SCSI board you're looking to install, most modern versions of linux will plug and play with it. However, depending on the kernel version and distribution, you may have to re-compile the kernel with full SCSI tape support.

http://www.whoopis.com/howtos/tapebackup.html

If you're not happy doing this on a working server, I recommend putting the HBA into another machine and then booting from a stand-alone linux boot disc (like Knoppix) and doing the work there.
0
joolsSenior Systems AdministratorCommented:
Anything Adaptec worked for me but I mostly used this of HPUX/Sequent/IBM proprietary kit and on Linux 10+ years ago, with that in mind take the following as old info...

The tape drive you have will determine the SCSI card used, most drives I saw were SE SCSI, some were Wide SCSI but you need to look at the drive itself.

Dont forget to make sure its terminated!
0
Jason ArnoldSenior SpecialistAuthor Commented:
Hewlett Packard C5717A SureStore DAT40x6 4mm DDS-4 DAT 20/40GB External LVD SCSI

This is the one I have and I need a back-up and so I think I will purchase it.

I am sorry for the basic questions, but I am real close on shutting down the old J6000 and replacing it with a new Dell CentOS 7 server.
If I can some how read these old tapes I am golden.

Regards,
0
TapeDudeCommented:
LVD is low-voltage differential SCSI, but the drive will work with any wide (68-pin) SE or LVD SCSI HBA. Obviously, it'll transfer data faster with an LVD HBA with an LVD terminator, but if you only have something like an Adaptec AHA2940W you can still get it to work, using a wide SE terminator. In theory you could even get it to work using narrow SCSI with the right 40/68 adapter cable but I don't recommend it.

What HBA do you have, BTW?
0
joolsSenior Systems AdministratorCommented:
so pop in an LVD card, connect the tape drive and reboot!

You should see a new tape drive, cant remember the device files but if that is an autoloader you can use something like mtx to move the tapes about.

bobs yer uncle etc etc. then you have the fun of getting the info off the tape. any ideas how it was written?
0
joolsSenior Systems AdministratorCommented:
dont forget to make sure the pins are straight!!! :-)

I'm starting to remember why I hate tapes and SCSI now!
0
Jason ArnoldSenior SpecialistAuthor Commented:
I found that the drive may have been faulty and so I sent it out for repairs.

The drive would not load any tape DD3, DD4 or DAT72 tapes.
0
joolsSenior Systems AdministratorCommented:
yeah, once it gets the tape cleaning thing they tend not to like it, I remember having to replace a load of Exabyte mamoth drives for the same reason.
0
Jason ArnoldSenior SpecialistAuthor Commented:
I hope to get the drive back soon.  After the drive has been tested, my goal is to get the new unit testing done for the CentOS 7  server with the ported Hpunix application.  It took me about 3 months to get the Hpunix application porting done (lucky syntax was about the same besides the network connections).   The application is similar to OpenChrom or Chemstation or Mass hunter functionality but complete done in pure C. And so it runs circles around anything out there. After the unit testing, I hope to order the new server.
0
TapeDudeCommented:
As an aside, Exabyte's Mammoth drives were terrible, particularly at reading previous-generation ("MP") 8mm tapes. You could barely get through reading a single EX112 before the drive needed to be cleaned.

I do a LOT of tape duplication and conversion (> 10,000 tapes per annum) and the mid-series 4mm (DDS3/DDS4/DAT72) are probably the most reliable, and most amenable to being cleaned. But the heads do wear and eventually fail.

As solid-state storage continues to plummet in cost, the tape alternatives (with the exception of some high-end IBM/StorageTek units) are subject to increasing amounts of manufacturing corner-cutting to compete. The results are not great; it's definitely a dying medium.
0
Jason ArnoldSenior SpecialistAuthor Commented:
I was about to switch to the LTO-6 or LTO-4 tapes after I move this old data off these DDR4 tapes.  We have to keep back-up out of the building.  Is there a better alternative to the LTO tapes?
0
TapeDudeCommented:
Tape is (usually) still cheapest.

LTO is the best choice of tape medium at present. Depending on your requirements, LTO-6 might actually be cheaper than LTO 4 because you can get so much more on each tape and the difference in media cost is small now. eBay can be a good place to pick up LTO media cheap, just make sure it's new & still sealed. Furthermore, LTO are no longer writeable (or readable) by the current generation of LTO (7) so if you go for gen 4. you may have trouble getting your hands on a working drive.

Be aware that later generations of LTO are only offered in a limited number of interface options, SAS and Fiber being the only ones I've seen for the PC market.
0
TapeDudeCommented:
... I should have said the latest generation is 8, but uptake so far is still pretty sparse.
0
Jason ArnoldSenior SpecialistAuthor Commented:
I finally have the DAT72 drive back and it is physically working now.

CentOS commands:
"sudo mt -f /dev/nst0 status"

SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x25 (DDS-3).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN

tar vft /dev/st0

sudo tar vft /dev/st0
tar: Record size = 2 blocks
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

HPUNIX command(s)
/etc/fbackup -g /usr/adm/fbackupfiles/$1.graph -f /dev/rmt/0m -0u -c /usr/adm/fbackupfiles/backup.cfg

Can someone help with getting the correct command to use with CentOS?

Thanks
0
joolsSenior Systems AdministratorCommented:
thats not going to be easy to fix... fbackup isnt tar, I *think* its a weird cpio format, tape dude might be able to offer more help on that bit.

Do you still have access to the HPUX server? if they are networked you might be able to use it remotely. Its been a long time since I used HPUX but I know you could specify tape drives on remote servers. I believe it needed a link to /dev/rmt and used rsh (I will try and find some more info).

If you still have access to HPUX check out the fbackup / frecover man page.
0
Jason ArnoldSenior SpecialistAuthor Commented:
I have a J6000 that can restore the data.  I hoping to shut this system down a 100%.

But if there is not a solution that is fine at least I tried.  

I guess if there is no solution for Linux since fbackup is not supported.
0
joolsSenior Systems AdministratorCommented:
If you have a system you can restore to do you have the disk space available locally to do that? If you do you can restore to the local storage and then rsync/scp (whatever) from the HPUX server to the linux server.

If not locally how about nfs mounting space from the linux server, that way you are using the HPUX server to restore but restoring to the linux server.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jason ArnoldSenior SpecialistAuthor Commented:
I will put the data on the J6000 after I migrate all systems to Linux.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.