LXC containers mount options (noatime) ?

Brokolice

New Member
Aug 4, 2016
5
0
1
www.cloudocalypse.com
I have a container with heavy IO (lots of reading old files). I would like to mount its root disk with noatime option.

How to do it?

Also, is there also a way how to make proxmox use noatime even on its system disk and all newly created containers?
 
I don't think that Proxmox VE has a switch for that, but create a new template with that option or use a post-install-trigger or hook to do this. I often use my own packages to customize my machines and in their post-install hook you can do such stuff too.
 
I don't think that Proxmox VE has a switch for that, but create a new template with that option or use a post-install-trigger or hook to do this. I often use my own packages to customize my machines and in their post-install hook you can do such stuff too.

Well, PVE does the mounting (/ is on /dev/mapper/pve-vm--602--disk--1 which is a block device inaccessible from the container), so I can't see what in the template could do that..?

Also, according to https://forum.proxmox.com/threads/persistent-lxc-container-options.28648/ the mount options are not implemented in PVE.
And according to https://forum.proxmox.com/threads/where-can-i-add-noatime-to-my-lxc-containers.28638/ I can't even add it to default LXC config - proxmox ignores that - which I think it shouldn't.

So the only option is to mount / somehow manually - mount a filesystem with noatime to a directory on the PVE host manually, and then set root as directory filesystem type if that's even possible.. :-(
 
So the only option is to mount / somehow manually - mount a filesystem with noatime to a directory on the PVE host manually, and then set root as directory filesystem type if that's even possible.. :-(

Or just use ZFS, there is ext4 involved, hence at least that problem does not rise again.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!