Recommendation for procedure to pause VM's before NAS upgrade?

surfrock66

Well-Known Member
Feb 10, 2020
53
10
48
41
I have a 3-node HA-enabled proxmox cluster which has most storage backed by a TrueNAS over iSCSI. I have about 30 VM's. One thing to note is that I access my systems primarily via a VDI VM through Apache Guacamole, however I have ssh access to another on-site system and can ssh to the proxmox hosts.

Every once in a while I have to upgrade TrueNAS, and I go through a painful process of shutting down all VM's, doing the upgrade, then turning them back on. For host work, I just enter maintenance mode and migrate, but for a NAS upgrade, it's a full stop.

I know I can pause VM's. I don't fully understand how the pause works; would a storage operation where the backing storage disconnects and reconnects be safe on a paused VM?

In general; I find that I can for loop through the VM's on each host, but I'm wondering if there's a better way to either pause or stop all VM's at once, especially from one host?
 
That's again the difference with protocol usage between block storage via iscsi vs. file storage via nfs ... I just do (after OS update) "exportfs -ua;sync;reboot" on the nas while the pve's with it's vm's and lxc's just waiting (don't do anything on or for) until run further when the fileserver is back after 3min.
:)