Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fbj-fbj opened this issue May 25, 2024 · 8 comments
Closed

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

fbj-fbj opened this issue May 25, 2024 · 8 comments
Assignees
Labels

Comments

@fbj-fbj
Copy link

fbj-fbj commented May 25, 2024

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
Copy link
Member

  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
Copy link
Author

fbj-fbj commented May 26, 2024

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
Copy link
Author

fbj-fbj commented May 26, 2024

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
Copy link
Member

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 piste-jp self-assigned this May 27, 2024
@piste-jp
Copy link
Member

piste-jp commented May 27, 2024

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
Copy link
Member

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
Copy link
Author

fbj-fbj commented May 27, 2024

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
Copy link
Member

piste-jp commented Aug 1, 2024

Close because no activity long time.

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

@piste-jp piste-jp closed this as completed Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants