Hi Everyone,
I am facing a strange nvmf-autoconnect.service issue. During system boot it seems that nvmf-autoconnect.service trying to start before networking services and thus it fails. After system starts I can see the status below:
by typing
You will notice that nvmf-autoconnect.service is above networking.service
while nfs-client.target for example
somehow I need to direct the nvmf-autoconnect.service I to boot last one or after nfs-client.target
For now in order to fix this. I have to restart the service after it's system boot
Thanx
I am facing a strange nvmf-autoconnect.service issue. During system boot it seems that nvmf-autoconnect.service trying to start before networking services and thus it fails. After system starts I can see the status below:
Code:
-- Boot 9cb70a47c64046a99ef1803e2975ce8c --
May 15 11:20:52 at-pve02 systemd[1]: Starting nvmf-autoconnect.service - Connect NVMe-oF subsystems automatically during boot...
May 15 11:20:55 at-pve02 nvme[2872]: Failed to write to /dev/nvme-fabrics: Connection timed out
May 15 11:20:55 at-pve02 systemd[1]: nvmf-autoconnect.service: Deactivated successfully.
May 15 11:20:55 at-pve02 systemd[1]: Finished nvmf-autoconnect.service - Connect NVMe-oF subsystems automatically during boot.
May 15 11:32:40 at-pve02 systemd[1]: Starting nvmf-autoconnect.service - Connect NVMe-oF subsystems automatically during boot...
May 15 11:32:40 at-pve02 systemd[1]: nvmf-autoconnect.service: Deactivated successfully.
May 15 11:32:40 at-pve02 systemd[1]: Finished nvmf-autoconnect.service - Connect NVMe-oF subsystems automatically during boot.
-- Boot f987796a4add4f14b9934b74737839e9 --
root@at-pve02:~# systemctl status nvmf-autoconnect.service
○ nvmf-autoconnect.service - Connect NVMe-oF subsystems automatically during boot
Loaded: loaded (/lib/systemd/system/nvmf-autoconnect.service; enabled; preset: enabled)
Active: inactive (dead) since Wed 2024-05-15 13:45:56 EEST; 9min ago
Process: 2871 ExecStartPre=/sbin/modprobe nvme-fabrics (code=exited, status=0/SUCCESS)
Process: 2880 ExecStart=/usr/sbin/nvme connect-all (code=exited, status=0/SUCCESS)
Main PID: 2880 (code=exited, status=0/SUCCESS)
CPU: 30ms
May 15 13:45:53 at-pve02 systemd[1]: Starting nvmf-autoconnect.service - Connect NVMe-oF subsystems automatically during boot...
May 15 13:45:56 at-pve02 nvme[2880]: Failed to write to /dev/nvme-fabrics: Connection timed out
May 15 13:45:56 at-pve02 systemd[1]: nvmf-autoconnect.service: Deactivated successfully.
May 15 13:45:56 at-pve02 systemd[1]: Finished nvmf-autoconnect.service - Connect NVMe-oF subsystems automatically during boot.
by typing
Code:
systemctl list-dependencies
default.target
○ ├─display-manager.service
○ ├─nvmefc-boot-connections.service
○ ├─nvmf-autoconnect.service
● ├─rrdcached.service
○ ├─systemd-update-utmp-runlevel.service
● └─multi-user.target
● ├─chrony.service
● ├─console-setup.service
● ├─corosync.service
● ├─cron.service
● ├─dbus.service
○ ├─e2scrub_reap.service
● ├─ksmtuned.service
● ├─lxc-monitord.service
● ├─lxc-net.service
● ├─lxc.service
● ├─lxcfs.service
● ├─networking.service
● ├─postfix.service
○ ├─proxmox-boot-cleanup.service
● ├─proxmox-firewall.service
● ├─pve-cluster.service
● ├─pve-firewall.service
● ├─pve-guests.service
● ├─pve-ha-crm.service
● ├─pve-ha-lrm.service
● ├─pve-lxc-syscalld.service
● ├─pvedaemon.service
...
You will notice that nvmf-autoconnect.service is above networking.service
Code:
root@at-pve02:~# systemctl list-dependencies network-online.target
network-online.target
● └─networking.service
while nfs-client.target for example
Code:
root@at-pve02:~# systemctl list-dependencies nfs-client.target
nfs-client.target
○ ├─auth-rpcgss-module.service
● ├─rpc-statd-notify.service
● └─remote-fs-pre.target
somehow I need to direct the nvmf-autoconnect.service I to boot last one or after nfs-client.target
For now in order to fix this. I have to restart the service after it's system boot
Thanx