NVMf initiator persistent across boots
Sagi Grimberg
sagi at grimberg.me
Wed Aug 30 02:37:47 PDT 2017
Hi,
> Could we have NVMf initiator setup persistent across boots ?
>
> Is this a possibility ? If yes, I would like suggestions on how this
> could be implemented.
We could add a systemctl one-shot add-on that would
issue nvme connect-all for each line available in
the discovery.conf file.
Something like:
--
[Unit]
Description=NVMf auto discovery service
After=systemd-modules-load.service network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/nvme connect-all
StandardOutput=journal
[Install]
WantedBy=multi-user.target
--
Where discovery.conf would have the relevant parameters
like:
--
--traddr=<traddr1> --trsvcid=<trsvcid1>
--traddr=<traddr2> --trsvcid=<trsvcid2>
--
One thing we may want to have is to make sure
that nvme relevant modules are loaded at boot time
so we may want nvme-cli to either manually load them
or the installation would add them to systemd-modules-load.service
(i.e. add relevant files to /etc/modules-load.d/)
Thoughts?
More information about the Linux-nvme
mailing list