[Ovirt-devel] [PATCH node] add noatime mount option to /config /var/log and /data
Darryl L. Pierce
dpierce at redhat.com
Wed Mar 3 20:21:32 UTC 2010
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-devel
ACK.
--
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>
More information about the ovirt-devel
mailing list