usl-mm/README.md

49 lines
2.6 KiB
Markdown
Raw Normal View History

2018-09-02 13:01:37 +02:00
__Features:__
2020-05-16 12:18:54 +02:00
copy_containers ->
2022-01-28 15:24:05 +01:00
script for easy bulk container migrate via SSH between instalations of usl-mm, is also possible use it in non-interactive mode with parameters in this order: container-name, destination-host, destination-port(optional)
2020-05-16 12:18:54 +02:00
zfs-backup-mm-example-config ->
2020-05-17 11:06:17 +02:00
example config for zfs-backup-mm script, that backup all running containers, except those with "testing" or "deluge "in container name.
2018-09-02 13:01:37 +02:00
setup-usl-mm_install_requirements ->
install dialog utility
setup-usl-mm
1. Pre-reboot script ->
2019-11-08 13:39:46 +01:00
install zfs-utils,
2018-09-02 13:01:37 +02:00
change timezone to Prague,
crypt swap partition with ecryptfs-utils,
2019-04-17 15:14:29 +02:00
crypt some partition with dmcrypt to use with /var/snap/lxd/common/lxd/* and LXD ZFS storage,
2018-09-02 13:01:37 +02:00
add some config to sysctl.conf,
2019-04-17 15:14:29 +02:00
disable snapd.lxd service,
delete everything in /var/snap/lxd/common/lxd/*,
2018-09-02 13:01:37 +02:00
delete netplan, install ifupdown,
configure bridged networking (you can put LXD container to your network simple by add br0 to container),
create zpool with ashift=12,
set compression=on on crypted zpool,
2018-11-12 18:32:08 +01:00
configure zfs cache min 256MB max 1536MB,
2018-09-02 13:01:37 +02:00
do dist-upgrade,
create /root/onstart script to decrypt crypted parition with password and start lxd (you need start this script on every reboot),
reboot
2. Post-reboot script ->
2019-04-17 15:14:29 +02:00
for sure, stop snapd.lxd service and delete everything in /var/snap/lxd/common/lxd/*,
2018-09-02 13:01:37 +02:00
exec /root/onstart to decrypt partition and import zpool,
configure LXD to use encrypted partition as storage,
add some config to /root/.screenrc (for gnuscreen utility),
2019-08-18 16:37:27 +02:00
install htop mc zfsnap smartmontools screen and pv
2018-09-02 13:01:37 +02:00
2020-05-15 16:57:25 +02:00
3. Install uptrack-upgrade ->
2020-09-13 10:46:13 +02:00
install ksplice tool for kernel live patching
2020-05-15 16:57:25 +02:00
2018-09-02 13:01:37 +02:00
__Requirements:__
2020-04-03 22:10:28 +02:00
Fresh installation of Ubuntu 20.04, swap partition and some paritition to crypted data
2018-09-02 13:01:37 +02:00
__THE PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY. IT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.__
__IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW THE AUTHOR WILL BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.__