You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Troy Curtis Jr <tr...@gmail.com> on 2006/09/08 03:52:04 UTC
Two BDB questions
Ok I have two BDB questions:
First, I have heard time and time again to not USE bdb based repos on
an NFS share. My question is whether it would be safe to use
hot-backup.py or svnadmin hotcopy to access the BDB repo over NFS and
create a local copy?
Second, I have a Red Hat 8.0 system which seems to have
libdb{4.0,4.1,4.2}, and I want to install and run 4.4 (I guess the
latest is the greatest right?). So I download the db4.4 and the
configure/build goes perfectly but when I try to tell subversion to
use it (with --with-berkeley-db=/usr/local/Berkeley4.4) it still grabs
the 4.0 version! I made sure that this path was in my /etc/ld.so.conf
file, but no luck. Looking at the configure it seems to be looking
for a db4.4/db.h file, but my build does not produce a directory
named that at all.
Ok trying it on my gentoo box (I had 4.3 installed so this test works
ok) I see that it says:
checking for Berkeley DB 4.4 in /usr/local/BerkeleyDB.4.4/lib...
.....
checking for -ldb-4.4... no
Yet an 'ls /usr/local/BerkeleyDB.4.4/lib' gives:
libdb-4.4.a libdb-4.4.la libdb-4.4.so libdb-4.so libdb.a libdb.so
Any ideas (/usr/local/BerkeleyDB.4.4/lib/ is in /etc/ld.so.conf, and I
performed and env-update)?
Thanks,
Troy
--
"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Two BDB questions
Posted by Troy Curtis Jr <tr...@gmail.com>.
On 9/7/06, Ryan Schmidt <su...@ryandesign.com> wrote:
>
> On Sep 8, 2006, at 05:52, Troy Curtis Jr wrote:
>
> > Ok I have two BDB questions:
> >
> > First, I have heard time and time again to not USE bdb based repos on
> > an NFS share. My question is whether it would be safe to use
> > hot-backup.py or svnadmin hotcopy to access the BDB repo over NFS and
> > create a local copy?
>
> I have no experience with BDB repositories myself, but it does not
> sound to me as if that would be safe.
>
>
> > Second, I have a Red Hat 8.0 system which seems to have
> > libdb{4.0,4.1,4.2}, and I want to install and run 4.4 (I guess the
> > latest is the greatest right?). So I download the db4.4 and the
> > configure/build goes perfectly but when I try to tell subversion to
> > use it (with --with-berkeley-db=/usr/local/Berkeley4.4) it still grabs
> > the 4.0 version! I made sure that this path was in my /etc/ld.so.conf
> > file, but no luck. Looking at the configure it seems to be looking
> > for a db4.4/db.h file, but my build does not produce a directory
> > named that at all.
> >
> > Ok trying it on my gentoo box (I had 4.3 installed so this test works
> > ok) I see that it says:
> > checking for Berkeley DB 4.4 in /usr/local/BerkeleyDB.4.4/lib...
> > .....
> > checking for -ldb-4.4... no
> >
> > Yet an 'ls /usr/local/BerkeleyDB.4.4/lib' gives:
> > libdb-4.4.a libdb-4.4.la libdb-4.4.so libdb-4.so libdb.a libdb.so
> >
> > Any ideas (/usr/local/BerkeleyDB.4.4/lib/ is in /etc/ld.so.conf, and I
> > performed and env-update)?
>
> According to the Subversion 1.4 release notes, that is the first
> version that supports BDB 4.4. Since Subversion 1.4 is not released
> yet, you're probably using Subversion 1.3.2, so I believe that means
> you should use at most BDB 4.3.
>
> http://subversion.tigris.org/svn_1.4_releasenotes.html
>
>
I was actually useing 1.4 RC5 (sorry that I did not specify which in
my original mail), but I was able to figure out how to use it and I
will describe it here for any that had similar issues.
When you install Berkeley DB 4.4 from source, it's default location is
/usr/local/BerkeleyDB.4.4/{lib,docs,include,lib}. Of course this is
not a standard location for your libraries, so before you try to build
Subversion 1.4 you need to do the following.
(as root)
echo "/usr/local/BerkeleyDB.4.4/lib" >> /etc/ld.so.conf
/sbin/ldconfig /usr/local/BerkeleyDB.4.4
Then when you configure Subversion, make sure you give the option:
--with-berkeley-db=/usr/local/BerkeleyDB.4.4 and you should be
golden. Hope it helps!
So no other thoughts on my BerkeleyDB backup question?
--
"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Two BDB questions
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 8, 2006, at 05:52, Troy Curtis Jr wrote:
> Ok I have two BDB questions:
>
> First, I have heard time and time again to not USE bdb based repos on
> an NFS share. My question is whether it would be safe to use
> hot-backup.py or svnadmin hotcopy to access the BDB repo over NFS and
> create a local copy?
I have no experience with BDB repositories myself, but it does not
sound to me as if that would be safe.
> Second, I have a Red Hat 8.0 system which seems to have
> libdb{4.0,4.1,4.2}, and I want to install and run 4.4 (I guess the
> latest is the greatest right?). So I download the db4.4 and the
> configure/build goes perfectly but when I try to tell subversion to
> use it (with --with-berkeley-db=/usr/local/Berkeley4.4) it still grabs
> the 4.0 version! I made sure that this path was in my /etc/ld.so.conf
> file, but no luck. Looking at the configure it seems to be looking
> for a db4.4/db.h file, but my build does not produce a directory
> named that at all.
>
> Ok trying it on my gentoo box (I had 4.3 installed so this test works
> ok) I see that it says:
> checking for Berkeley DB 4.4 in /usr/local/BerkeleyDB.4.4/lib...
> .....
> checking for -ldb-4.4... no
>
> Yet an 'ls /usr/local/BerkeleyDB.4.4/lib' gives:
> libdb-4.4.a libdb-4.4.la libdb-4.4.so libdb-4.so libdb.a libdb.so
>
> Any ideas (/usr/local/BerkeleyDB.4.4/lib/ is in /etc/ld.so.conf, and I
> performed and env-update)?
According to the Subversion 1.4 release notes, that is the first
version that supports BDB 4.4. Since Subversion 1.4 is not released
yet, you're probably using Subversion 1.3.2, so I believe that means
you should use at most BDB 4.3.
http://subversion.tigris.org/svn_1.4_releasenotes.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Two BDB questions
Posted by Blair Zajac <bl...@orcaware.com>.
Troy Curtis Jr wrote:
> Ok I have two BDB questions:
>
> First, I have heard time and time again to not USE bdb based repos on
> an NFS share. My question is whether it would be safe to use
> hot-backup.py or svnadmin hotcopy to access the BDB repo over NFS and
> create a local copy?
Yes, that should be fine.
Just as long as you don't access the backup as a svn repository using any of the
svn tools. If you need to restore, just copy the whole thing back to your local
drive.
BTW, with the svn-fast-backup script, you can get faster backups if you have a
FSFS repository than with a BDB repository.
http://svn.collab.net/repos/svn/trunk/contrib/server-side/svn-fast-backup
Regards,
Blair
--
Blair Zajac, Ph.D.
<bl...@orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org