varnish backing file gone missing

Matt Schurenko MSchurenko at airg.com
Mon Sep 26 21:54:54 CEST 2011


Update:

I noticed that I mistakenly created a 40GB  zero-filled file rather than a 48GB one:

dd if=/dev/zero of=/tmp/varnish-cache bs=1G count=40

Not sure if that would make any difference.


Matt Schurenko
Systems Administrator

airG(r) Share Your World
Suite 710, 1133 Melville Street
Vancouver, BC  V6E 4E5
P: +1.604.408.2228
F: +1.866.874.8136
E: MSchurenko at airg.com
W: www.airg.com<http://www.airg.com>
From: varnish-misc-bounces at varnish-cache.org [mailto:varnish-misc-bounces at varnish-cache.org] On Behalf Of Matt Schurenko
Sent: September-26-11 12:43 PM
To: varnish-misc at varnish-cache.org
Subject: varnish backing file gone missing

I just noticed that the backing file I configured varnish to use is now gone:

[root at mvp13 ~]# ps -ef | grep varnishd
root      4419     1  0 Sep07 ?        00:00:00 /usr/local/sbin/varnishd -s file,/tmp/varnish-cache,48G -T 127.0.0.1:2000 -a 0.0.0.0:80 -t 604800 -f /usr/local/etc/varnish/default.vcl -p http_headers 384 -p connect_timeout 4.0

[root at mvp13 ~]# ls /tmp/varnish-cache
ls: /tmp/varnish-cache: No such file or directory

If I do an lsof I see this:

varnishd   4420 nobody    4u      REG                8,1 51539607552   62160904 /tmp/varnish-cache (deleted)

I'm pretty sure I never deleted it. Is this normal behaviour? What are the implications of this file being removed while varnish is running? Varnishd still appears to be working fine. I have another varnish server running but the backing file is still there. BTW I'm running varnish version 2.1.5.

Thanks,


Matt Schurenko
Systems Administrator

airG(r) Share Your World
Suite 710, 1133 Melville Street
Vancouver, BC  V6E 4E5
P: +1.604.408.2228
F: +1.866.874.8136
E: MSchurenko at airg.com
W: www.airg.com<http://www.airg.com>

airG is one of BC's Top 55 Employers and
Canada's Top Employers for Young People

P Please consider the environment before printing this e-mail.
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material communicated under NDA. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110926/dd42a7f0/attachment-0003.html>


More information about the varnish-misc mailing list