[lxc-devel] suggestion for an autostart flag
Stéphane Graber
stgraber at ubuntu.com
Wed May 29 17:33:21 UTC 2013
On 05/29/2013 12:31 PM, Harald Dunkel wrote:
> Hi folks,
>
> AFAICS I have to list all containers to be started at boot
> time in /etc/lxc/auto using symlinks pointing to the
> config files. Problem: /etc is a local file system.
>
> For a HA solution you usually have some kind of "network"
> device/filesystem providing the resources to manage, e.g.
> a DRBD or iSCSI partition holding a set of LXC config files
> and rootfs directories. In case of a hardware failure you
> change the run level on a hot standby host, some init script
> mounts the LXC partition, and LXC's init script is supposed
> to start the containers for this run level. Unfortunately
> the symlinks in /etc/lxc/auto have been lost together with
> the old host. Hopefully you see the problem.
>
> Instead of symlinks in /etc/lxc/auto I would suggest to set
> the config files to executable as an autostart flag. Thats
> very easy to set, test and clear, _and_ it is part of the
> filesystem providing the LXC config file.
>
>
> Just a suggestion, of course.
>
> Regards
> Harri
Please look at the discussions we've had over the past couple of days, I
believe your problem is already covered by the proposed implementation.
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130529/f29fe0db/attachment.pgp>
More information about the lxc-devel
mailing list