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

Re: hotcopy leaves db/rep-cache.db-journal, CIFS issues

From: Orion Poplawski <orion_at_nwra.com>
Date: Tue, 28 Aug 2018 10:01:03 -0600

On 08/24/2018 11:53 AM, Orion Poplawski wrote:
> subversion-1.10.2-1.fc28.x86_64
>
> When doing a svnadmin hotcopy the file db/rep-cache.db-journal is left in the
> destination. Is that expected?
>
> I'm also seeing problems when copying to a CIFS mounted filesystem on EL7
> (/var/svn -> /nwra/monterey) - it gets stuck trying to deal with it. I'm running:
>
> /usr/share/doc/subversion-tools/backup/hot-backup.py --num-backups=7 --verify
> /var/svn/svn-nwra-mry /nwra/monterey/${dest}/backup-svn2
>
> which runs:
>
> /usr/bin/svnadmin hotcopy --clean-logs -- /var/svn/svn-nwra-mry
> /nwra/monterey/fafnir_backup/backup-svn2/svn-nwra-mry-13080
>
> strace shows:
>
> fcntl(5, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741824,
> l_len=1}) = 0
> fcntl(5, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741826,
> l_len=510}) = -1 EACCES (Permission denied)
> fcntl(5, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826,
> l_len=510}) = 0
>
> continues forever. Perhaps the cifs mount does not allow for locking?

Adding the "nobrl" mount option to mount.cifs appears to work around the
issue. Still seems odd that some of the locks succeed and some fail.

-- 
Orion Poplawski
Manager of NWRA Technical Systems          720-772-5637
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion_at_nwra.com
Boulder, CO 80301                 https://www.nwra.com/
Received on 2018-08-28 18:01:23 CEST

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.