Joey Boggs
2010-Feb-05 15:41 UTC
[Ovirt-devel] [PATCH node] add noatime mount option to /config /var/log and /data
--- 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
Darryl L. Pierce
2010-Mar-03 20:21 UTC
[Ovirt-devel] [PATCH node] add noatime mount option to /config /var/log and /data
On Fri, Feb 05, 2010 at 10:41:44AM -0500, Joey Boggs wrote:> --- > 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 > > _______________________________________________ > Ovirt-devel mailing list > Ovirt-devel at redhat.com > https://www.redhat.com/mailman/listinfo/ovirt-develACK. -- Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc. Delivering value year after year. Red Hat ranks #1 in value among software vendors. http://www.redhat.com/promo/vendor/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20100303/47175a1f/attachment.sig>
Joey Boggs
2010-Mar-05 14:45 UTC
[Ovirt-devel] [PATCH node] add noatime mount option to /config /var/log and /data
On 02/05/2010 10:41 AM, Joey Boggs wrote:> --- > 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 >pushed