Proxmox and LXC: Set noatime for LXC-guests

SPQRInc

Member
Jul 27, 2015
57
1
6
Hello,

I would like to use noatime-attibute to improve disk-performance on my PVE-Server:

On the host I could change /etc/fstab to

Code:
[FONT=Menlo]# /etc/fstab: static file system information.[/FONT]
[FONT=Menlo]#[/FONT]
[FONT=Menlo]# Use 'blkid' to print the universally unique identifier for a[/FONT]
[FONT=Menlo]# device; this may be used with UUID= as a more robust way to name devices[/FONT]
[FONT=Menlo]# that works even if disks are added and removed. See fstab(5).[/FONT]
[FONT=Menlo]#[/FONT]
[FONT=Menlo]# <file system> <mount point>   <type>  <options>       <dump>  <pass>[/FONT]
[FONT=Menlo]# / was on /dev/sda4 during installation[/FONT]
[FONT=Menlo]UUID=400b1366-3cb9-40fd-861b-d0d17a6f1299 /               ext4    errors=remount-ro,noatime 0       1[/FONT]
[FONT=Menlo]# /boot was on /dev/sda3 during installation[/FONT]
[FONT=Menlo]UUID=1a6fd4e0-a73c-4467-aade-3a3998ce15b6 /boot           ext4    defaults        0       2[/FONT]
[FONT=Menlo]# swap was on /dev/sda2 during installation[/FONT]
[FONT=Menlo]UUID=64e76543-5521-4b92-9321-d9af31d46c53 none            swap    sw              0       0[/FONT]
[FONT=Menlo]

Now I found some HowTo's where the following is recommended to set noatime-attrib to OpenVZ-guests:

Code:
vzctl set 101 --noatime yes --save

Now I would have to use pct to set this attribute or isn't it necessary at all?[/FONT]
 

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!