You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Chris Beck <cb...@gene.concordia.ca> on 2004/08/17 22:19:59 UTC
Converting BDB to FSFS on NFS & linux
Hi,
I have a local BDB repository that I want to convert to FSFS ... I am trying to do this using the dump & load procedure recommended
in the book for migrating between versions.
I am mounting my remote partion using the following entry in fstab:
192.168.101.12:/mnt/hd/home/svn /data/svn-nfs-repos nfs
user,nfsvers=3,rsize=8192,timeo=14,tcp,hard,lock,intr,wsize=8192,noauto,posix 0 0
I successfully run
{nfs} svnadmin create --fs-type=fsfs /data/svn-nfs-repos/go-dev
{local} svnadmin create --fs-type=fsfs /data/svn-local-repos/go-dev
and the repository skeletons appears.
I successfully dump my BDB repos:
svnadmin dump /data/svn-repos/go-dev > go-dev.dmp
* Dumped revision 0.
* Dumped revision 1.
<skipping>
Next I try to load a dump of the BDB repository to the local FSFS:
/opt/svn/bin/svnadmin load /data/svn-local-repos/go-dev < go-dev.dmp
<<< Started new transaction, based on original revision 1
* adding path : trunk ... done.
<skipping scads more output>
Next I try to load the dump into the nfs repos (which I successfully created)
svnadmin load /data/svn-nfs-repos/go-dev < go-dev.dmp
svn: Error opening db lockfile
svn: Can't get shared lock on file '/data/svn-nfs-repos/go-dev/locks/db.lock': No locks available
Ooops. Can anyone tell me why it failed and how I can successfully convert from BDB to NFS+FSFS on linux? Is there an nfs trick I
am missing out on?
Cheers,
Chris
--
Chris Beck / Y.A.B.A. / Fungal Genomics / Concordia University / tel. ext. 5791
ACK and ye shall receive
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
[OT - NFS] Re: Converting BDB to FSFS on NFS & linux
Posted by Chris Beck <cb...@gene.concordia.ca>.
Hi Greg,
Since this will quickly degenerate into an NFS mail perhaps it should be off list? Then again, other might encounter the same
problem so I just put an [OT] warning in.
The NFS server is running Slackware 10 (their latest June release) with a 2.6.7 kernel. It is compiled with all the NFS options
turned on:
#
# Network File Systems
#
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V4=y
CONFIG_NFS_DIRECTIO=y
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=y
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
CONFIG_RPCSEC_GSS_KRB5=y
CONFIG_SMB_FS=y
CONFIG_SMB_NLS_DEFAULT=y
CONFIG_SMB_NLS_REMOTE="cp437"
CONFIG_CIFS=y
CONFIG_CIFS_STATS=y
And it is exported using the command:
/mnt/hd/ 192.168.0.0/255.255.0.0(sync,rw,no_root_squash)
The native file system is XFS.
My client is another Slackware 10 + kernel 2.6.7 system compiled with
#
# Network File Systems
#
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V4 is not set
# CONFIG_NFSD_TCP is not set
# CONFIG_ROOT_NFS is not set
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=y
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
CONFIG_SMB_FS=y
And as I said, mounted with
192.168.101.12:/mnt/hd/home/svn /data/svn-nfs-repos nfs
user,nfsvers=3,rsize=8192,timeo=14,tcp,hard,lock,intr,wsize=8192,noauto,posix 0 0
Do you have any suggestions? I assume I am doing something obviously wrong but I am new to this whole NFS thing.
Thanks,
Chris
It is whispered that Greg Hudson was heard, on or about 08/18/04 00:30 to say:
>>svnadmin load /data/svn-nfs-repos/go-dev < go-dev.dmp
>>svn: Error opening db lockfile
>>svn: Can't get shared lock on file '/data/svn-nfs-repos/go-dev/locks/db.lock': No locks available
>
>
> Although FSFS is designed to be less picky than BDB about the
> underlying file store, it does require the ability to perform file
> locking. That might change in the future, but for now it's a
> requirement.
>
> You didn't give much information about your NFS server platform (or
> the client platform); if your server is the old user-space Linux NFS
> server, I believe upgrading to the newer kernel nfsd might help.
>
--
Chris Beck / Y.A.B.A. / Fungal Genomics / Concordia University / tel. ext. 5791
"We do not inherit the Earth from our Ancestors,
we borrow it from our Children."
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Converting BDB to FSFS on NFS & linux
Posted by Greg Hudson <gh...@MIT.EDU>.
> svnadmin load /data/svn-nfs-repos/go-dev < go-dev.dmp
> svn: Error opening db lockfile
> svn: Can't get shared lock on file '/data/svn-nfs-repos/go-dev/locks/db.lock': No locks available
Although FSFS is designed to be less picky than BDB about the
underlying file store, it does require the ability to perform file
locking. That might change in the future, but for now it's a
requirement.
You didn't give much information about your NFS server platform (or
the client platform); if your server is the old user-space Linux NFS
server, I believe upgrading to the newer kernel nfsd might help.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org