diff options
| author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2011-03-07 14:58:01 -0800 |
|---|---|---|
| committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2011-03-07 14:58:01 -0800 |
| commit | eb6adff11987ffc6b6e386cd3a0f701b25791cd9 (patch) | |
| tree | 29f8c0b23c2cf804b438bf585ea661df9d4cc76c /usr/src | |
| parent | 40e478a3aeda8c37467d38d30b772a945042b688 (diff) | |
| download | illumos-joyent-eb6adff11987ffc6b6e386cd3a0f701b25791cd9.tar.gz | |
OS-293 increase quota for infrastructure zone's global core dataset
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/lib/brand/joyent/zone/common.ksh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr/src/lib/brand/joyent/zone/common.ksh b/usr/src/lib/brand/joyent/zone/common.ksh index 2c614ae26f..61b674b370 100644 --- a/usr/src/lib/brand/joyent/zone/common.ksh +++ b/usr/src/lib/brand/joyent/zone/common.ksh @@ -26,9 +26,15 @@ final_setup() { # Convert quota to MB and use 10% of that value for the zone core dump - # dataset + # dataset. The infrastructure zones can use 50%. if [ ! -d $ZONEPATH/cores ]; then - CORE_QUOTA=$((($ZQUOTA * 1000) / 10)) + case $ZONENAME in + adminui|assets|atropos|ca|capi|dhcpd|mapi|portal| \ + pubapi|rabbitmq) + CORE_QUOTA=$((($ZQUOTA * 1000) / 2));; + *) + CORE_QUOTA=$((($ZQUOTA * 1000) / 10));; + esac zfs create -o quota=${CORE_QUOTA}m -o compression=gzip \ $PDS_NAME/$bname/cores fi |
