From d0e65d7c3429d3a582632005d526c668f071c3fe Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Mon, 30 Mar 2015 13:54:20 +0530 Subject: [PATCH] systemvmtemplate: use separate partition for /var/log /var/log fills up /var and fails operation of normal services. This fix restricts /var/log to 100-200M. The fix for CLOUDSTACK-6885 tries to make sure we don't keep a lot of logs. Signed-off-by: Rohit Yadav --- .../definitions/systemvmtemplate/preseed.cfg | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tools/appliance/definitions/systemvmtemplate/preseed.cfg b/tools/appliance/definitions/systemvmtemplate/preseed.cfg index f1f4f6418ae..9f7c4d00e64 100644 --- a/tools/appliance/definitions/systemvmtemplate/preseed.cfg +++ b/tools/appliance/definitions/systemvmtemplate/preseed.cfg @@ -50,7 +50,7 @@ d-i partman-auto/expert_recipe string \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /boot } \ . \ - 400 40 500 ext4 \ + 500 40 800 ext4 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ / } \ @@ -60,27 +60,32 @@ d-i partman-auto/expert_recipe string \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /home } \ . \ - 700 70 1100 ext4 \ + 800 60 1400 ext4 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /usr } \ . \ - 400 40 500 ext4 \ + 100 40 200 ext4 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /opt } \ . \ - 450 70 1000 ext4 \ + 600 70 1200 ext4 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /var } \ . \ - 50 60 100 ext4 \ + 200 50 500 ext4 \ + method{ format } format{ } \ + use_filesystem{ } filesystem{ ext4 } \ + mountpoint{ /var/log } \ + . \ + 100 90 200 ext4 \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /tmp } \ . \ - 70 100 256 linux-swap \ + 256 100 1024 linux-swap \ method{ swap } format{ } \ . d-i partman/confirm_write_new_label boolean true