Variable Datapart in daily-report not defined
PHP Notice: Undefined variable: datapart in /usr/local/libexec/piler/daily-report.php on line 109
Comments (9)
-
repo owner -
reporter $config['DATA_PARTITION'] = '/var';
Filesystem Size Used Avail Use% Mounted on /dev/vzfs 250G 110G 141G 44% / tmpfs 4.0G 0 4.0G 0% /lib/init/rw tmpfs 4.0G 0 4.0G 0% /dev/shm
-
repo owner The problem is that you don't have a /var partition. Set the following, and it will show the proper numbers, as well as make the php notice go away:
$config['DATA_PARTITION'] = '/';
-
repo owner - changed status to resolved
-
reporter Maybe it is nicer to do a df /var instead of df
-
repo owner do you mean that by doing so we could eliminate the $config['DATA_PARTITION'] variable?
-
The space projection uses that partition to calculate space left on the specific partition where data is stored, so I'd rather not remove the ability to configure it per installation. The default is /var, but I have everything stored on /data with symlinks to /var, so I need df /data. Karsten's setup needs '/', and there are probably other setups out there.
-
repo owner ok, understood
-
reporter $config['DATA_PARTITION'] = /var works well on my configuration if df /var used. In the standard config DATA_PARTITION shows to /var. Symlinks are not very nice, so we need to split binaries and data or the mountpoint one level deeper (/var/piler/datadir) and $config['DATA_PARTITION'] = /var/piler/datadir. In this case df /var/piler/datadir shows the right size from the right partition.
- Log in to comment
I've added a fix to this problem. However please show me the output of df -h, and the value of config['DATA_PARTITION']