[Varnish] #1682: If file-storage pre-created and more than 50% of the file-system space, Varnish does not start.

Varnish varnish-bugs at varnish-cache.org
Sun Feb 22 16:30:34 CET 2015


#1682: If file-storage pre-created and more than 50% of the file-system space,
Varnish does not start.
-------------------+----------------------
 Reporter:  xcir   |       Type:  defect
   Status:  new    |   Priority:  normal
Milestone:         |  Component:  varnishd
  Version:  4.0.3  |   Severity:  normal
 Keywords:         |
-------------------+----------------------
 Hi, I pre-create the storage file using the dd(1).

 Unfortunately, I catch the "Error: (-sfile) size "XXG": larger than file
 system" message at the varnish start.

 And, If storage is full, Varnish can't restart.(specified size > file-
 system space)

 https://github.com/varnish/Varnish-
 Cache/commit/551e0de9e89a83b6b465fc8800dfc9b47217a9dc

 This commit does not care pre-allocation size.

 I think that it is necessary to check the real size.

 '''Storage is pre-created / Unpatched'''
 {{{
 root at varnish4:~# /var/opt/varnish-4.0.3/sbin/varnishd -V
 varnishd (varnish-4.0.3 revision b8c4a34)
 Copyright (c) 2006 Verdens Gang AS
 Copyright (c) 2006-2014 Varnish Software AS

 root at varnish4:~# df
 Filesystem     1K-blocks     Used Available Use% Mounted on
 /dev/xvda1     101195160 52082336  43972344  55% /
 udev              975672        4    975668   1% /dev
 tmpfs             199408      188    199220   1% /run
 none                5120        0      5120   0% /run/lock
 none              997024        0    997024   0% /run/shm

 root at varnish4:~# /var/opt/varnish-4.0.3/sbin/varnishd -a :6083 -T
 localhost:6084 -f /etc/varnish/default.vcl -S /etc/varnish/secret -p
 feature=+esi_disable_xml_check -s
 file,/var/lib/varnish/varnish_storage.bin,50G
 Error: (-sfile) size "50G": larger than file system
 }}}

 '''Storage is pre-created / patched'''
 {{{
 root at varnish4:~#  /var/opt/varnish-4branch/sbin/varnishd -V
 varnishd (varnish-4.0.3 revision b8c4a34)
 Copyright (c) 2006 Verdens Gang AS
 Copyright (c) 2006-2014 Varnish Software AS

 root at varnish4:~# df
 Filesystem     1K-blocks     Used Available Use% Mounted on
 /dev/xvda1     101195160 52082336  43972344  55% /
 udev              975672        4    975668   1% /dev
 tmpfs             199408      188    199220   1% /run
 none                5120        0      5120   0% /run/lock
 none              997024        0    997024   0% /run/shm

 root at varnish4:~# /var/opt/varnish-4branch/sbin/varnishd -a :6083 -T
 localhost:6084 -f /etc/varnish/default.vcl -S /etc/varnish/secret -p
 feature=+esi_disable_xml_check -s
 file,/var/lib/varnish/varnish_storage.bin,50G

 root at varnish4:~# ps axut|grep varn
 root     23799 15.5  4.2 114988 84232 ?        SLs  23:28   0:00 /var/opt
 /varnish-4branch/sbin/varnishd -a :6083 -T localhost:6084 -f
 /etc/varnish/default.vcl -S /etc/varnish/secret -p
 feature=+esi_disable_xml_check -s
 file,/var/lib/varnish/varnish_storage.bin,50G
 nobody   23801  4.0  4.2 53475620 84936 ?      Sl   23:28   0:00 /var/opt
 /varnish-4branch/sbin/varnishd -a :6083 -T localhost:6084 -f
 /etc/varnish/default.vcl -S /etc/varnish/secret -p
 feature=+esi_disable_xml_check -s
 file,/var/lib/varnish/varnish_storage.bin,50G
 root     24019  0.0  0.0   9388   932 pts/2    R+   23:28   0:00 grep
 --color=auto varn


 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1682>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list