I came up with this hookscript, it's my first time with Perl (I thought it had to be a Perl script) but it's working fine for what I needed:
#!/usr/bin/perl
# Checks if a given storage is available before staring the given VM/CT.
# You can set this via pct/qm with
# pct set <vmid> -hookscript...
I have some VMs that depend on a shared storage to be initialized (ZFS pool) before they are started. This takes anywhere from 15-20 minutes.
I want to setup a container with 1st boot priority, and have a script loop to check if the storage has been initiated. The other VMs will only be...
Good day,
I've got a server with 2x2TB HDDs and 2x512GB SSDs. I want to mirror the HDDs into 1 array, and the SSDs into another, and give all my VMs have access to both arrays, so the boot disk lives in the SSD array and the HDD array is used for backups. I only got 32GB of RAM. What's the best...
Hello, my server at BHS experienced a short network outage a few minutes ago, and as a result couldn't connect to the storage I have mounted using NFS:
Sep 5 03:58:26 bhs2 kernel: [42392898.700341] igb 0000:05:00.0 eth0: igb: eth0 NIC Link is Down
Sep 5 03:58:26 bhs2 kernel: [42392898.700354]...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.