[Users] New behavior noted

Scott Dowdle dowdle at montanalinux.org
Thu Jun 30 05:47:13 PDT 2016


Greetings,

----- Original Message -----
> I've noticed a new behavior from the openvz hosts regarding shutdown
> and startup. We've long preferred to migrate the really important
> CTs to another host before we rebooting for e.g. a kernel upgrade.
> Other CTs are redundant or are not continuously needed, so we'd
> simply shut those down before rebooting the node.
> 
> Some updates ago, I notice that containers are no longer auto
> starting when the node comes back up. I'd assumed it was a temporary
> bug but that behavior has persisted through several updates. Of
> course the containers would run normally if manually started.
> 
> On the most recent kernel upgrade, I decided to shut down the node
> without first shutting down the CTs, just to see what the behavior
> would be. When the host came back up, the CTs were not auto started,
> but were in a suspended state - and vzctl resume brought them back
> up, with the uptime counters preserved.
> 
> I did not expect that, but it's a nice feature.

Do your containers have: 
  ONBOOT="yes"
...in their configs?

If not, then: 
vzctl set {ctid} --onboot yes --save

If they are configured that way, and they aren't starting, then we'll have to look into it.

TYL,
-- 
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]


More information about the Users mailing list