NFS mount on LXC container
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have been testing NFS mounts on LXC containers and they work mostly ok after you have modified App-Armour settings on the host. Problems arise when the LXC containers are moved or host-node restarts.
LXC container does not always seem to honor the /etc/fstab
settings which results in mounts not working which results in Apache and email braking down because they are stored on NFS share somewhere else.
My fstab contains:
10.10.20.20:/Q1vmail /var/vmail nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
I'm wondering what kind of solutions you are familiar with to combat this problem?
How can I automate a "test" that checks if NFS share is mounted and if it's not then tries "mount -a" again?
lxc proxmox
add a comment |Â
up vote
0
down vote
favorite
I have been testing NFS mounts on LXC containers and they work mostly ok after you have modified App-Armour settings on the host. Problems arise when the LXC containers are moved or host-node restarts.
LXC container does not always seem to honor the /etc/fstab
settings which results in mounts not working which results in Apache and email braking down because they are stored on NFS share somewhere else.
My fstab contains:
10.10.20.20:/Q1vmail /var/vmail nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
I'm wondering what kind of solutions you are familiar with to combat this problem?
How can I automate a "test" that checks if NFS share is mounted and if it's not then tries "mount -a" again?
lxc proxmox
This is in my fstab: 10.10.20.20:/Q1vmail /var/vmail nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
â SamTzu
Apr 19 at 10:56
stat -f -c %T /var/vmail
â A.B
May 6 at 18:10
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have been testing NFS mounts on LXC containers and they work mostly ok after you have modified App-Armour settings on the host. Problems arise when the LXC containers are moved or host-node restarts.
LXC container does not always seem to honor the /etc/fstab
settings which results in mounts not working which results in Apache and email braking down because they are stored on NFS share somewhere else.
My fstab contains:
10.10.20.20:/Q1vmail /var/vmail nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
I'm wondering what kind of solutions you are familiar with to combat this problem?
How can I automate a "test" that checks if NFS share is mounted and if it's not then tries "mount -a" again?
lxc proxmox
I have been testing NFS mounts on LXC containers and they work mostly ok after you have modified App-Armour settings on the host. Problems arise when the LXC containers are moved or host-node restarts.
LXC container does not always seem to honor the /etc/fstab
settings which results in mounts not working which results in Apache and email braking down because they are stored on NFS share somewhere else.
My fstab contains:
10.10.20.20:/Q1vmail /var/vmail nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
I'm wondering what kind of solutions you are familiar with to combat this problem?
How can I automate a "test" that checks if NFS share is mounted and if it's not then tries "mount -a" again?
lxc proxmox
edited Jun 17 at 19:00
myrdd
1759
1759
asked Apr 19 at 10:53
SamTzu
247
247
This is in my fstab: 10.10.20.20:/Q1vmail /var/vmail nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
â SamTzu
Apr 19 at 10:56
stat -f -c %T /var/vmail
â A.B
May 6 at 18:10
add a comment |Â
This is in my fstab: 10.10.20.20:/Q1vmail /var/vmail nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
â SamTzu
Apr 19 at 10:56
stat -f -c %T /var/vmail
â A.B
May 6 at 18:10
This is in my fstab: 10.10.20.20:/Q1vmail /var/vmail nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
â SamTzu
Apr 19 at 10:56
This is in my fstab: 10.10.20.20:/Q1vmail /var/vmail nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
â SamTzu
Apr 19 at 10:56
stat -f -c %T /var/vmail
â A.B
May 6 at 18:10
stat -f -c %T /var/vmail
â A.B
May 6 at 18:10
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438696%2fnfs-mount-on-lxc-container%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
This is in my fstab: 10.10.20.20:/Q1vmail /var/vmail nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
â SamTzu
Apr 19 at 10:56
stat -f -c %T /var/vmail
â A.B
May 6 at 18:10