[Ovirt-devel] [PATCH node] add noatime mount option to /config /var/log and /data

Joey Boggs jboggs at redhat.com
Fri Feb 5 15:41:44 UTC 2010


---
 recipe/ovirt-node-image.ks   |    2 +-
 scripts/ovirt-config-storage |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/recipe/ovirt-node-image.ks b/recipe/ovirt-node-image.ks
index 0e56168..270eb77 100644
--- a/recipe/ovirt-node-image.ks
+++ b/recipe/ovirt-node-image.ks
@@ -30,7 +30,7 @@ mkdir -p /boot
 mkdir -p /config
 mkdir -p /data
 mkdir -p /liveos
-echo "/dev/HostVG/Config /config ext3 defaults,noauto 0 0" >> /etc/fstab
+echo "/dev/HostVG/Config /config ext3 defaults,noauto,noatime 0 0" >> /etc/fstab
 %end
 
 %post
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index 460588b..2dc508f 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -522,7 +522,7 @@ perform_partitioning()
         lvcreate --name Logging --size ${LOGGING_SIZE}M /dev/HostVG
         mke2fs -j /dev/HostVG/Logging -L "LOGGING"
         tune2fs -c 0 -i 0 /dev/HostVG/Logging
-        echo "/dev/HostVG/Logging /var/log ext3 defaults 0 0" >> /etc/fstab
+        echo "/dev/HostVG/Logging /var/log ext3 defaults,noatime 0 0" >> /etc/fstab
     fi
 
     local use_data=1
@@ -539,7 +539,7 @@ perform_partitioning()
     if [ "$use_data" = 0 ]; then
         mke2fs -j /dev/HostVG/Data -L "DATA"
         tune2fs -c 0 -i 0 /dev/HostVG/Data
-        echo "/dev/HostVG/Data /data ext3 defaults 0 0" >> /etc/fstab
+        echo "/dev/HostVG/Data /data ext3 defaults,noatime 0 0" >> /etc/fstab
         echo "/data/images /var/lib/libvirt/images bind bind 0 0" >> /etc/fstab
         echo "/data/core /var/log/core bind bind 0 0" >> /etc/fstab
     fi
-- 
1.6.6




More information about the ovirt-devel mailing list