Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Cannot eject tape from LTO device

  1. #1

    Question Cannot eject tape from LTO device

    Hi,

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

    Code:
    # 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:

    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?

  2. #2
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,043

    Default Re: Cannot eject tape from LTO device

    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

  3. #3
    Join Date
    Dec 2009
    Location
    Menominee, Michigan
    Posts
    55

    Default Re: Cannot eject tape from LTO device

    Your tape drive seems to be located at /dev/st0 as indicated:
    Code:
    # lsscsi
    ...
    [8:0:3:0]    tape    IBM      HH LTO Gen 2     0468  /dev/st0
    Mark

  4. #4

    Default Re: Cannot eject tape from LTO device

    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

  5. #5
    Join Date
    Jun 2008
    Location
    Belleville, Ontario, Canada
    Posts
    431

    Default Re: Cannot eject tape from LTO device

    What do the "mount" and "fdisk -l" commands give you?
    "Making rich people richer doesn't make the rest of us richer."
    Ha-Joon Chang

    openSUSE 15.0 4.12.14-lp150.12.45-default x64

  6. #6

    Default Re: Cannot eject tape from LTO device

    Quote Originally Posted by kerijan2003 View Post
    What do the "mount" and "fdisk -l" commands give you?
    Nothing related to the tape device: http://paste.opensuse.org/5636cc76

    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.

  7. #7
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,043

    Default Re: Cannot eject tape from LTO device

    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

  8. #8

    Default Re: Cannot eject tape from LTO device

    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

  9. #9
    Join Date
    Sep 2012
    Posts
    4,976

    Default Re: Cannot eject tape from LTO device

    Quote Originally Posted by kerijan2003 View Post
    What do the "mount" and "fdisk -l" commands give you?
    For tapes​?!? Amusing ...

  10. #10
    Join Date
    Sep 2012
    Posts
    4,976

    Default Re: Cannot eject tape from LTO device

    Quote Originally Posted by heyjoe View Post
    Same with options such as: -F, -s, -m, -a (on|off).
    Try -m -q. If it does not work, it looks really a bug. You can consider using mt: "mt -f /dev/nst0 offline".

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •