9 Mar 2008 22:45
Re: refuse to update certain files upon extraction
Lasse Kliemann <lasse-list-star-users <at> mail.plastictree.net>
2008-03-09 21:45:57 GMT
2008-03-09 21:45:57 GMT
* Message by -Lasse Kliemann- from Sun 2008-03-09: > There was no error message (tried -vv, but not -debug). Some time passed > since, and I do not have those files anymore. But I found a way to reproduce > this, or at least something similar. How to do this is slightly complicated, > and I do not understand it fully myself, so I go right to the results. There > is a level 0 dump and a level 1 dump, and a file F that changed between the > dumps. If the level 1 dump is extracted with 'star -xpU', then the file F is > restored to the state it was when the dump was taken. However, if the two > dumps are extracted onto each other with 'star -xpU -restore', mysteriously F > is made a hardlink to some other file, and hence of course is not restored to > its correct state. > > Now, the dumps are taken off from a Linux LVM filesystem snapshot. As you > know, I already discovered irregularities with those (but could not yet > investigate it further satisfactorily due to time constraints). Would you > suggest that the above problem is caused by a faulty filesystem snapshot > implementation, or might this be a problem in star? You may inspect the > tarfiles if you wish, it's just about 2 MB; I uploaded them to > > http://unix.plastictree.net/tmp/20080309/dump0.tar > http://unix.plastictree.net/tmp/20080309/dump1.tar > > The file to look out for is `send-backup-test/supervise/pid'. It is made a > hardlink to `send-backup-test/log/supervise/pid' upon restore as described > above. I've tracked this thing down further, and now I have a simple way to reproduce this, and it doesn't even involve snapshots. Attached is a small program rename.c. Assume that this program is available under the command(Continue reading)
.
>
>
> By the way, this three-step-method (touch file, take fs snapshot, dump) can
> in fact lead to a significant amount of data archived twice, at least on
> Linux and under extreme conditions. I did tests once with blogbench running
It may do even on Solaris, as it takes more than a minute to set up a snapshot
for a big filesystem. If this is really a problem is hard to tell as fssnap(1)
first applies a write lock to the filesystem...
> If one does that rsync-mirror-method I described earlier (keep a mirror of
RSS Feed