home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / admin / 6706 < prev    next >
Encoding:
Text File  |  1992-12-20  |  1.9 KB  |  43 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!inmos!fulcrum!igb
  3. From: igb@fulcrum.co.uk (Ian G Batten)
  4. Subject: Re: How do you back up a terabyte?
  5. Message-ID: <BzG886.LLF@fulcrum.co.uk>
  6. Sender: news@fulcrum.co.uk
  7. Organization: Fulcrum Communications
  8. References: <ericw.724459057@hobbes> <1992Dec16.162326.24324@cs.sandia.gov>
  9. Date: Fri, 18 Dec 1992 09:40:54 GMT
  10. Lines: 31
  11.  
  12. In article <1992Dec16.162326.24324@cs.sandia.gov> wllarso@sandia.gov (William L Larson) writes:
  13. > For example, dump uses a two pass procedure, first find all of the files
  14. > and directories, and then second copy the files and directories.  What
  15. > would happen if a directory were added/deleted/moved after pass one but
  16. > before pass two?  Steve did an excellent analysis of the possibilities.
  17.  
  18. I keep a spare partition which is greater than or equal in size than all
  19. other partitions.  All dumped partitions are meta devices.  If they are
  20. not shadowed full time, a shadow is attached.  If they are shadowed, I
  21. attach an extra shadow (detaching one of the shadows to dump would lose
  22. shadowing during the dump, obviously).
  23.  
  24. This is for a Sun 690 with Online:DiskSuite.  Note that for some reason
  25. you can't lock the root partition to ease the detachment.  This
  26. mechanism allows me to take clean, consistant, fsck'd dumps of running
  27. file systems, including the root partition.
  28.  
  29.     system ("/usr/etc/metattach $system $meta") && 
  30.     &mail_and_die("can't attach metadevice");
  31.     if ($fs eq '/') {
  32.     $det_status = system ("/usr/etc/metadetach $system $meta");
  33.     } else {
  34.     system ("/usr/etc/lockfs -w -c 'locking for dump' $fs") &&
  35.         &mail_and_die("can't write lock $fs");
  36.     $det_status = system ("/usr/etc/metadetach $system $meta");
  37.     system ("/usr/etc/lockfs -u $fs") &&
  38.         &mail_and_die("EMERGENCY! Filesystem $fs is write-locked!!");
  39.     }
  40.     &mail_and_die("didn't detach $system ($fs) cleanly") if $det_status;
  41.     system ("fsck -p $meta");
  42.     # we now have $system available on $meta
  43.