Hi,
I've created 3Tb zfs raw device, and got below messages:
[Dec 3 10:18:20.785] Server {0x803809800} WARNING: disk header
different for disk /dev/zvol/zroot/trafficserver: clearing the disk
[Dec 3 10:18:20.788] Server {0x803807400} NOTE: logging
initialized[15], logging_mode = 3
[Dec 3 10:18:20.790] Server {0x80380a800} NOTE: Clearing Disk:
/dev/zvol/zroot/trafficserver
[Dec 3 10:18:20.808] Server {0x80380a800} NOTE: clearing cache
directory '/dev/zvol/zroot/trafficserver 3153920:2147466879'
[Dec 3 10:18:20.812] Server {0x803807400} NOTE: traffic server running
[Dec 3 10:18:29.916] Server {0x803811c00} WARNING: cache disk operation
failed WRITE -1 22
[Dec 3 10:18:29.948] Server {0x80380c000} WARNING: unable to clear
cache directory '/dev/zvol/zroot/trafficserver 3153920:2147466879'
[Dec 3 10:18:29.948] Server {0x80380c400} WARNING: failed to initialize
the cache for http: cache disabled
[Dec 3 10:18:29.948] Server {0x80380c400} NOTE: cache disabled
After I've changed it to cache-file with size 1024000M, file with
strange size 15T was created.
# ls -lh /cache/trafficserver/
-rw-r--r-- 1 nobody www 15T Dec 3 10:26 cache.db
And got the same issue:
[Dec 3 10:24:10.873] Server {0x803809800} WARNING: disk header
different for disk /cache/trafficserver/cache.db: clearing the disk
[Dec 3 10:24:10.875] Server {0x803809c00} NOTE: Clearing Disk:
/cache/trafficserver/cache.db
[Dec 3 10:24:10.876] Server {0x803807400} NOTE: logging
initialized[15], logging_mode = 3
[Dec 3 10:24:10.889] Server {0x803809c00} NOTE: clearing cache
directory '/cache/trafficserver/cache.db 3088384:2097143432'
[Dec 3 10:24:10.902] Server {0x803807400} NOTE: traffic server running
[Dec 3 10:24:20.004] Server {0x803813000} WARNING: cache disk operation
failed WRITE -1 22
[Dec 3 10:24:20.065] Server {0x80380c000} WARNING: unable to clear
cache directory '/cache/trafficserver/cache.db 3088384:2097143432'
[Dec 3 10:24:20.065] Server {0x80380c400} WARNING: failed to initialize
the cache for http: cache disabled
[Dec 3 10:24:20.065] Server {0x80380c400} NOTE: cache disabled
BTW, if I set cache-file size to 102400M then 1.6T cached.db created,
1024M = 16G etc.
On 01.12.2012 21:02, Igor Galić wrote:
>
> ----- Original Message -----
>> I have already built the 3.3.1 dev version under FreeBSD and added
>> the
>> raw (zfs) disk to storage.config.
>> All looks good at the moment, but full testing I'll be able to make
>> in
>> Monday at job.
> \o/
>
> Awesome. Your feedback is very appreciated. I have proposed this
> patch for the next stable release, but haven't had the opportunity
> to extensively test it myself
>
> i
>
>> Thanks,
>>
>> On 12/01/2012 06:08 PM, James Peach wrote:
>>> On 30/11/2012, at 10:55 PM, Vladyslav Bachynskyi
>>> <[email protected]> wrote:
>>>
>>>> Hi All.
>>>>
>>>> I'm working on optimization of our CDN, and ATS is looks like a
>>>> solution that can fit our requirements.
>>>> But I'm in stuck at the moment :(
>>>>
>>>> Trying to make work trafficserver-3.0.5 (from the ports tree) on
>>>> FreeBSD 9.1, but I found, that I can't create storage more that
>>>> 1.5Tb (while I need much larger storage ~50Tb if it's possible
>>>> with ATS at all)
>>>>
>>>> Got message:
>>>>
>>>> [Nov 30 16:16:23.669] Server {34418534400} WARNING: cache disk
>>>> operation failed WRITE -1 22
>>>> [Nov 30 16:16:23.714] Server {34418512896} WARNING: unable to
>>>> clear cache directory '/cache/trafficserver/cache.db
>>>> 589824:393207737'
>>>> [Nov 30 16:16:23.715] Server {34418513920} WARNING: failed to
>>>> initialize the cache for http: cache disabled
>>>> [Nov 30 16:16:23.715] Server {34418513920} NOTE: cache disabled
>>>> [TrafficManager] ==> Cleaning up and reissuing signal #15
>>>>
>>>> If I set storage for example 1Tb everything work as expected
>>>> without warnings.
>>>>
>>>> Tried to use raw device as storage, and got message "Currently Raw
>>>> Disks are not supported":
>>> Igor added FreeBSD raw disk support recently, but I don't think
>>> that's in any released version. Can you build master from
>>> git://git.apache.org/trafficserver.git and test that?
>>>
>>>> [Nov 30 16:57:07.928] Server {34418488320} WARNING: Currently Raw
>>>> Disks are not supported
>>>> [Nov 30 16:57:07.928] Server {34418488320} WARNING: could not
>>>> initialize storage "/dev/da0" [Currently Raw Disks are not
>>>> supported]
>>>> [Nov 30 16:57:07.928] Server {34418488320} NOTE: cache clustering
>>>> disabled
>>>>
>>>> If I missed the same thread, where the same issue was solved,
>>>> please point me on that.
>>>> Any help will be very appreciated.
>>>> Thanks in advance.
>>>>
>>