I lost internet connection while I was creating new virtual server. Last message I got was about creating mail accounts. After reconnecting I had only username and group created in /etc/passwd, and empty /etc/posfix/virtual.
Any idea how to recreate this file? When I look at accounts via interface all is ok, but if I try to verify servers I get
Mail for domain : The mail server is not configured to receive email for example.com
where example.com is any domain except last one added (one with crash)
Re-adding the feature made even bigger mess (virtuals got recreated, but aliases and redirects got messed up). Problem got resolved by
virtualmin restore-domain --source /backups/FULL-28_06_2016 --all-domains --feature mail
and 12 hours of happy phone calls from friendly and understanding people.
I often work via mobile, so my connection is not the most stable. It happened before to me but usually accounts were partially created or apache files got messed up, and fixing those was not a problem, but if there is no way to rollback changes after crashed connection, then it’s console and tmux for me only…
Is there a way to ensure atomicity of operations that could crash whole server? Can any user disable my hosting server just by adding lots of aliases and pulling the plug while process is in progress?
Problem was with using quota on Centos 7 with xfs quota_report process. Due to using this machine as production server i just transfered user files to ext4 - that resolved problem for now.
After some testing - yes - any user could crash server if:
There was heavy iowait que (usually by stalled xfs quota report process) - lots of lines like that in ps sh -c (xfs_quota -xc 'report -g -b -i -n' /home 2>&1)
may be due to some VMware quirks, but ext4 resolved it all....
also… there is no problem with using xfs as long as quota is disabled. Any additional ideas are welcome… if i have some time i’ll clone this sytem and try to really debug the issue…