Technical>>System

Asianux 3: Logical volumes show as NOT AVAILABLE after the system boots up in a 2 nodes iSCSI (software initiator) cluster


Problem:
After setting up a LVM on the iSCSI device, it works fine. But after a system reboot, the LVM is not automatically activated.

Reason:
This happens because Asianux tries to enable the LVM before the network starts. iSCSI should be started after the network starts and this is an order we can not change. The solution is to enable LVM after iSCSI: 

Solution:
Add the two lines below to  /etc/rc.local to resolve this problem.

/sbin/vgscan --mknodes
/sbin/vgchange -ay

Tags