🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #9501

dd dumps? fast restores?

#9501
From: Stuart Levy
Date: Sat, 10 Dec 1988 01:55
42 lines
2648 bytes
Has anyone tried using "dd" for file system dumps?  Alternatively, does
anyone know of a way restore could be made to run at a reasonable speed?

The problem is this.  Our Sun disk needs are growing.  We'll soon have
about 1.5GB on one of our servers.  Dumping these takes a while; we could
probably improve this by bringing up 4.3BSD dump.

More worrying, though, is the speed of restore, which we found by painful
experience after a flurry of disk controller failures last spring to
average around 50 Kbytes/s -- on a 3/280, Ciprico controller and pretty
fast Fujitsu Swallow disks.  At that rate, even if all goes well, it'll
take a full 12 hours to reload a wrecked file server.

I suspect the far slower restore speed is because the file system code is
taking care to do directory and inode updates synchronously to ensure
consistency, a laudable feature but one I wish we could defeat at times
like that.

So it's tempting to switch to using "dd" rather than "dump" for dumps.
It would have some advantages...
  - dumps would be much faster, maybe 2-3x SunOS 3.3's dump
  - restores would be at least an order of magnitude faster
  - inode numbers would not be changed by a restore so NFS clients wouldn't
	need to be rebooted
but some disadvantages...
  - restoring individual files from a backup would be a pain, we'd need
	to keep a large free disk partition for the purpose
  - dumps would be somewhat larger, though since our file systems normally
	run close to full we probably wouldn't waste much
  - incrementals wouldn't work as well; we could use tar, sort of
	(but with full dumps being much faster we could do them more often)
  - they might be inconsistent when done on (even slightly) active file systems

Of course potential inconsistency is the most worrisome.  I've tried a
couple such dumps and found nothing which fsck won't fix routinely.

But can anyone suggest a reason why "dd" dumps should do much worse than
"dump" dumps on live file systems?  Should files which weren't changing
during the dump be affected?

	Stuart Levy, Minnesota Supercomputer Center
	slevy@uc.msc.umn.edu
Technical Details
Message-ID: <8811252107.AA05311@uf.msc.umn.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!bellcore!rutgers!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!bellcore!rutgers!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: slevy@uf.msc.umn.edu (Stuart Levy)
Newsgroups: comp.sys.sun
Subject: dd dumps?  fast restores?
Message-ID: <8811252107.AA05311@uf.msc.umn.edu>
Date: 10 Dec 88 01:55:59 GMT
Sender: usenet@rice.edu
Organization: Rice University, Houston, Texas
Lines: 42
Approved: Sun-Spots@rice.edu
Original-Date: Fri, 25 Nov 88 15:07:37 CST
X-Sun-Spots-Digest: Volume 7, Issue 41, message 6 of 14