[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnadmin hangs when creating Berkeley repository on NTFS-3G partition

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: Mon, 24 Nov 2008 16:27:04 +0100

On Sunday 23 November 2008, Jaan Vajakas wrote:
> I have an NTFS partition mounted in Linux at /windows/D. When there is
> no directory named repos in /windows/D and I run
> cd /windows/D
> svnadmin create --fs-type bdb repos
> then svnadmin just hangs and top shows that most of the CPU is used by
> mount.ntfs-3g and some CPU is also used by svnadmin (at the time of
> writing, the TIME+ column in top shows that mount.ntfs-3g has used 50
> minutes and svnadmin has used 8 minutes CPU time).
>
> However, on a reiserfs partition on the same disk, "svnadmin create
> --fs-type bdb repos" works fine [...]

BDB requires functional file locking in order to work correctly and it is
known that different filesystems implement this to various extents, which is
why its used is dangerous over NFS. It looks like the NTFS drivers aren't up
to the task either. If you want, you could try to just create a BDB database
without SVN to further narrow down the problem. My guess is that this will
fail, too, which would then definitely point at the NTFS drivers instead of
SVN.

As a workaround, you could create the repository on a different drive and then
copy it over, but that still doesn't guarantee that accessing the repository
will work any better. BTW: in case you want to share the repository between
Linux and MS Windows, there is actually no guarantee that BDB works for that.
AFAIK, when they are using the same architecture it works, but even that is
not guaranteed. Using '--fs-type fsfs' (which is the default) should create a
repository that is sharable though, so I'd use that.

cheers

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-24 16:27:34 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.