DragonFly BSD
DragonFly bugs List (threaded) for 2011-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: [issue2123] hammer is losing files


From: Ralf Schmitt <ralf@xxxxxxxxxxxxx>
Date: Tue, 30 Aug 2011 21:51:37 +0200
Cancel-lock: sha1:mcy7OxhhrLIKD/rnf/UpsQyhuIs=

Matthew Dillon <dillon@apollo.backplane.com> writes:

>
>     It could have caught the rsync in the middle, though it isn't supposed
>     to break inode<->file linkages.  rsync might be re-creating the hardlinks
>     on every pass.

rsync is running right before the snapshots are being created, so rsync
itself had already exited (however it didn't sync or sleep in betweeen)

>
>     Are the other snapshots ok?

they are fine.

>
>     The most reliable way is to create a manual snapshot as part of your
>     rsync script so the snapshot occurs on a quiescent filesystem.  Something
>     like this:
>
>     do rsync stuff
>     sync; sleep 5; sync; sleep 5; sync; sleep 5
>     hammer snapshot /backup/sync /var/hammer/backup/sync "rsync snapshot"

I do that now and will watch for similar problems.

Thanks for your help.

-- 
Cheers
Ralf



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]