Hi,
Would you please share the best practice how to achieve power outage protected system for the following landscape:
1) I have 3 hardware units - FreeNAS 9.10.1 box, VMWare ESXi 6.x box and APC UPS with AP9630 network card
2) All VMWare VMs are located on FreeNAS via iSCSI
3) VMWare has special VM (vMA) with APC Network Shutdown installed (located on FreeNAS now too)
4) FreeNAS shares some disks via SMB with Active Directory authentication (Directory configured to sync with AD located on one of the VMs)
Before FreeNAS (VMs were stored on VMWare box's HDDs) VMWare works as needed - on power failure Network Shutdown received the signal from APC, shut down all VMs and turn off ESXi itself, on mains return - ESXi started automatically (BIOS power on AC return) and started all VMs (via ESXi feature)
Now I need to configure the same functionality taking FreeNAS into account. My idea is the following:
1) Move vMA to VMWare box HDDs
2) Configure FreeNAS to autostart on mains return (via BIOS)
3) Configure VMWare to autostart on mains return (via BIOA)
Startup phase
4) VMWare autostarts vMA only
5) in vMA:
4.1) Check if FreeNAS is up and running and iSCSI target is ready
4.2) Check VMWare iSCSI storage accessebility
4.3) Start VMs
4.4) Restart FreeNAS SMB (or Directory sync?) after AD VM is up and running (via ssh)
Shutdown phase
4.3) in APC Newtork Shutdown configure to run the script on shutdown signal (from APC)
4.4) in the shutdown script - shutdown VMs, shutdown FreeNAS (via ssh) and shutdown ESXi host
I'm not sure if this idea is the best one, so would you please suggest better ways to achieve power outage protected system. Also it would be great if you share some vMA scripts to do all these / or proposed steps :)
Would you please share the best practice how to achieve power outage protected system for the following landscape:
1) I have 3 hardware units - FreeNAS 9.10.1 box, VMWare ESXi 6.x box and APC UPS with AP9630 network card
2) All VMWare VMs are located on FreeNAS via iSCSI
3) VMWare has special VM (vMA) with APC Network Shutdown installed (located on FreeNAS now too)
4) FreeNAS shares some disks via SMB with Active Directory authentication (Directory configured to sync with AD located on one of the VMs)
Before FreeNAS (VMs were stored on VMWare box's HDDs) VMWare works as needed - on power failure Network Shutdown received the signal from APC, shut down all VMs and turn off ESXi itself, on mains return - ESXi started automatically (BIOS power on AC return) and started all VMs (via ESXi feature)
Now I need to configure the same functionality taking FreeNAS into account. My idea is the following:
1) Move vMA to VMWare box HDDs
2) Configure FreeNAS to autostart on mains return (via BIOS)
3) Configure VMWare to autostart on mains return (via BIOA)
Startup phase
4) VMWare autostarts vMA only
5) in vMA:
4.1) Check if FreeNAS is up and running and iSCSI target is ready
4.2) Check VMWare iSCSI storage accessebility
4.3) Start VMs
4.4) Restart FreeNAS SMB (or Directory sync?) after AD VM is up and running (via ssh)
Shutdown phase
4.3) in APC Newtork Shutdown configure to run the script on shutdown signal (from APC)
4.4) in the shutdown script - shutdown VMs, shutdown FreeNAS (via ssh) and shutdown ESXi host
I'm not sure if this idea is the best one, so would you please suggest better ways to achieve power outage protected system. Also it would be great if you share some vMA scripts to do all these / or proposed steps :)