Variable Datapart in daily-report not defined

Issue #91 resolved
Karsten Bandlow created an issue

PHP Notice: Undefined variable: datapart in /usr/local/libexec/piler/daily-report.php on line 109

Comments (9)

  1. Janos SUTO repo owner

    I've added a fix to this problem. However please show me the output of df -h, and the value of config['DATA_PARTITION']

  2. Karsten Bandlow 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

  3. Janos SUTO 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'] = '/';

  4. Janos SUTO repo owner

    do you mean that by doing so we could eliminate the $config['DATA_PARTITION'] variable?

  5. Remi S

    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.

  6. Karsten Bandlow 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.

  7. Log in to comment