Jeremy, This is indeed not really supported, though you might be able to get it to work using the following workaround: - Install the package - Symlink /opt/scalr-server/*** into /mnt/scalr-server/. Make sure you symlink *only the dirs that came with the package* (not the ones created by reconfigure) and that you symlink *the immediate children dirs*, not /opt/scalr-server itself. - Edit */opt/scalr-server/embedded/cookbooks/scalr-server/attributes/default.rb* and change *default[:scalr_server][:install_root]* to *"/mnt/scalr-server"*. - Run *scalr-server-ctl reconfigure*
Now, this will break next time you upgrade the package since default.rb will be reverted, but assuming it does work, I could expose this attribute in scalr-server.rb. However, I'd like to first understand what you're trying to do here: are you just trying to ensure your data is persisted? If so, would it be possible for you to mount at */opt/scalr-server/var/lib* instead? Cheers, -- Thomas | Product Manager @ Scalr | [email protected] | www.scalr.com | blog.scalr.com On Thu, Apr 9, 2015 at 12:13 AM, Jeremy Koerber <[email protected]> wrote: > Hi! > > Just wondering if there's a way to have the packages install to > /mnt/scalr-server instead of /opt/scalr-server. I tried just setting up a > symlink, and that seems to work fine for everything except RRD. Supervisord > complains that rrd was unable to be started: > > Chef Client failed. 27 resources updated in 31.668522857 seconds > [2015-04-08T21:40:49+00:00] ERROR: supervisor_service[rrd] > (scalr-server::group_rrd_enabled line 31) had an error: RuntimeError: > Supervisor service rrd was unable to be started > [2015-04-08T21:40:49+00:00] FATAL: Chef::Exceptions::ChildConvergeError: > Chef run process exited unsuccessfully (exit code 1) > root@ip-10-44-18-144:/home/ubuntu# less > /opt/scalr-server/embedded/cookbooks/cache/chef-stacktrace.out > > It works fine if I change /opt/scalr-server/etc/supervisor/conf.d/rrd.conf > to have: > > [program:rrd] > command=/mnt/scalr-server/embedded/bin/rrdcached -s scalr-app -l > unix:/mnt/scalr-server/var/run/rrd/rrdcached.sock -p > /mnt/scalr-server/var/run/rrd/rrdcached.pid -j > /mnt/scalr-server/var/lib/rrd/journal -F -b /mnt/scalr-server/var/lib/rrd > -B -g > > For some reason RRD doesn't seem to like the symlink and wants the direct > path. I see the following in /opt/scalr-server/var/log/supervisor/rrd.err: > > Base directory (-b) resolved via file system links! > Please consult rrdcached '-b' documentation! > > And as soon as I change the rrd.conf file and restart supervisord, it's > fine again. But it gets reset every time I run *scalr-server-ctl > reconfigure.* > > Thanks! > Jeremy > > -- > You received this message because you are subscribed to the Google Groups > "scalr-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "scalr-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
