NFS fix on LXC Host Server Rumi, March 17, 2016July 28, 2018 NFS client on LXC seems do not work. Why? The problem is apparmor on the real machine that block any appempt to mount NFS volumes. In order to try to minimize the security changes on apparmor I add the following lines in/etc/apparmor.d/lxc/lxc-default # allow nfs mount everywhere mount fstype=rpc_pipefs, mount fstype=nfs, Then $ /etc/init.d/apparmor reload And now I was able to restart nfs-common and nfs-kernel-server without errors ! Update!!!!! nano /etc/apparmor.d/lxc/lxc-default Update the file as below- # Do not load this file. Rather, load /etc/apparmor.d/lxc-containers, which # will source all profiles under /etc/apparmor.d/lxc profile lxc-container-default flags=(attach_disconnected,mediate_deleted) { #include <abstractions/lxc/container-base> # the container may never be allowed to mount devpts. If it does, it # will remount the host's devpts. We could allow it to do it with # the newinstance option (but, right now, we don't). # deny mount fstype=devpts, # allow nfs mount everywhere mount fstype=rpc_pipefs, mount fstype=nfs, } sasasa Now read the other article on how to connect to NFS server from LXC container Related Administrations Configurations (Linux) LXCNFSProxmoxProxmox4
Debian Wheezy repository September 2, 2019 Debian wheezy is no longer supported. It is two major releases older than stable. It has not received any updates since 31 May 2018. The resolution is to dist-upgrade to oldstable, or to stable. You can still use the archive repository but there is no more updates: deb http://archive.debian.org/debian wheezy… Read More
Install Percona XtraDB Cluster for MySQL 5.7 on Debian 8 February 18, 2019 First of all, why we choose three nodes and not only two? In any cluster, the number of nodes should be odd, so in the case of disconnection of a node, we assume that the highest group of servers has the fresh data, and should be replicated to the down node… Read More
Clean up boot partition – Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64 December 27, 2018 Case I: if /boot is not 100% full and apt is working 1. Check the current kernel version $ uname -r It will shows the list like below: 3.19.0-64-generic 2. Remove the OLD kernels 2.a. List the old kernel $ sudo dpkg –list ‘linux-image*’|awk ‘{ if ($1==”ii”) print $2}’|grep… Read More