Why idle backups??

Leslie Mikesell les at chinet.chi.il.us
Thu Nov 8 02:40:25 AEST 1990


In article <12434:Nov603:25:4290 at kramden.acf.nyu.edu> brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:
>In article <27337 at mimsy.umd.edu> chris at mimsy.umd.edu (Chris Torek) writes:
>> A much simpler method would be to freeze activity on the file system
>> being dumped.  A `freezefs' system call is being contemplated.
>
>What would the semantics be? Presumably any process writing to that fs
>would be paused in kernel mode until unfreezefs, and the disk would be
>synced. Would freezes work like locks, and be released if the process
>dies? What about deadlock detection? What happens to kernel writes, to,
>e.g., accounting files?

A more pleasant scenario would be to have a 'readfrozen' system call
as well to bypass the common disk buffer cache which would be allowed
to grow and page into swap space for the duration.  'Unfreezefs' would
then perform a sync, collapsing the cache back to its normal size.
Other processes would not need to pause unless the swap space becomes
full. Some care would have to be taken to avoid pausing the program
that issued the freezefs call in this situation, but that doesn't sound
impossible.
 
>If you're going to have freezefs, why not freezedir? freezefile? Why not
>make mandatory write locks available throughout the system? What about
>mandatory read locks? Do the applications (e.g., reliable ``find'')
>outweigh the risks? Should you only be able to freeze files you own?

Freezedir would be pretty messy since you would essentially have to do
a "find" as an atomic operation.  Freezefile(list_of_files or inodes)
would suffice for the usual problem of getting a consistent snapshot
of a multi-file database, although only the application writing them
would know the proper time to issue the call (this, of course applies
to freezefs as well and is probably the reason nobody bothers doing it).
SysVr3 has the mandatory locking scheme - has anyone used it?

>Presumably NFS will muck this up, like mostly everything else. How bad
>would the incompatibility be? Would it help if NFS were replaced by a
>sane remote file system?

Wouldn't freezefs have to be provided at the server end? 

Les Mikesell
  les at chinet.chi.il.us



More information about the Comp.unix.admin mailing list