Monitoring Software Raid on XenServer
1. Sync disks
mdadm --detail /dev/md0
2. activate monitoring and create config file
mdadm --verbose --detail --scan >> /etc/mdadm.conf
3. Setup mail connection /etc/ssmtp/ssmtp.conf
root=your_mail@gmail.com
mailhub=smtp.gmail.com:587
Hostname=your_hostname.yourdomain.sth
UseTLS=YES
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt
UseSTARTTLS=YES
AuthUser=your_mail@gmail.com
AuthPass=your_password
FromLineOverride=YES
4. Append mail address in /etc/mdadm.conf
... MAILADDRÂ destination_mail@provider.sth MAILFROM your_mail@gmail.com
5. Test mail monitoring
mdadm --monitor --scan --test --oneshot
Posted: Mai 10th, 2018 under Allgemein, Xen.