diff --git a/doc/ariane.md b/doc/ariane.md index 5122536..8e25175 100644 --- a/doc/ariane.md +++ b/doc/ariane.md @@ -129,3 +129,9 @@ mdadm --misc --detail /dev/md0 echo check > /sys/block/md0/md/sync_action watch -n 0.1 cat /proc/mdstat ``` +## Shutdown System +```shell +# stop all LXC containers +zfs_mount.sh unmount +halt -p +``` diff --git a/doc/lxc.md b/doc/lxc.md new file mode 100644 index 0000000..2a3f50d --- /dev/null +++ b/doc/lxc.md @@ -0,0 +1,11 @@ +# LXC container +## edit config +```shell +vi /var/lib/lxc/lxc-container-01/config +``` +## manage container +```shell +lxc-start -n lxc-container-01 +lxc-attach -n lxc-container-01 +lxc-stop -n lxc-container-01 +```