when will file ./svn/tmp/svn-XXXXXX be created? and why?
we use svn managing our config files. in client side environment, check out repos in client side, processes could open the config file and read or write the config file. some of them could keep file handler for a long time. now we get some problems: the config file will be moved to .svn/tmp directory and be deleted. for example: online_assist process: online_assist will open some config files in /wns/etc/config/ directory. /wns/etc/config/ is a repo. use losf to see which files online_assist are opening. #lsof |grep online_assist |grep .svn/tmp 704 /wns/sbin/online_assist /wns/etc/config/.svn/tmp/svn-ynboPV (deleted) 704 /wns/sbin/online_assist /wns/etc/config/.svn/tmp/svn-sTknMU (deleted) 704 /wns/sbin/online_assist /wns/etc/config/.svn/tmp/svn-39HEsA (deleted) online_assist should open config files which are not in .svn/tmp directory. in usual, online_assist should open config files like : /wns/etc/config/db/ap_data.db ... #pidof online_assist 704 #ls -l /proc/704/fd/* -l |grep config |sort -k 10 lrwx-- 1 root root 64 Dec 20 08:22 /proc/704/fd/19 -> /wns/etc/config/.svn/tmp/svn-39HEsA (deleted) lrwx-- 1 root root 64 Dec 20 08:22 /proc/704/fd/18 -> /wns/etc/config/.svn/tmp/svn-sTknMU (deleted) lrwx-- 1 root root 64 Dec 20 08:22 /proc/704/fd/15 -> /wns/etc/config/.svn/tmp/svn-ynboPV (deleted) lrwx-- 1 root root 64 Dec 20 08:22 /proc/704/fd/23 -> /wns/etc/config/db/china_province_city.db lrwx-- 1 root root 64 Dec 20 08:22 /proc/704/fd/20 -> /wns/etc/config/db/phonelocation.db lrwx-- 1 root root 64 Dec 20 08:22 /proc/704/fd/16 -> /wns/etc/config/wac/data/ouiol.db lrwx-- 1 root root 64 Dec 20 08:22 /proc/704/fd/21 -> /wns/etc/config/wac/data/ouiol.db lrwx-- 1 root root 64 Dec 20 08:22 /proc/704/fd/17 -> /wns/etc/config/wac/data/sta_login_stat.db lrwx-- 1 root root 64 Dec 20 08:22 /proc/704/fd/22 -> /wns/etc/config/wac/data/wti.db some files opened by online_assist in /wns/etc/config are correct, like /wns/etc/config/wac/data/ouiol.db. but some are moved to /wns/etc/config/.svn/tmp and deleted. why is this ? why would the file opend by process be moved to .svn/tmp and why would the file moved to .svn/tmp be deleted? -- . Vanity...My favourite sin. --<>
why my process open .svn/tmp/svn-XXXXXX file? and why are tmp files deleted? and why my process can't open the right file after tmp files deleted?
we use svn managing our config files. we lock config file when do committing or writing operation. in client side, only commit operation executes. and svndump in server. our process is always opening file like repo/someconfig/files . it's strang process opened tmp file like repo/.svn/tmp/svn-XX in some clients. and tmp file was deleted. our process report errors. for example: <8> Sundray-WAC / #lsof |grep online_assist | grep config |sort -k 3 704 /wns/sbin/online_assist /wns/etc/config/.svn/tmp/svn-39HEsA (deleted) 704 /wns/sbin/online_assist /wns/etc/config/.svn/tmp/svn-sTknMU (deleted) 704 /wns/sbin/online_assist /wns/etc/config/.svn/tmp/svn-ynboPV (deleted) -- . Vanity...My favourite sin. --<>
inodes usage of svn server
inodes usage of my svn server grows up quickly as repositories commits increasing. there are many reversion files in xx/db/revs/[0-9]+/[0-9]+. is there any way storing all version files into one file? or any other way to solve this problem. -- . Vanity...My favourite sin. --<>
?????? inodes usage of svn server
thank you very much. that's exact what i want. -- . Vanity...My favourite sin. --<> -- -- ??: "Nico Kadel-Garcia";; : 2018??1??3??(??) ????11:20 ??: "Keva-Slient"<356730...@qq.com>; : "users"; : Re: inodes usage of svn server On Tue, Jan 2, 2018 at 9:37 PM, Keva-Slient <356730...@qq.com> wrote: > > inodes usage of my svn server grows up quickly as repositories commits > increasing. > there are many reversion files in xx/db/revs/[0-9]+/[0-9]+. There is "svnadmin pack", which needs to run on the Subversion repository server. > > is there any way storing all version files into one file? or any other way > to solve this problem. > > > -- > . > Vanity...My favourite sin. > --<> >
Re: inodes usage of svn server
thank you very much. that's what i want -- . Vanity...My favourite sin. --<> -- Original -- From: "Nathan Hartman";; Date: Wed, Jan 3, 2018 11:08 AM To: "users"; Cc: "Keva-Slient"<356730...@qq.com>; Subject: Re: inodes usage of svn server On Jan 2, 2018, at 9:37 PM, Keva-Slient <356730...@qq.com> wrote: > > > inodes usage of my svn server grows up quickly as repositories commits > increasing. > there are many reversion files in xx/db/revs/[0-9]+/[0-9]+. > > is there any way storing all version files into one file? or any other way > to solve this problem. See "svnadmin pack" command in svn-book. I don't have the link handy unfortunately.
inode usage: when to delete transactions files after committing failed
there are many transactions files after committing failed in my svn server. they cost lots of inodes. when and how can i delete them? i've found out that server will generate new transaction dir xx/db/transactions/[0-9]+\-[0-9]+.txn dir after each failed committing. any tool can delete them when server running? i dont want to delete the txn dir which is in using. -- . Vanity...My favourite sin. --<>
?????? inode usage: when to delete transactions files after committing failed
thank you very much, i will have a loot at this. -- . Vanity...My favourite sin. --<> -- -- ??: "Johan Corveleyn";; : 2018??1??4??(??) ????4:56 ??: "Keva-Slient"<356730...@qq.com>; : "users"; : Re: inode usage: when to delete transactions files after committing failed On Thu, Jan 4, 2018 at 3:33 AM, Keva-Slient <356730...@qq.com> wrote: > > there are many transactions files after committing failed in my svn server. > they cost lots of inodes. > when and how can i delete them? > > i've found out that server will generate new transaction dir > xx/db/transactions/[0-9]+\-[0-9]+.txn dir after each failed committing. > > any tool can delete them when server running? i dont want to delete the txn > dir which is in using. You can use the tools 'svnadmin lstxns' and 'svnadmin rmtxns' for that. The 'lstxns' subcommand supports a '-r REV' argument, which will then skip all transactions that are based on a more recent revision than REV (in other words: you will only see transactions that have been started before REV). As the help text for 'svnadmin lstxns' says: "Transactions with base revisions much older than HEAD are likely to have been abandonded and are candidates to be removed." If you want, you can also use the various 'svnlook' subcommands to inspect the transaction. See this section of the book for some more background info: http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.diskspace.deadtxns -- Johan
svn over apache2 logging problem
here is my config in dav_svn.conf: DAV svn SVNParentPath /wns/data/svn SVNListParentPath On AuthType Basic AuthName "Subversion Repository" AuthUserFile /wns/etc/apache2/dav_svn.passwd Require valid-user #CustomLog /var/log/apache2/svn_logfile "%{%Y-%m-%d %T}t %u@%h %>s repo:%{SVN-REPOS-NAME}e %{SVN-ACTION}e (%B Bytes in %T Sec)" env=SVN-ACTION CustomLog /var/log/apache2/svn_logfile "%t %u %{SVN-ACTION}e" env=SVN-ACTION all of the log settings are not working. it only creates log file. there is not any content written when i commit , checkout or update. why is this? -- . Vanity...My favourite sin. --<>
is there any document for error number?
is there any document for error number? i'm going to handler all kind of errors. -- . Vanity...My favourite sin. --<>
is it necessary to svnsync copy-revprops all reversions everytime executing svnsync?
is it necessary to svnsync copy-revprops all reversions everytime executing svnsync?