Hi Aki
Thanks for your response, please see my answers to your questions below.
Q1: Why did you choose to use the UUID instead of the disk label ?
Answer: I have tried both the UUID and disk label in /etc/fstab but the problem is the same as previously described when i shutdown and start my PC.
Q2: What is the status for open-iscsi.service and iscsid.service when mount fails after boot ?
Answer: sudo journalctl status open-iscsi.service
Code: Select all
open-iscsi.service - Login to default iSCSI targets
Loaded: loaded (/lib/systemd/system/open-iscsi.service; enabled; preset: enabled)
Active: active (exited) since Mon 2024-12-09 00:00:00CET; 1min 4s ago
Dec 09 00:00:00 PC1 systemd[1]: Starting open-iscsi.service - Login to default iSCSI targets...
Dec 09 00:00:00 PC1 iscsiadm[877]: Logging in to [iface: default, target: iqn.2004-04.com.ENDPOINT, portal: 192.168.x.x,3260]
Dec 09 00:00:00 PC1 iscsiadm[877]: Login to [iface: default, target: iqn.2004-04.com.ENDPOINT, portal: 192.168.x.x,3260] successful.
Dec 09 00:00:00 PC1 systemd[1]: Finished open-iscsi.service - Login to default iSCSI targets.
Q2: What is the status for open-iscsi.service and iscsid.service when mount fails after boot ?
Answer: sudo journalctl -u iscsid.service --since today
Code: Select all
Dec 09 00:01:45 PC1 iscsid[874]: connection-1:0 cannot make a connection to 192.168.x.x:3260 (-1,101) << Tries every 03 seconds until 00:02:42
Dec 09 00:02:42 PC1 iscsid[874]: connection-1:0 cannot make a connection to 192.168.x.x:3260 (-1,101)
Dec 09 00:02:45 PC1 iscsid[874]: connection-1:0 cannot make a connection to 192.168.x.x:3260 (-1,101)
Dec 09 00:02:48 PC1 iscsid[874]: connection-1:0 cannot make a connection to 192.168.x.x:3260 (-1,101)
Dec 09 00:02:51 PC1 iscsid[873]: Connection1:0 to [target: iqn.2004-04.com.ENDPOINT, portal: 192.168.x.x,3260] through [iface: default] is operational now
That the connection is 'operational now' is the last line.
Adjusting my /etc/fstab to also contain the following
Code: Select all
_netdev,nofail,x-systemd.requires=open-iscsi.service
Made no difference to the problem, and also crashed the open-iscsi.service with
Code: Select all
Failed to start open-iscsi.service - Login to default iSCSI targets.
Code: Select all
Dec 09 00:00:00 PC1 iscsid[874]: connection-1:0 cannot make a connection to 192.168.x.x:3260 (-1,101)
Dec 09 00:00:03 PC1 iscsid[874]: Connection-1:0 to [target: iqn.2004-04.com.ENDPOINT, portal: 192.168.x.x,3260] through [iface: default] is shutdown.
But if i manually run the commands after boot
Code: Select all
sudo systemctl restart open-iscsi.service
sudo mount -a
everything works as expected and the drive is mounted.
Thank you in advance
Best regards