Results 1 to 5 of 5

Thread: Install ZRM for MySQL as non-root

  1. #1

    Question Install ZRM for MySQL as non-root

    Hi all,

    I'm working on an installation where it's not possible to install ZRM as root due to permissions for /etc & /var subdirs. So I looked into the source code and it seems that it should be possible to patch the file "Common.pm" to look for configuration files and store log files off a different directory. Has anybody tried it?

    Any feedback is greatly appreciated.

    Cheers,
    G

  2. #2
    Join Date
    Oct 2006
    Posts
    199

    Default

    Quote Originally Posted by gnarvaja View Post
    Hi all,

    I'm working on an installation where it's not possible to install ZRM as root due to permissions for /etc & /var subdirs. So I looked into the source code and it seems that it should be possible to patch the file "Common.pm" to look for configuration files and store log files off a different directory. Has anybody tried it?

    Any feedback is greatly appreciated.

    Cheers,
    G
    I would recommend you download the sources and then run a full build rather than change the paths. This way you will be able to make changes, build and check if things are ok.

    The paths that you will be most interested in are
    During build:
    /usr/bin
    /usr/lib
    /usr/share
    /etc
    /var/log
    /var/lib

    During runtime, the code uses (hardcoded paths)
    /etc/mysql-zrm
    /var/log

    /var/lib is not necessary to change unless you want to change the default.

    What I would suggest you do is to prepend all of these paths with a path where you have access to.

    Changing the build time paths are very easy since you need to only touch the Makefiles and change the referenced paths.

    For changing the hard coded paths in code, the following files have the hardcoded paths
    src/Common.pm.in
    src/mysql-zrm-migrate-file-ownership.pl.in
    src/mysql-zrm-purge.pl.in
    src/mysql-zrm-reporter.pl.in
    src/mysql-zrm-scheduler.pl.in
    src/zrm-pre-scheduler.pl.in
    templates/socket/client.pl.in

    Hope this helps.

  3. #3

    Smile

    This is a great suggestion. Thank you very much.

  4. #4

    Question

    Quote Originally Posted by kkg View Post
    I would recommend you download the sources and then run a full build rather than change the paths. This way you will be able to make changes, build and check if things are ok.
    ...
    I just realized that the files that are called "Source" in the [URL="http://www.zmanda.com/download-zrm.php"]download page[/URL] contain the compiled scripts. There are no *.in or Makefile files or src subdir.

    These are the URLs for source when selecting version 2.1:

    [url]http://www.zmanda.com/downloads/community/ZRM-MySQL/2.1/Source/MySQL-zrm-2.1-release.tar.gz[/url]
    [url]http://www.zmanda.com/downloads/community/ZRM-MySQL/2.1/Source/MySQL-zrm-2.1.tar.gz[/url]

    Am I missing something? Can you point me to the source as per your suggestion?

    Thanks in advance,
    G

  5. #5
    Join Date
    Oct 2006
    Posts
    199

    Default

    Quote Originally Posted by gnarvaja View Post
    I just realized that the files that are called "Source" in the [URL="http://www.zmanda.com/download-zrm.php"]download page[/URL] contain the compiled scripts. There are no *.in or Makefile files or src subdir.

    These are the URLs for source when selecting version 2.1:

    [url]http://www.zmanda.com/downloads/community/ZRM-MySQL/2.1/Source/MySQL-zrm-2.1-release.tar.gz[/url]
    [url]http://www.zmanda.com/downloads/community/ZRM-MySQL/2.1/Source/MySQL-zrm-2.1.tar.gz[/url]

    Am I missing something? Can you point me to the source as per your suggestion?

    Thanks in advance,
    G
    Oops, I was thinking the sources contained the actual sources and not the scripts that was fully built.

    In this case, the 'simplest' thing you can do is to grep for all of the paths that I mentioned and if appropriate add the prefix path I talked about.

    --kkg

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •