How to fix an error on Astra Linux 1.7., when LUN with ocfs2 is not automatically mounted after OS start?¶
On Astra 1.7, a problem was noticed that after loading the OS, the network partition with ocfs2, which is connected to the host via iscsi, is not automatically mounted. The cause of the problem is unknown (presumably due to a different order in which the services are started), but the following solution can already be used:
Add the following lines to the /etc/rc.local
file:
systemctl restart iscsi
systemctl restart ocfs2 o2cb
Make sure the rc.local
service is running:
systemctl enable rc-local
After rebooting the OS, the LUN will become available and will be mounted.