Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Backing up a file system on-line?
@ 1996-02-08  5:00 Malcolm Dunnett
  1996-02-11  5:00 ` Peter Mayne
       [not found] ` <4g0qrh$84s@sheoak.bendigo.latrobe.edu.au>
  0 siblings, 2 replies; 3+ messages in thread
From: Malcolm Dunnett @ 1996-02-08  5:00 UTC (permalink / raw)



  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. Is it just the chance of getting a copy of the file which
is missing some modifications because they haven't been written back
from the cache yet or is it likely to produce an invalid backup (ie
not able to restore files which were stable for the duration of the
backup)? Will dump print any sort of warning message if files it
tries to backup are open? Does it use the inode data for the file
which is current when it gets to that file or does it collect the
data in one pass and process it later ( which it seems could lead
to strange things like backing up a file which no longer exists and
getting the blocks which now belong to another file ).

  Sorry if these questions don't make sense, I have only a rudimentary
understanding of how a UFS works. Basically I'd like any advice folks
can offer on how dangerous it is to use dump on-line and what sort of
things I should watch for. Alternatively, what would you use instead
of dump? (We've been using vbackup from Boston Business Computing, which
was included with the system we bought last year, but we need to get
another system and can't afford the price they want )

-- 
=============================================================================
Malcolm Dunnett    Malaspina University-College     Email: dunnett@mala.bc.ca
Computer Services  Nanaimo, B.C. CANADA V9R 5S5       Tel: (604)755-8738



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Backing up a file system on-line?
  1996-02-08  5:00 Backing up a file system on-line? Malcolm Dunnett
@ 1996-02-11  5:00 ` Peter Mayne
       [not found] ` <4g0qrh$84s@sheoak.bendigo.latrobe.edu.au>
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Mayne @ 1996-02-11  5:00 UTC (permalink / raw)


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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Backing up a file system on-line?
       [not found] ` <4g0qrh$84s@sheoak.bendigo.latrobe.edu.au>
@ 1996-02-16  5:00   ` Hardy Lau
  0 siblings, 0 replies; 3+ messages in thread
From: Hardy Lau @ 1996-02-16  5:00 UTC (permalink / raw)


Brian O'Connor wrote:
> I agree, DEC told us the same thing, take the system down to SUM to do a backup,
> this is absurd. Where are the tools to do a simple backup with out using the
> archaic tar/cpio/dump compinations?

What about using Advfs and Advfs tools ???
(Online backups from fileset snapshots, trash can directorys an so on ...)

H.Lau



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-02-16  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-08  5:00 Backing up a file system on-line? Malcolm Dunnett
1996-02-11  5:00 ` Peter Mayne
     [not found] ` <4g0qrh$84s@sheoak.bendigo.latrobe.edu.au>
1996-02-16  5:00   ` Hardy Lau

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