The officially official Devuan Forum!

You are not logged in.

#1 2021-04-28 23:31:20

Fjalar
Member
From: Germany
Registered: 2019-01-22
Posts: 5  

Devuan as iSCSI originator - umount issues on shutdown

Good evening all,

I realize this is probably not a genuine Devuan issue, it probably applies to older Debian as well.

I have set up my Beowulf box as iSCSI originator using open-iscsi (target is a Synology box) and so far it is working well. The only trouble is that the iSCSI "drive" does no unmount in time on shutdown and reboot, making it practically impossible to reboot the machine (need to hard-reset it). The drive in question is mounted with these options in fstab:

LABEL=ISCSI     /home   ext4    defaults,auto,_netdev   0       0

The messages I'm getting are:

acpid: exiting
[ 1852.014742]   connection2:0: ping timeout of 5 secs expired, recv timeout 5, last rx 4295352890, 
last ping 4295354170, now 4295355456

Can anyone comment on this? I suspect  the order of stopping the network connections, iSCSI daemons and unmounting is the problem. Debian Buster is always unmounting the drive and shutting down properly.

Offline

#2 2025-04-19 12:21:40

kapqa
Member
Registered: 2019-01-02
Posts: 368  

Re: Devuan as iSCSI originator - umount issues on shutdown

hello ,

i have usecase other way around

create SCSI - Lun on NAS and then mount it on Devuan, since there is most often "permission denied" when i try to access Iso files directly on  NAS via smb or afp (got to figure how to set access rights correctly, but it seems wide issue on NAS).

however when using "open-iscsi" there is error with devuan

https://wiki.debian.org/SAN/iSCSI/open-iscsi

[color]

systemctl not found

[/color]

got any idea on how get this to function ion Devuan?

Thanks.

Last edited by kapqa (2025-04-20 14:27:35)

Offline

#3 2025-04-19 12:53:48

Altoid
Member
Registered: 2017-05-07
Posts: 1,691  

Re: Devuan as iSCSI originator - umount issues on shutdown

Hello:

kapqa wrote:

... using "open-iscsi" there is error with devuan
https://wiki.debian.org/SAN/iSCSI/open-iscsi

systemctl not found

The printout points to a typical error in Linux systems using systemd.
Devuan is not one of them.

From the web:

If systemctl is not found on your system, it usually means the systemd service manager is not installed or configured correctly.
This can happen if the system is not fully updated or if you've removed systemd accidentally.
To fix this, you'll need to install or reinstall systemd.

systemd has been intentionally removed from Devuan, no failed update or accident to speak of there.  8^°

The installed open-iscsi application is looking for systemctl (part of the systemd package) but cannot find it, hence the error printout.

At the risk of stating the obvious, this should not happen* if the installed open-iscsi package is the one present in the Devuan repositories.

* unless there has been some error in the processing / sanitising for use in Devuan for which a bug report should be filed with the Devuan maintainers.

HTH.

Best,

A.

Offline

#4 2025-04-20 02:43:28

RedGreen925
Member
Registered: 2024-12-07
Posts: 111  

Re: Devuan as iSCSI originator - umount issues on shutdown

* unless there has been some error in the processing / sanitising for use in Devuan for which a bug report should be filed with the Devuan maintainers.

No nothing with the systemd gets installed when getting the package on your machine. Who knows afterwards I have nothing to test it with.

root@9600k:~# apt install open-iscsi
Installing:                     
  open-iscsi

Installing dependencies:
  libisns0t64  libopeniscsiusr

Summary:
  Upgrading: 0, Installing: 3, Removing: 0, Not Upgrading: 3
  Download size: 475 kB
  Space needed: 2,183 kB / 17.9 GB available

Continue? [Y/n] y
Get:1 http://ca.deb.devuan.org/merged excalibur/main amd64 libopeniscsiusr amd64 2.1.11-1 [61.1 kB]
Get:2 http://ca.deb.devuan.org/merged excalibur/main amd64 libisns0t64 amd64 0.101-1+b1 [93.5 kB]
Get:3 http://ca.deb.devuan.org/merged excalibur/main amd64 open-iscsi amd64 2.1.11-1 [320 kB]
Fetched 475 kB in 5s (88.6 kB/s)    
Preconfiguring packages ...
Selecting previously unselected package libopeniscsiusr.
(Reading database ... 192304 files and directories currently installed.)
Preparing to unpack .../libopeniscsiusr_2.1.11-1_amd64.deb ...
Unpacking libopeniscsiusr (2.1.11-1) ...
Selecting previously unselected package libisns0t64:amd64.
Preparing to unpack .../libisns0t64_0.101-1+b1_amd64.deb ...
Unpacking libisns0t64:amd64 (0.101-1+b1) ...
Selecting previously unselected package open-iscsi.
Preparing to unpack .../open-iscsi_2.1.11-1_amd64.deb ...
Unpacking open-iscsi (2.1.11-1) ...
Setting up libisns0t64:amd64 (0.101-1+b1) ...
Setting up libopeniscsiusr (2.1.11-1) ...
Setting up open-iscsi (2.1.11-1) ...
Processing triggers for libc-bin (2.41-7) ...
Processing triggers for man-db (2.13.0-1) ...
Processing triggers for initramfs-tools (0.147) ...
update-initramfs: Generating /boot/initrd.img-6.12.22-amd64

Offline

#5 2025-04-20 08:29:04

Altoid
Member
Registered: 2017-05-07
Posts: 1,691  

Re: Devuan as iSCSI originator - umount issues on shutdown

Hello:

RedGreen925 wrote:

... nothing with the systemd gets installed ...

Indeed.
As it should be.

This provided that the package installed (like the printout you posted shows) actually comes from the Devuan repository.

Like I pointed out, the problem* posted by kapqa (not related to the original post) would seem to indicate that the package installed may not be from the Devuan repository.    * printout points to a typical error in Linux systems using systemd.

That said, note that the link posted leads to a Debian open-iscsi wiki page. 

@kapqa
You may want to consider opening a separate thread with your problem and start by posting the terminal printout from this:

$ uname -a
$ cat /etc/apt/sources.list
$ apt list | grep -i installed | grep -i open-iscsi

Best,

A.

Last edited by Altoid (2025-04-20 08:35:07)

Offline

#6 2025-04-20 11:18:48

kapqa
Member
Registered: 2019-01-02
Posts: 368  

Re: Devuan as iSCSI originator - umount issues on shutdown

hello ,
thanks for the help, it seems connected with this "systemd" thing, which i find odd, if this package has been function since "etch".

tried now with 3 distro, and two of them failed to achieve task (devuan (system-d-free), max-linux(ships with system-d "disabled", but present for better "compatibiliy") (on linux mint the task is achieved).

maybe there is another package that can fulfill the task?

iscsiadm --mode discovery --type sendtargets --portal 192.168.178.100
sh: 1: /bin/systemctl: not found
iscsiadm: can not connect to iSCSI daemon (111)!
iscsiadm: Could not make dir /etc/iscsi/send_targets/192.168.0.100,3260 err 13
iscsiadm: Could not open /etc/iscsi/send_targets/192.168.0.100,3260: Permission denied
iscsiadm: Could not add new discovery record.
rich@devuan:~$ sudo iscsiadm --mode discovery --type sendtargets --portal 192.168.178.100
[sudo] password for rich: 
sh: 1: /bin/systemctl: not found
iscsiadm: can not connect to iSCSI daemon (111)!
iscsiadm: Could not scan /sys/class/iscsi_transport.
sh: 1: /bin/systemctl: not found
iscsiadm: can not connect to iSCSI daemon (111)!
iscsiadm: Cannot perform discovery. Initiatorname
 required.
iscsiadm: Could not perform SendTargets discovery: could not connect to iscsid
uname -a
Linux devuan 6.1.0-33-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.133-1 (2025-04-10) x86_64 GNU/Linux
apt list | grep -i installed | grep -i open-iscsi

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

open-iscsi/stable,now 2.1.8-1 amd64 [installed]

Last edited by kapqa (2025-04-20 11:19:31)

Offline

#7 2025-04-20 12:34:10

Altoid
Member
Registered: 2017-05-07
Posts: 1,691  

Re: Devuan as iSCSI originator - umount issues on shutdown

Hello:

kapqa wrote:

thanks ...

You're welcome.

kapqa wrote:

... seems connected with this "systemd" thing,

Yes, your post is.
What I meant to say was that it is not connected to the OP by @Fjalar.

That said, let's see if we can make some sense out of what seems to be going on.

kapqa wrote:

... this package has been function since "etch".

etch is a Debian release from April 2007 and Devuan did not exist at that time.
Devuan Jesse was released May 2017, roughly ten years later.

$ uname -a tells us your system runs Devuan Daedalus.
apt list | grep -i installed | grep -i open-iscsi tells us the open-iscsi package installed is open-iscsi_2.1.8-1_amd64.

Yet for some reason, attempting to run the application gets you a classic systemd error in a system that by definition does not use the systemd package for init.

In an attempt to get to the bottom of the problem, I decided to see if I could reproduce the problem:

Installation

# apt install open-iscsi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libisns0 libopeniscsiusr
Recommended packages:
  finalrd
The following NEW packages will be installed:
  libisns0 libopeniscsiusr open-iscsi
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 464 kB of archives.
After this operation, 2152 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.devuan.org/merged daedalus/main amd64 libisns0 amd64 0.101-0.2+b1 [92.0 kB]
Get:2 http://deb.devuan.org/merged daedalus/main amd64 libopeniscsiusr amd64 2.1.8-1 [59.7 kB]
Get:3 http://deb.devuan.org/merged daedalus/main amd64 open-iscsi amd64 2.1.8-1 [312 kB]
Fetched 464 kB in 2s (187 kB/s)    
Preconfiguring packages ...
Selecting previously unselected package libisns0:amd64.
(Reading database ... 188375 files and directories currently installed.)
Preparing to unpack .../libisns0_0.101-0.2+b1_amd64.deb ...
Unpacking libisns0:amd64 (0.101-0.2+b1) ...
Selecting previously unselected package libopeniscsiusr.
Preparing to unpack .../libopeniscsiusr_2.1.8-1_amd64.deb ...
Unpacking libopeniscsiusr (2.1.8-1) ...
Selecting previously unselected package open-iscsi.
Preparing to unpack .../open-iscsi_2.1.8-1_amd64.deb ...
Unpacking open-iscsi (2.1.8-1) ...
Setting up libopeniscsiusr (2.1.8-1) ...
Setting up libisns0:amd64 (0.101-0.2+b1) ...
Setting up open-iscsi (2.1.8-1) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for initramfs-tools (0.142+deb12u1) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-33-amd64
live-boot: core filesystems dm-verity devices utils udev blockdev iscsi dns.
#

The package installed properly.

Attempt to run the application using your same parameters:

$ iscsiadm --mode discovery --type sendtargets --portal 192.168.178.100
sh: 1: /bin/systemctl: not found                                            # <---- same error
iscsiadm: can not connect to iSCSI daemon (111)!
iscsiadm: Could not make /etc/iscsi/send_targets: Permission denied         # <---- this neeeds root
iscsiadm: Could not add new discovery record.

Same error.

Try as root, again using your same parameters:

# iscsiadm --mode discovery --type sendtargets --portal 192.168.178.100
sh: 1: /bin/systemctl: not found                                            # <---- same error
iscsiadm: can not connect to iSCSI daemon (111)!
iscsiadm: Could not scan /sys/class/iscsi_transport.
sh: 1: /bin/systemctl: not found                                            # <---- same error
iscsiadm: can not connect to iSCSI daemon (111)!
iscsiadm: Cannot perform discovery. Initiatorname required.
iscsiadm: Could not perform SendTargets discovery: could not connect to iscsid
# 

Same error.

---

From what I see, it seems that this is a problem with the open-iscsi_2.1.8-1_amd64 package.
It requies a Devuan bug report to the maintainers.

See here on how to do that.

Note: Being a topic not related to the original post, please continue anything related to this issue on another, new thread. 

Best,

A.

Last edited by Altoid (2025-04-20 12:35:24)

Offline

#8 2025-04-20 12:50:36

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,362  

Re: Devuan as iSCSI originator - umount issues on shutdown

Please read and edit your /etc/iscsi/iscsid.conf

Offline

#9 2025-04-20 12:55:05

delgado
Member
Registered: 2022-07-14
Posts: 238  

Re: Devuan as iSCSI originator - umount issues on shutdown

It''s possibel to

apt-get install systemctl

Not sure whether this works for iscsi.

Offline

#10 2025-04-20 13:57:03

kapqa
Member
Registered: 2019-01-02
Posts: 368  

Re: Devuan as iSCSI originator - umount issues on shutdown

@ralph.ronnquist thanks, but iam a computer-type-do-first-read-later fail to find the proper setting, maybe i am just needing a bigger monitor;

@altoid,@all, thanks, it might be system-d related, but since i am not in the know of what it does (someone else stated here on this forum that i might be even not interested in getting to know how thinbgs function, an apparently old fproblem (of mine?) - devuan has function beautifully over the last past couple of years, sometimes better, sometimes worse, than previous favorites (still using ubuntu since it tend to function in more use-cases)

the real problem that provoked this "hijacking" of thread (but OP actually asked for a comment so ithought it might be just fine) is actually related to permission rights on NAS , which has not been cleared, and i tend to encounter on several distros, and i am not sure if am doing it just wrong or the problem rather lies with linux and the various file-manager it uses rather than with NAS software or vendor itself.

so pardon me if this went lenghty,
might just well open another thread for the underlying problem,
don't know if there will be a work-around for open-iscsi;

but with the debian instructions it fucntioned well on linux mint;
just made a portion (iscsi-lun) of 350 GB and copied the relevant ISO on it, and linux would now automount on booting the LUN as a separate partition and reading  from it with various programs tend to use (mkusb, balena-etcher, rpi-imager) throws off no error warning.

no very elegant solution, but the permission denied issue really got me annoyed; since it wont happend on macos or windows; but lately, it seems also on windows (server) there is similar issue encountered, so it make me think the issue could be with the NAS itself or maybe some sort of samba version thing problem, but it happen also with AFP, so it a bit noisy, sorry.

Offline

#11 2025-04-20 14:00:40

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,362  

Re: Devuan as iSCSI originator - umount issues on shutdown

you're welcome.

Offline

Board footer