Re: RPM install but data on different drives?

Benjamin Reed <[email protected]> Fri, 24 Oct 2014 12:10:20 -0400
Newsgroups gmane.network.opennms.install
Message-ID <[email protected]>
On 10/24/14, 11:46 AM, Les Mikesell wrote:
> Oops - I accidentally hit something that sent before I was ready
> there.  Anyway, I want logs one one volume, postgres data one another
> (probably the default /var) and the rrds on another.   The rpm
> installer has some some symlinks to put things under /var and
> complains if you undo that.    Using double symlinks to point the rrd
> data back to something under /opt works, but seems a little clunky.
> Is there some better way to do it that won't break in future updates?

It complains because the install scripts in the RPM spec are set up to
use RPM's "--relocate" option.  I'm not sure yum lets you do it during
install time, but you can install with RPM the first time and then yum
should honor the relocations on future upgrades.

  rpm --relocate /var/opennms=/opt/newpath -ivh opennms-*.rpm

/opt/opennms, /var/opennms, and /var/log/opennms are all eligible for
relocation.

-- 
Benjamin Reed
The OpenNMS Group
http://www.opennms.org/

------------------------------------------------------------------------------

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)

iD8DBQFUSnnuUu+jZtP2Zf4RAgKHAKCDN+XhMgiTI2J8V850ZtpgwubHTACeNQhi
nWud/x0imnoYTkB36pMwjMI=
=2c91
-----END PGP SIGNATURE-----