On 10/22/2013 08:25 AM, Kir Kolyshkin wrote:
On 10/22/2013 05:07 AM, Toke Høiland-Jørgensen wrote:
I'm trying to mount a container filesystem as noatime,nodiratime; however, when I
set MOUNT_OPTS="noatime,nodiratime" in the .conf file, I get this error
when starting the container:

Failed to mount image: Error in ploop_mount_fs (ploop.c:1109): Can't mount file system dev=/dev/ploop17691p1 target=/vz/root/101 data='-o noatime,nodiratime': Invalid argument [21]

How do I get that to work? :)


There is no need to use noatime, because relatime option is used by
default on ext4 (which you can check if you enter a container and run
cat /proc/mounts).

MOUNT_OPTS can be used to specify FS-specific options (i.e. data argument of mount() system call), in addition to those specified by ploop library. For the list of such options specific to ext4,
see https://www.kernel.org/doc/Documentation/filesystems/ext4.txt
_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users

Reply via email to