Cannot eject tape from LTO device

Hi,

It seems I cannot eject the tape from the LTO-2 device using:

# eject /dev/nst0
eject: /dev/nst0: not found mountpoint or device with the given name

Same with options such as: -F, -s, -m, -a (on|off).

This has always worked in openSUSE 12.2 (without any options) however now that I tried on Leap 42.1 it doesn’t. I am running the command as root of course.

The hardware is:

# lspci
...
04:04.0 SCSI storage controller: Adaptec ASC-29320ALP U320 (rev 10)
...

# lsscsi
...
[8:0:3:0]    tape    IBM      HH LTO Gen 2     0468  /dev/st0 

How can I make the eject command work in Leap?

On Sat, 28 Nov 2015 23:56:01 +0000, heyjoe wrote:

> Code:
> --------------------
> # lspci
> …
> 04:04.0 SCSI storage controller: Adaptec ASC-29320ALP U320 (rev 10)
> …
>
> # lsscsi …
> [8:0:3:0] tape IBM HH LTO Gen 2 0468 /dev/st0
>
> --------------------
>
>
> How can I make the eject command work in Leap?

Maybe try using /dev/st0 instead of /dev/nst0?

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Your tape drive seems to be located at /dev/st0 as indicated:


# lsscsi
...
[8:0:3:0]    tape    IBM      HH LTO Gen 2     0468  /dev/st0 

Mark

Tried everything. No luck.


# l /dev/tape/by-id/*
lrwxrwxrwx 1 root root  9 Nov 29 11:50 /dev/tape/by-id/scsi-1IBM_HH_LTO_Gen_2_2000ACD7 -> ../../st0
lrwxrwxrwx 1 root root 10 Nov 29 11:50 /dev/tape/by-id/scsi-1IBM_HH_LTO_Gen_2_2000ACD7-nst -> ../../nst0
# l /dev/tape/by-path/
total 0
drwxr-xr-x 2 root root 80 Nov 29 11:50 ./
drwxr-xr-x 4 root root 80 Nov 29 11:50 ../
lrwxrwxrwx 1 root root  9 Nov 29 11:50 pci-0000:04:04.0-scsi-0:0:3:0 -> ../../st0
lrwxrwxrwx 1 root root 10 Nov 29 11:50 pci-0000:04:04.0-scsi-0:0:3:0-nst -> ../../nst0
# eject /dev/st0
eject: /dev/st0: not found mountpoint or device with the given name
# eject /dev/nst0
eject: /dev/nst0: not found mountpoint or device with the given name
# eject /dev/tape/by-id/scsi-1IBM_HH_LTO_Gen_2_2000ACD7
eject: /dev/st0: not found mountpoint or device with the given name
# eject /dev/tape/by-id/scsi-1IBM_HH_LTO_Gen_2_2000ACD7-nst
eject: /dev/nst0: not found mountpoint or device with the given name
# eject /dev/tape/by-path/pci-0000:04:04.0-scsi-0:0:3:0
eject: /dev/st0: not found mountpoint or device with the given name
# eject /dev/tape/by-path/pci-0000:04:04.0-scsi-0:0:3:0-nst
eject: /dev/nst0: not found mountpoint or device with the given name

What do the “mount” and “fdisk -l” commands give you?

Nothing related to the tape device: SUSE Paste

fdisk shows only the hard drives partitions.

I mount and umount the tape using Bareos (previously Bacula) bconsole commands for that, i.e. not through bash. However after a umount in bconsole I have always been able to eject /dev/nst0 (or st0 which is the same) in my older system.

On Sun, 29 Nov 2015 10:06:01 +0000, heyjoe wrote:

> Tried everything. No luck.
>
>
> Code: --------------------
>
> # l /dev/tape/by-id/*
> lrwxrwxrwx 1 root root 9 Nov 29 11:50
> /dev/tape/by-id/scsi-1IBM_HH_LTO_Gen_2_2000ACD7 → …/…/st0
> lrwxrwxrwx 1 root root 10 Nov 29 11:50
> /dev/tape/by-id/scsi-1IBM_HH_LTO_Gen_2_2000ACD7-nst → …/…/nst0 # l
> /dev/tape/by-path/
> total 0 drwxr-xr-x 2 root root 80 Nov 29 11:50 ./
> drwxr-xr-x 4 root root 80 Nov 29 11:50 …/
> lrwxrwxrwx 1 root root 9 Nov 29 11:50 pci-0000:04:04.0-scsi-0:0:3:0
> → …/…/st0 lrwxrwxrwx 1 root root 10 Nov 29 11:50
> pci-0000:04:04.0-scsi-0:0:3:0-nst → …/…/nst0 # eject /dev/st0
> eject: /dev/st0: not found mountpoint or device with the given name #
> eject /dev/nst0 eject: /dev/nst0: not found mountpoint or device with
> the given name # eject /dev/tape/by-id/scsi-1IBM_HH_LTO_Gen_2_2000ACD7
> eject: /dev/st0: not found mountpoint or device with the given name #
> eject /dev/tape/by-id/scsi-1IBM_HH_LTO_Gen_2_2000ACD7-nst eject:
> /dev/nst0: not found mountpoint or device with the given name # eject
> /dev/tape/by-path/pci-0000:04:04.0-scsi-0:0:3:0 eject: /dev/st0: not
> found mountpoint or device with the given name # eject
> /dev/tape/by-path/pci-0000:04:04.0-scsi-0:0:3:0-nst eject: /dev/nst0:
> not found mountpoint or device with the given name
>
> --------------------

