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

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

From: Orion Poplawski <orion_at_nwra.com>
Date: Fri, 24 Aug 2018 11:53:23 -0600

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(4, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824,
l_len=1}) = 0
fcntl(4, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826,
l_len=510}) = 0
fcntl(4, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824,
l_len=1}) = 0
stat("/var/svn/svn-nwra-mry/db/rep-cache.db-journal", 0x7fffdb0bc070) = -1
ENOENT (No such file or directory)
pread64(4, "\0\0\0\1\0\0\17x\0\0\0\0\0\0\0\0", 16, 24) = 16
stat("/var/svn/svn-nwra-mry/db/rep-cache.db-wal", 0x7fffdb0bc070) = -1 ENOENT
(No such file or directory)
fstat(4, {st_mode=S_IFREG|0755, st_size=4055040, ...}) = 0
fcntl(5, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824,
l_len=1}) = 0
fcntl(5, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826,
l_len=510}) = 0
fcntl(5, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824,
l_len=1}) = 0
stat("/nwra/monterey/fafnir_backup/backup-svn2/svn-nwra-mry-13080/db/rep-cache.db-journal",
0x7fffdb0bc070) = -1 ENOENT (No such file or directory)
pread64(5, "", 16, 24) = 0
stat("/nwra/monterey/fafnir_backup/backup-svn2/svn-nwra-mry-13080/db/rep-cache.db-wal",
0x7fffdb0bc070) = -1 ENOENT (No such file or directory)
fstat(5, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(5, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825,
l_len=1}) = 0
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
fcntl(5, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824,
l_len=2}) = 0
fcntl(5, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(4, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
nanosleep({tv_sec=0, tv_nsec=25000000}, NULL) = 0
fcntl(4, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824,
l_len=1}) = 0
fcntl(4, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826,
l_len=510}) = 0
fcntl(4, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824,
l_len=1}) = 0
stat("/var/svn/svn-nwra-mry/db/rep-cache.db-journal", 0x7fffdb0bc070) = -1
ENOENT (No such file or directory)
pread64(4, "\0\0\0\1\0\0\17x\0\0\0\0\0\0\0\0", 16, 24) = 16
stat("/var/svn/svn-nwra-mry/db/rep-cache.db-wal", 0x7fffdb0bc070) = -1 ENOENT
(No such file or directory)
fstat(4, {st_mode=S_IFREG|0755, st_size=4055040, ...}) = 0
fcntl(5, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741824,
l_len=1}) = 0
fcntl(5, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1073741826,
l_len=510}) = 0
fcntl(5, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824,
l_len=1}) = 0
stat("/nwra/monterey/fafnir_backup/backup-svn2/svn-nwra-mry-13080/db/rep-cache.db-journal",
0x7fffdb0bc070) = -1 ENOENT (No such file or directory)
pread64(5, "", 16, 24) = 0
stat("/nwra/monterey/fafnir_backup/backup-svn2/svn-nwra-mry-13080/db/rep-cache.db-wal",
0x7fffdb0bc070) = -1 ENOENT (No such file or directory)
fstat(5, {st_mode=S_IFREG|0755, st_size=0, ...}) = 0
fcntl(5, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=1073741825,
l_len=1}) = 0
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
fcntl(5, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1073741824,
l_len=2}) = 0
fcntl(5, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
fcntl(4, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
nanosleep({tv_sec=0, tv_nsec=25000000},

continues forever. Perhaps the cifs mount does not allow for locking?

-- 
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-25 06:59:04 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.