Set the following configuration for all nodes in which the mirroring function among servers is used.
Check that the targetcli package has already been installed.
# rpm -q targetcli |
Set the start and stop order for iSCSI target service.
Create the directory, /etc/systemd/system/fjsvsdx.service.d.
# mkdir /etc/systemd/system/fjsvsdx.service.d # chmod 755 /etc/systemd/system/fjsvsdx.service.d |
Create the setting file within the created directory.
# touch /etc/systemd/system/fjsvsdx.service.d/netmirror.conf # chmod 644 /etc/systemd/system/fjsvsdx.service.d/netmirror.conf |
Add the following content to the setting file.
[Unit] After=target.service |
Apply the setting of the start and stop order for iSCSI target service.
# systemctl daemon-reload |
Check the setting of the start and stop order for iSCSI target service.
# systemctl show fjsvsdx.service | grep "After=" |
Confirm that target.service is output.
Set to automatically start the iSCSI target service when the system is started.
# systemctl enable target.service |