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