[
https://issues.apache.org/jira/browse/TS-1319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13412956#comment-13412956
]
Jan van Doorn commented on TS-1319:
-----------------------------------
git diff against 3.3.0-dev that fixes the disk clearing each time ats starts (I
hope I did this right?):
diff --git a/iocore/cache/Cache.cc b/iocore/cache/Cache.cc
index d9d772a..80f4f96 100644
--- a/iocore/cache/Cache.cc
+++ b/iocore/cache/Cache.cc
@@ -2358,11 +2358,11 @@ cplist_reconfigure()
percent_remaining -= (config_vol->size < 128) ? 0 :
config_vol->percent;
}
if (config_vol->size < 128) {
- Warning("the size of volume %d (%d) is less than the minimum required
volume size %d",
- config_vol->number, config_vol->size, 128);
+ Warning("the size of volume %d (%"PRId64") is less than the minimum
required volume size %d",
+ config_vol->number, (int64_t)config_vol->size, 128);
Warning("volume %d is not created", config_vol->number);
}
- Debug("cache_hosting", "Volume: %d Size: %d", config_vol->number,
config_vol->size);
+ Debug("cache_hosting", "Volume: %d Size: %"PRId64, config_vol->number,
(int64_t)config_vol->size);
}
cplist_update();
/* go through volume config and grow and create volumes */
diff --git a/iocore/cache/P_CacheHosting.h b/iocore/cache/P_CacheHosting.h
index a281985..2f5c7e3 100644
--- a/iocore/cache/P_CacheHosting.h
+++ b/iocore/cache/P_CacheHosting.h
@@ -162,7 +162,7 @@ struct ConfigVol
{
int number;
int scheme;
- int size;
+ off_t size;
bool in_percent;
int percent;
CacheVol *cachep;
> Large cache (> 16TB) not working?
> ---------------------------------
>
> Key: TS-1319
> URL: https://issues.apache.org/jira/browse/TS-1319
> Project: Traffic Server
> Issue Type: Bug
> Components: Cache
> Affects Versions: 3.2.0
> Environment: Centos 6.1
> Reporter: Jan van Doorn
> Assignee: James Peach
> Fix For: 3.3.0
>
>
> Is there a maximum disk cache size in ATS 3.20? I seem to be getting this
> WARNING/Error:
> --
> [TrafficServer] using root directory '/opt/trafficserver'
> [Jun 21 21:57:10.038] {0x7f4d67aa67e0} STATUS: opened
> /opt/trafficserver/var/log/trafficserver/diags.log
> [Jun 21 21:57:10.038] {0x7f4d67aa67e0} NOTE: updated diags config
> [Jun 21 21:57:10.042] Server {0x7f4d67aa67e0} NOTE: cache clustering disabled
> [Jun 21 21:57:10.083] Server {0x7f4d67aa67e0} NOTE: cache clustering disabled
> [Jun 21 21:57:10.182] Server {0x7f4d67aa67e0} NOTE: logging initialized[11],
> logging_mode = 3
> [Jun 21 21:57:10.183] Server {0x7f4d67aa67e0} NOTE: loading plugin
> '/opt/trafficserver/libexec/trafficserver/stats_over_http.so'
> [Jun 21 21:57:10.185] Server {0x7f4d67aa67e0} NOTE: traffic server running
> [Jun 21 21:57:10.189] Server {0x7f4d63799700} WARNING: not enough space to
> increase volume: [1] to size: [20585472]
> [Jun 21 21:57:10.189] Server {0x7f4d63799700} NOTE: edit the volume.config
> file and restart traffic_server
> [Jun 21 21:57:10.189] Server {0x7f4d63799700} NOTE: cache disabled
> --
> When I try to use more than a certain amount (16TB?) of cache, and the "cache
> disabled" message doesn't seem good.
> I have a system with 24 600GB drives that works well, but a system with 24
> 900GB drives will have the above error, unless I disable at least 5 drives in
> storage.config.
> I tried splitting the cache up in to 2 volumes, each 50% in volume.config,
> but I still get the same error.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira