[root@xenserver /]# cat /etc/rc.local
# usb_storage
modprobe -r usb_storage
modprobe usb_storage
# auto start vm
# pool auto_start
xe pool-param-set uuid=cb7ba7a3-5cf5-b738-2806-3f74e8d71cfd other-config:auto_poweron=true
sleep 20
# vms manual_start
xe vm-start uuid=b8f68d5c-c764-9135-67a5-a050c397d23f
sleep 20
xe vm-start uuid=c7261f28-1207-59f9-8c29-bd7c1ef7f376
# mount usb_storage
sleep 60
/etc/init.d/usbautomount.sh attach
[root@xenserver /]# xe vm-list
[root@xenserver /]# xe pool-list
[root@xenserver /]# xe sr-list
30 22 * * 0,2,4 /usr/bin/php /usr/local/bin/purgeBackup.php
45 22 * * 0,2,4 /usr/bin/perl /usr/local/bin/backup.pl
Deixe um comentário