[PVE-User] add default mount options to lxc containers

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Jul 26 15:53:17 CEST 2016


> On July 26, 2016 at 3:45 PM Marc Cousin <cousinmarc at gmail.com> wrote:
> 
> 
> Hi,
> 
> I'm using LXC on servers which have storage with battery, so I'd like to
> mount those filesystems with nobarrier. Is there a way I can specify
> this mount option to containers (all containers at once would be even
> better of course). I'm using LVM-Thin/ext4 containers (not shared
> filesystems).

User-defined mount options are currently not supported.
However, you can use tune2fs to set this particular option on the images
for now.
(Should look like this:
# tune2fs -o nobarrier /dev/pve/vm-123-disk-1
Note that it might take a few seconds due to the multiple-mount-protection flag)




More information about the pve-user mailing list