LinearTapeFileSystem / ltfs

Reference implementation of the LTFS format Spec for stand alone tape drive
BSD 3-Clause "New" or "Revised" License
255 stars 76 forks source link

can't see a Quantum Ultrium HH7 with ltfs command #463

Closed fbj-fbj closed 3 months ago

fbj-fbj commented 6 months ago

Describe the bug OS : Lubuntu 24.04 HBA : Areca ARC1320 LTO drive : Quantum HH7

Quantum drive is seen by system when typing cat proc/scsi/scsi command :

Host: scsi4 Channel: 00 Id: 00 Lun: 00
  Vendor: QUANTUM  Model: ULTRIUM-HH7      Rev: KAH1
  Type:   Sequential-Access                ANSI  SCSI revision: 06`

But not seen by ltfs utility when typing ltfs -o device_list command :

185b LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
185b LTFS14058I LTFS Format Specification version 2.4.0.
185b LTFS14104I Launched by "ltfs -o device_list".
185b LTFS14105I This binary is built for Linux (x86_64).
185b LTFS14106I GCC version is 13.2.0.
185b LTFS17087I Kernel version: Linux version 6.8.0-31-generic (buildd@lcy02-amd64-080) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 i386.
185b LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
185b LTFS17089I Distribution: PRETTY_NAME="Ubuntu 24.04 LTS".
185b LTFS17085I Plugin: Loading "sg" tape backend.
Tape Device list:.

Any idea about what can cause this issue ?

Best,

piste-jp commented 6 months ago
  1. Can you see the device with lsscsi -g command?
  2. Do you have an access permission to the sg device connected to the Quantum drive?
fbj-fbj commented 6 months ago

Hi piste-jp-ibm,

Thanks for your support and your quick answer ! Yes, I can see the tape drive using lsscsi :

[4:0:0:0]    tape    QUANTUM  ULTRIUM-HH7      KAH1  /dev/st0   /dev/sg10

Then I tried sudo ltfs -o device_list, and had this result, thinking of an owner issue :

419e LTFS14104I Launched by "ltfs -o device-_list".
419e LTFS14105I This binary is built for Linux (x86_64).
419e LTFS14106I GCC version is 13.2.0.
419e LTFS17087I Kernel version: Linux version 6.8.0-31-generic (buildd@lcy02-amd64-080) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 i386.
419e LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
419e LTFS17089I Distribution: PRETTY_NAME="Ubuntu 24.04 LTS".
419e LTFS14063I Sync type is "time", Sync time is 300 sec.
419e LTFS17085I Plugin: Loading "sg" tape backend.
419e LTFS17085I Plugin: Loading "unified" iosched backend.
419e LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
419e LTFS30209I Opening a device through sg-ibmtape driver (0).
419e LTFS30288I Opening a tape device for drive serial 0.
419e LTFS12012E Cannot open device: failed backend open call.
419e LTFS10004E Cannot open device '0'.

Also tried sudo ltfs -o devname=sg10 /media/LTO_RAID/ltfs/ :

41f9 LTFS14000I LTFS starting, LTFS version 2.5.0.0 (Prelim), log level 2.
41f9 LTFS14058I LTFS Format Specification version 2.4.0.
41f9 LTFS14104I Launched by "ltfs -o devname=sg10 /media/LTO_RAID/ltfs/".
41f9 LTFS14105I This binary is built for Linux (x86_64).
41f9 LTFS14106I GCC version is 13.2.0.
41f9 LTFS17087I Kernel version: Linux version 6.8.0-31-generic (buildd@lcy02-amd64-080) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 i386.
41f9 LTFS17089I Distribution: DISTRIB_ID=Ubuntu.
41f9 LTFS17089I Distribution: PRETTY_NAME="Ubuntu 24.04 LTS".
41f9 LTFS14063I Sync type is "time", Sync time is 300 sec.
41f9 LTFS17085I Plugin: Loading "sg" tape backend.
41f9 LTFS17085I Plugin: Loading "unified" iosched backend.
41f9 LTFS14095I Set the tape device write-anywhere mode to avoid cartridge ejection.
41f9 LTFS30209I Opening a device through sg-ibmtape driver (sg10).
41f9 LTFS30288I Opening a tape device for drive serial sg10.
41f9 LTFS12012E Cannot open device: failed backend open call.
41f9 LTFS10004E Cannot open device 'sg10'.

I don't know what else to do at this point ?

fbj-fbj commented 6 months ago

So... I Don't know why but now the drive is seen using ltfs -o device_list (didn't changed anything, just tried accidentally when searching for a former command using up arrow...), but I'm still not able to mount or format a tape, with or without sudo.

piste-jp commented 6 months ago

Please put the output of these commands.

  1. ls -l /dev/sg*
  2. ltfs -o devname=/dev/sg10
  3. sudo ltfs -o devname=/dev/sg10
piste-jp commented 6 months ago

So... I Don't know why but now the drive is seen using ltfs -o device_list (didn't changed anything, just tried accidentally when searching for a former command using up arrow...), but I'm still not able to mount or format a tape, with or without sudo.

Sorry, I made a misunderstanding... You might see the device at this time...

It's easy, the reason is invalid command. You need to specify the absolute path of your device or the serial of your device. I don't know your serial at this time, so please try the command below.

ltfs -o devname=/dev/sg10 /media/LTO_RAID/ltfs

piste-jp commented 6 months ago

So... I Don't know why but now the drive is seen using ltfs -o device_list (didn't changed anything, just tried accidentally when searching for a former command using up arrow...), but I'm still not able to mount or format a tape, with or without sudo.

I'm not sure what happened on your machine.

In my experience, you need to connect the HBA and the drive and power on the drive before powering on your machine. There is a few unstable cases if you connect the drive (or power on the drive) after OS is booted up.

fbj-fbj commented 6 months ago

Hi piste-jp-ibm,

Yes, with the good command, it works. Don't what happened, the station have not been restarted, but some system updates ran in background at some point, perhaps it just updated something.

Thanks for support again !

piste-jp commented 3 months ago

Close because no activity long time.

Please feel free to reopen if you have something new about this topic.