What’s the output from lsscsi?

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C


# lsscsi 
[0:0:0:0]    disk    ATA      WDC WD1003FBYX-0 1V02  /dev/sda 
[1:0:0:0]    disk    ATA      WDC WD5003ABYX-0 1S01  /dev/sdb 
[2:0:0:0]    disk    ATA      HDS722516VLSA80  A63A  /dev/sdc 
[3:0:0:0]    cd/dvd  HL-DT-ST DVDRAM GH24NSC0  LK00  /dev/sr0 
[4:0:0:0]    disk    ATA      INTEL SSDSC2BB24 0370  /dev/sdd 
[5:0:0:0]    disk    ATA      WDC WD4001FAEX-0 1L01  /dev/sde 
[8:0:3:0]    tape    IBM      HH LTO Gen 2     0468  /dev/st0 

For tapes​?!? Amusing … :slight_smile:

Try -m -q. If it does not work, it looks really a bug. You can consider using mt: “mt -f /dev/nst0 offline”.

On Wed, 02 Dec 2015 01:06:01 +0000, heyjoe wrote:

> Code: --------------------
>
> # lsscsi [0:0:0:0] disk ATA WDC WD1003FBYX-0 1V02 /dev/sda
> [1:0:0:0] disk ATA WDC WD5003ABYX-0 1S01 /dev/sdb
> [2:0:0:0] disk ATA HDS722516VLSA80 A63A /dev/sdc
> [3:0:0:0] cd/dvd HL-DT-ST DVDRAM GH24NSC0 LK00 /dev/sr0
> [4:0:0:0] disk ATA INTEL SSDSC2BB24 0370 /dev/sdd
> [5:0:0:0] disk ATA WDC WD4001FAEX-0 1L01 /dev/sde
> [8:0:3:0] tape IBM HH LTO Gen 2 0468 /dev/st0
>
> --------------------

Definitely looks like /dev/st0 should work. You might contact the
manufacturer/reseller and find out if they have seen anything like this
before.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

I have shown that /dev/st0 does not work. Also AFAIK /dev/st0 and /dev/nst0 are the same device with the only difference that nst0 does not rewind the tape after performing a task.

You might contact the manufacturer/reseller and find out if they have seen anything like this before.

The manufacturer is IBM, the reseller is ebay :slight_smile:

If I contact IBM and tell them “I have this device. In openSUSE 12.2 the eject command works and in Leap 42.1 it doesn’t” obviously the answer will be “then that is not a problem with the device but with the software” and they will send me back here.

So what am I to do?

On Wed, 02 Dec 2015 09:26:01 +0000, heyjoe wrote:

> hendersj;2740775 Wrote:
>>
>> Definitely looks like /dev/st0 should work.
>
> I have shown that /dev/st0 does not work. Also AFAIK /dev/st0 and
> /dev/nst0 are the same device with the only difference that nst0 does
> not rewind the tape after performing a task.
>
>> You might contact the manufacturer/reseller and find out if they have
>> seen anything like this before.
> The manufacturer is IBM, the reseller is ebay :slight_smile:
>
> If I contact IBM and tell them “I have this device. In openSUSE 12.2 the
> eject command works and in Leap 42.1 it doesn’t” obviously the answer
> will be “then that is not a problem with the device but with the
> software” and they will send me back here.
>
> So what am I to do?

I would still be inclined to ask them - you don’t now what their answer
will be, and you might get a support tech who has seen the problem before.

In the meantime, maybe someone else here will have an idea as well. But
asking the vendor/manufacturer as well isn’t a bad approach.

It may well be that it’s not the release of openSUSE, but something in
the kernel version that’s used, and a kernel change is something IBM may
have some awareness of.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

I looked at IBM’s site. It seems they give only paid technical support and there is no way to write to them about technical questions. However I have sent to their general inquiry email address, not sure if they will answer.

On Wed, 02 Dec 2015 23:36:01 +0000, heyjoe wrote:

> I looked at IBM’s site. It seems they give only paid technical support
> and there is no way to write to them about technical questions. However
> I have sent to their general inquiry email address, not sure if they
> will answer.

Fair enough - hopefully someone else will jump in here with some ideas as
well.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Thanks Jim. I hope for the same.

LOL Completely forgot about that. :shame:

No reply from IBM at all.

I hope someone here can help.

Where/who should I ask?

Ok, I finally found a solution. Let me share it in case someone else runs into this:


# mt -f /dev/nst0 offline

This will eject the tape.