Problems accessing a SCSI Tape in a container

smguenther

Member
Oct 19, 2020
2
0
21
55
Hello,

my intention is to use a HP Ultrium tape in a Ubuntu 18.04 container, running on a Proxmox VE 6.0.4.

During the boot process the system recognizes the scsi controller and the tape, here is the output of dmesg:

Bash:
[    3.680072] scsi target5:0:3: asynchronous
[    3.680720] scsi 5:0:3:0: Sequential-Access HP       Ultrium 3-SCSI   G2AD PQ: 0 ANSI: 3
[    3.680724] scsi 5:0:3:0: Information Units disabled by blacklist
[    3.680727] scsi5:A:3:0:
[    3.680729] Tagged Queuing enabled.  Depth 32
[    3.693488] scsi target5:0:3: Beginning Domain Validation
[    3.695843] scsi target5:0:3: wide asynchronous
[    3.697849] scsi target5:0:3: FAST-80 WIDE SCSI 160.0 MB/s DT (12.5 ns, offset 64)
[    3.830057] scsi target5:0:3: Ending Domain Validation
[    6.662002] scsi 5:0:3:0: Attached scsi generic sg1 type 1
[    6.662657] sd 4:2:0:0: Attached scsi generic sg2 type 0
[    6.663047] sd 4:2:0:0: [sda] 583983104 512-byte logical blocks: (299 GB/278 GiB)
[    6.663141] sd 4:2:0:0: [sda] Write Protect is off
[    6.663144] sd 4:2:0:0: [sda] Mode Sense: 1f 00 10 08
[    6.663208] sd 4:2:1:0: Attached scsi generic sg3 type 0
[    6.663299] sd 4:2:0:0: [sda] Write cache: disabled, read cache: enabled, supports DPO and FUA
[    6.663304] sd 4:2:1:0: [sdb] 421871616 512-byte logical blocks: (216 GB/201 GiB)
[    6.663400] sd 4:2:1:0: [sdb] Write Protect is off
[    6.663401] sd 4:2:1:0: [sdb] Mode Sense: 1f 00 10 08
[    6.663526] sd 4:2:1:0: [sdb] Write cache: disabled, read cache: enabled, supports DPO and FUA
[    6.681592]  sdb: sdb1
[    6.682919] sd 4:2:1:0: [sdb] Attached SCSI disk
[    6.687554]  sda: sda1 sda2 sda3
[    6.688873] sd 4:2:0:0: [sda] Attached SCSI disk
[    6.697549] st: Version 20160209, fixed bufsize 32768, s/g segs 256
[    6.698129] st 5:0:3:0: Attached scsi tape st0
[    6.698131] st 5:0:3:0: st0: try direct i/o: yes (alignment 4 B)
[    6.702042] osst :I: Tape driver with OnStream support version 0.99.4
[    6.702042] osst :I: $Id: osst.c,v 1.73 2005/01/01 21:13:34 wriede Exp $


"lsscsi -l -L -d" reports the tape, too:

Bash:
[5:0:3:0]    tape    HP       Ultrium 3-SCSI   G2AD  -        [9:0]
  device_blocked=0
  iocounterbits=32
  iodone_cnt=0x22
  ioerr_cnt=0x1
  iorequest_cnt=0x22
  queue_depth=1
  queue_type=simple
  scsi_level=4
  state=running
  timeout=900
  type=1

According to the output of dmesg, the tape/device should be accessible via /dev/st0 but there is no such device in /dev:

Bash:
console  core  fd  full  hugepages  initctl  log  lxc  mqueue  null  ptmx  pts  random  shm  stderr  stdin  stdout  tty  tty1  tty2  urandom  zero

Is that a problem of the container and how can I solve it?

Thanks for any hints and suggestions,

Stefan
 
Hi,

please update to the current version.
We only support the current version of Proxmox VE.

And try again.