I didn’t see any issues with MHVTL yesterday. Today I rebuilt the image and went through the script line by line and still see no issues
$ systemctl list-units | grep vtl
mhvtl-load-modules.service loaded active exited Load mhvtl modules
vtllibrary@10.service loaded active running Robot Library Daemon for Virtual Tape & Robot Library
vtllibrary@30.service loaded active running Robot Library Daemon for Virtual Tape & Robot Library
vtltape@11.service loaded active running Tape Daemon for Virtual Tape & Robot Library
vtltape@12.service loaded active running Tape Daemon for Virtual Tape & Robot Library
vtltape@13.service loaded active running Tape Daemon for Virtual Tape & Robot Library
vtltape@14.service loaded active running Tape Daemon for Virtual Tape & Robot Library
vtltape@31.service loaded active running Tape Daemon for Virtual Tape & Robot Library
vtltape@32.service loaded active running Tape Daemon for Virtual Tape & Robot Library
vtltape@33.service loaded active running Tape Daemon for Virtual Tape & Robot Library
vtltape@34.service loaded active running Tape Daemon for Virtual Tape & Robot Library
system-vtllibrary.slice loaded active active system-vtllibrary.slice
system-vtltape.slice loaded active active system-vtltape.slice
mhvtl.target loaded active active mhvtl service allowing to start/stop all vtltape@.service and vtllibrary@.service instances at once
and
$ systemctl status mhvtl.target
● mhvtl.target - mhvtl service allowing to start/stop all vtltape@.service and vtllibrary@.service instances at once
Loaded: loaded (/usr/lib/systemd/system/mhvtl.target; enabled; vendor preset: disabled)
Active: active since Wed 2021-06-02 15:14:18 CEST; 3min 30s ago
Docs: man:man:vtltape(1)
man:man:vtllibrary(1)
and
$ lsmod | grep mhvtl
mhvtl 36617 30
and
$ lsscsi -g
[2:0:0:0] mediumx STK L700 0106 /dev/sch1 /dev/sg9
[2:0:1:0] tape IBM ULT3580-TD5 0106 /dev/st3 /dev/sg3
[2:0:2:0] tape IBM ULT3580-TD5 0106 /dev/st2 /dev/sg2
[2:0:3:0] tape IBM ULT3580-TD4 0106 /dev/st4 /dev/sg4
[2:0:4:0] tape IBM ULT3580-TD4 0106 /dev/st7 /dev/sg8
[2:0:8:0] mediumx STK L80 0106 /dev/sch0 /dev/sg6
[2:0:9:0] tape STK T10000B 0106 /dev/st6 /dev/sg7
[2:0:10:0] tape STK T10000B 0106 /dev/st5 /dev/sg5
[2:0:11:0] tape STK T10000B 0106 /dev/st1 /dev/sg1
[2:0:12:0] tape STK T10000B 0106 /dev/st0 /dev/sg0
then had to switch to root (permission denied on /dev/sg)
# mtx -f `lsscsi -g | awk '$2~/mediumx/{print $7}' | head -1` status
Storage Changer /dev/sg9:4 Drives, 43 Slots ( 4 Import/Export )
Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
Storage Element 1:Full :VolumeTag=E01001L4
Storage Element 2:Full :VolumeTag=E01002L4
Storage Element 3:Full :VolumeTag=E01003L4
Storage Element 4:Full :VolumeTag=E01004L4
Storage Element 5:Full :VolumeTag=E01005L4
Storage Element 6:Full :VolumeTag=E01006L4
Storage Element 7:Full :VolumeTag=E01007L4
Storage Element 8:Full :VolumeTag=E01008L4
Storage Element 9:Full :VolumeTag=E01009L4
Storage Element 10:Full :VolumeTag=E01010L4
Storage Element 11:Full :VolumeTag=E01011L4
Storage Element 12:Full :VolumeTag=E01012L4
Storage Element 13:Full :VolumeTag=E01013L4
Storage Element 14:Full :VolumeTag=E01014L4
Storage Element 15:Full :VolumeTag=E01015L4
Storage Element 16:Full :VolumeTag=E01016L4
Storage Element 17:Full :VolumeTag=E01017L4
Storage Element 18:Full :VolumeTag=E01018L4
Storage Element 19:Full :VolumeTag=E01019L4
Storage Element 20:Full :VolumeTag=E01020L4
Storage Element 21:Empty
Storage Element 22:Full :VolumeTag=CLN101L4
Storage Element 23:Full :VolumeTag=CLN102L5
Storage Element 24:Empty
Storage Element 25:Empty
Storage Element 26:Empty
Storage Element 27:Empty
Storage Element 28:Empty
Storage Element 29:Empty
Storage Element 30:Full :VolumeTag=F01030L5
Storage Element 31:Full :VolumeTag=F01031L5
Storage Element 32:Full :VolumeTag=F01032L5
Storage Element 33:Full :VolumeTag=F01033L5
Storage Element 34:Full :VolumeTag=F01034L5
Storage Element 35:Full :VolumeTag=F01035L5
Storage Element 36:Full :VolumeTag=F01036L5
Storage Element 37:Full :VolumeTag=F01037L5
Storage Element 38:Full :VolumeTag=F01038L5
Storage Element 39:Full :VolumeTag=F01039L5
Storage Element 40 IMPORT/EXPORT:Empty
Storage Element 41 IMPORT/EXPORT:Empty
Storage Element 42 IMPORT/EXPORT:Empty
Storage Element 43 IMPORT/EXPORT:Empty
and finally
# ps auxw | grep vtl
root 30043 0.0 0.0 15208 3104 ? Ss 15:14 0:00 /usr/bin/vtltape -F -q11 -v1
root 30044 0.0 0.0 15208 3092 ? Ss 15:14 0:00 /usr/bin/vtltape -F -q32 -v1
root 30045 0.0 0.0 15208 3096 ? Ss 15:14 0:00 /usr/bin/vtltape -F -q33 -v1
root 30046 0.0 0.0 15208 3096 ? Ss 15:14 0:00 /usr/bin/vtltape -F -q13 -v1
root 30047 0.0 0.0 15208 3096 ? Ss 15:14 0:00 /usr/bin/vtltape -F -q14 -v1
root 30048 0.0 0.0 15208 3100 ? Ss 15:14 0:00 /usr/bin/vtltape -F -q34 -v1
root 30049 0.0 0.0 15208 3088 ? Ss 15:14 0:00 /usr/bin/vtltape -F -q31 -v1
root 30050 0.0 0.0 15208 3100 ? Ss 15:14 0:00 /usr/bin/vtltape -F -q12 -v1
root 30053 0.0 0.0 9764 2012 ? Ss 15:14 0:00 /usr/bin/vtllibrary -F -q30 -v1
root 30059 0.0 0.0 9764 2012 ? Ss 15:14 0:00 /usr/bin/vtllibrary -F -q10 -v1
So as far as I can tell everything looks OK, right? But still:
# systemctl status mhvtl
Unit mhvtl.service could not be found.