Virtual IP with VRRP in TrueNAS-SCALE

Trujo

Cadet
Joined
Feb 15, 2023
Messages
2
We are checking TrueNAS-SCALE-22.02.4
We install 2 trueNas, one for production and other for security.
We are trying to configure keepalived to have a VIP with VRRP
if we write a /etc/keepalived/keepalived.conf and we make:
"systemctl restart keepalived", it work, but when we reboot it lost the configuration.
How can we got this permanently?.
It is possibly make it with the GUI?
 

Trujo

Cadet
Joined
Feb 15, 2023
Messages
2
One workaround is make a script:
# cat /mnt/arranca-VRRP.sh
#!/usr/bin/sh
cp /conf/base/etc/keepalived/keepalived.conf /etc/keepalived/keepalived.conf
systemctl restart keepalived
and in the GUI, system-avanced add the script in postini.
But this is very dirty.
Thank in advance.
 

NickF

Guru
Joined
Jun 12, 2014
Messages
763
This is interesting, and I am sorry to necropost. With SCALE and TrueCommand, this is handled for you, so I am not sure what you are trying to accomplish with the above. The VIPs are created at the time of cluster creation.
Theoretically, you could hotrod the system with what you are doing above to create a pseudo-two-node-cluster and have RSYNC or something keep the data in sync rather than Gluster. But I am not sure why you are trying to, since there is an official solution?
 
Top