Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Peter.Mayne@cao.mts.dec.com (Peter Mayne)
Subject: Re: Backing up a file system on-line?
Date: 1996/02/11	[thread overview]
Message-ID: <4flpbs$70a@funlwb2.stl.dec.com> (raw)
In-Reply-To: 1996Feb8.170414@malad2.mala.bc.ca

In article <1996Feb8.170414@malad2.mala.bc.ca>, dunnett@mala.bc.ca says...
>
>
>  I'm new to managing Unix systems and I'm a little confused about
>backup procedures.
>
>  In reading the system administrators guide it suggests that the
>only safe way to backup a UFS file system is with the file system
>unmounted and the system in single user mode. This seems like a
>major disruption in a system which we'd like to be as close to 24x7
>as possible.
>
>  What exactly are the dangers with doing dumps of an on-line file
>system.

Consider what happens if you back up a directory, but before you can back up 
one of the files in that directory, it's deleted. What happens when you do a 
restore? And yes, dump does do a first pass through the inodes and a second 
pass to do the copy.

It's just like backing up a database: how consistent will it be if it took a 
couple of hours to back it up at the same time as users are modifying it? UNIX 
is a bit trickier in that at least a database has locks: in UNIX, you can 
backup files that other users have open without any warning at all.

Traditionally, the only safe way is in single user mode (with the filesystems 
mounted, otherwise you can't use vdump, tar, whatever). However, if you use 
AdvFS and have the AdvFS utilities, you can create a clone filesystem, which 
is a read-only snapshot of the filesystem. Shut down your users, database, etc 
for a couple of seconds, create the clone, start up your users, databases, 
etc, and take as long as you like to back up the clone filesystem.
-- 
PJDM
Peter Mayne
Digital Equipment Corporation (Australia)
Canberra, ACT
----
These are my opinions, and have nothing to do with Digital.
The truth is out there, but not necessarily in here.




  reply	other threads:[~1996-02-11  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-08  5:00 Backing up a file system on-line? Malcolm Dunnett
1996-02-11  5:00 ` Peter Mayne [this message]
     [not found] ` <4g0qrh$84s@sheoak.bendigo.latrobe.edu.au>
1996-02-16  5:00   ` Hardy Lau
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox