Skip to content

igluko/pve-autorepl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pve-autorepl

This script setup replication for VM which start on boot.

Этот скрипт ищет VM, которые стартуют автоматически, но не реплицируются. Если такие VM найдены, то скрипт:

  • Отправляет письмо на email root пользователя
  • Затем он настраивает репликацию для найденных VM

Карта репликаций (откуда -> куда) берется из файла: /root/Sync/replication-map.json root@AX101-Helsinki-02:~# cat /root/Sync/replication-map.json

{
   "source-hostname-01":"target-hostname-01",
   "source-hostname-02":"target-hostname-02",
   "source-hostname-03":"target-hostname-03"
}

optional arguments:

  -h, --help           show this help message and exit
  --ha                 enable auto high availability
  --autostart          only vm which start on boot will be replicated
  --maxvmid MAXVMID    maximum vmid number for replication
  --rate RATE          maximum rate in MB/s
  --interval INTERVAL  interval in minutes, example */15 - every 15 minutes

Example:

./pve-autorepl.py --maxvmid 500 --rate 50 --interval */1

About

This script setup replication for VM which start on boot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published