SUMMARY: Unattended ufsdump

From: Joe R. Jah (jjah@sol.ccsf.cc.ca.us)
Date: Mon Aug 04 1997 - 11:57:18 CDT


Thank you list! Special thanks to:

Tariq Ahmed <tahmed@viper.istar.ca>
Stephen P Richardson <spr@myxa.com>
Graeme Robertson <graemer@icefire.nz.unisys.com>
Mark Inaba <minaba@ci.chi.il.us>
Marcel Chukwunenye <moc@voyager.mlb.semi.harris.com>
Derek Cameron <Derek_Cameron@eagle.co.nz>
Jiao Lingxiu <lingxiu@cc.UManitoba.CA>
Michael Hill <Hill.Michael@tci.com>
Marina Daniels <Marina.Daniels@ccd.tas.gov.au>
Glenn Satchell <Glenn.Satchell@Uniq.com.au>
"Philip A. Fitzpatrick" <phil@philco.libs.uga.edu>
Greg Price <pricega@sweng.stortek.com>
Sanjay Patel <patesa@aur.alcatel.com>
Veronica <veronica@uac.edu.au>
Robert Glover <r_glover@wapol.gov.au>
Ron Spillane <spillar@dent.agric.nsw.gov.au>
Michael Stalnaker <mws@artisan.com>
David Montgomery <david@cs.newcastle.edu.au>
Chris Marble <cmarble@orion.ac.hmc.edu>
Philip Plane <17phil@edp.ird.govt.nz>
"Mark.Phillips@UniSA.Edu.Au" <itumrp@lux.levels.unisa.edu.au>
Tony Nicholson <Tony.Nicholson@newcastle.edu.au>
John Ballard <johnb@ocean.washington.edu>
Mariel Feder <unix.support@central.meralco.com.ph>
"K.Ravi" <RAVKRISH.IN.oracle.com.ofcmail@in.oracle.com>
"Raju (netinc)" <NETINC.IN.oracle.com.ofcmail@in.oracle.com>
"Alan K.K. Kong" <kkkong@ee.cuhk.edu.hk>
"Bjorn E. Torsteinsen" <bjoernt@nfh.uit.no>
Jason Pong <jase@gaia.gcs.com.au>
Mark Tindall <tindall@lgu.ac.uk>
Robbie van Broeckhuijsen <rebon@sdu.nl>
Syed Zaeem Hosain <szh@zcon.com>
Anthony Worrall <Anthony.Worrall@reading.ac.uk>
Michal Dombrowski <temple@mat.uni.torun.pl>
"simon.reavell" <simon.reavell@bbsrc.ac.uk>
"Andrew Watkins,R133,x6720" <andrew@dcs.bbk.ac.uk>
DonWilliams <don.williams@research.natpower.co.uk>
sburch@derwent.co.uk
Andrew Foote <acf@nabaus.com.au>
Ray Trzaska <rtrzaska@uk.mdis.com>
David Mitchell <davem@fdgroup.co.uk>
Chris Needham <needham@dpg.rnb.com>
Rich Kulawiec <rsk@itw.com>
Paul Hatcher <hatcher@sbcm.com>
Mike Ordun <mro@LANcomp.COM>
Mike Carson <Mike.Carson@telos.com>
Tim Evans <tkevans@eplrx7.es.dupont.com>
Brian White <white@erim.org>
James Coby <James.E.Coby.Jr@cdc.com>
dmercer@mercerdl.wab.wku.edu
"Marc S. Gibian" <gibian@stars1.hanscom.af.mil>
"[iso-8859-1] \"Borba, Wmlter\"" <WBorba@BSE.COM.uy>
James Scobee <jscobee@homedir.comdata.com>
"Daniel R. Milliron" <dan.milliron@zeltech.com>
Celeste Stokely <celeste@celestial.stokely.com>
William J Hallam <William_J_Hallam@fleet.com>
Frank Pardo <fpardo@tisny.com>
David Robson <robbo@box.net.au>
John Malick <john@starinc.com>
Seth Rothenberg <SROTHENB@montefiore.org>
Jingyi Zhou <jzhou@airbridge.net>
David Steiner <dsteiner@brynmawr.edu>
Roland Grefer <btirg@ui.uis.doleta.gov>
Ric Anderson <ric@rtd.com>
"Jeff J. Dingbaum" <dingbaum@hep.net>
"Joel L. Seber - Engineering Workstation Lab Manager" <JLS2013@tntech.edu>
raju@intelihealth.com
James Wendling <jbwendl@mtb.phil.mop.com>
Sean Ward <seanw@amgen.com>
"Mark A. Baldwin" <baldma@aur.alcatel.com>
Richard Skelton <rich@brake.demon.co.uk>
Rich Pieri <rich.pieri@prescienttech.com>
Brian Mullen <mullen@hurricane.net2.nlu.edu>
Michael <mcgeown@BBN.COM>
Mike Youngberg <mikey@synacom.com>
Tom Vayda <vayda_tom@jpmorgan.com>
Danny Johnson <djohnson@nbserv2.dseg.ti.com>
Gregory M Polanski <gmp@adc.com>
Chris Medaglia <medaglia@testmail.putnaminv.com>
Manjeet Rekhi <manjeet@eng.es.xerox.com>
Brion Leary <brion@dia.state.ma.us>

And thanks to those whose responses may be on the way.

Original question:
____________________________________________________

I am having problem with Solaris 2.5 making multiple dumps on tape by
running a script. When I try to restore I only see the last dump. Ufsdump
rewinds the tape each time, overwriting the previous dump. I didn't find
anything in the man page about it. I used to run a similar script using
pax without any problems.

I appreciate any pointers you might give.

The script:
#!/usr/bin/sh
/usr/sbin/ufsdump 0cfu /dev/rmt/1 /dev/rdsk/c0t3d0s0
/usr/sbin/ufsdump 0cfu /dev/rmt/1 /dev/rdsk/c0t3d0s3
/usr/sbin/ufsdump 0cfu /dev/rmt/1 /dev/rdsk/c0t3d0s6
/usr/sbin/ufsdump 0cfu /dev/rmt/1 /dev/rdsk/c0t3d0s7

[...]

____________________________________________________

Answer:

Among 80+ answers I chose the following two:

____________________________________________________

On Mon, 4 Aug 1997, Philip Plane wrote:

Date: Mon, 4 Aug 1997 16:16:23 +1200
From: Philip Plane <17phil@edp.ird.govt.nz>
To: jjah@sol.ccsf.cc.ca.us
Subject: Re: Unattended ufsdump

Hi,

No doubt you will have plenty of replies by now, all telling you to use
the no
rewind device, /dev/rmt/1n.

As a bonus, here's my script for dumping all local file systems to a tape.

#!/bin/sh

# Solaris 2 - level 0 dump of all local filesystems

# Usage: full-dump [device number]
# full-dump dumps to /dev/rmt/0
# full-dump 1 dumps to /dev/rmt/1

# Philip Plane

FILESYSTEMS=`df -F ufs | awk ' { printf("%s ",$1) } '`
DUMPDEVICE=/dev/rmt/${1:-'0'}n

if mt -f $DUMPDEVICE status > /dev/null
then
  for FS in $FILESYSTEMS
  do
    /usr/sbin/ufsdump 0f $DUMPDEVICE $FS >> /var/adm/dumplog 2>>
/var/adm/dumplog
  done
fi
____________________________________________________

On Mon, 4 Aug 1997, Syed Zaeem Hosain wrote:

Date: Mon, 4 Aug 1997 00:29:01 -0700
From: Syed Zaeem Hosain <szh@zcon.com>
To: jjah@sol.ccsf.cc.ca.us
Subject: Re: Unattended ufsdump

You need to use the no-rewind form of the device name. Please see the
following from the man page on "st":

     /dev/rmt/[0- 127][l,m,h,u,c][b][n]
                 where l,m,h,u,c specifies the density (low,
                 medium, high, ultra/compressed), b the optional
                 BSD behavior (see mtio(7I)), and n the optional
                 no rewind behavior. For example, /dev/rmt/0lbn
                 specifies unit 0, low density, BSD behavior, and
                 no rewind.

                 For 1/2" reel tape devices (HP-88780), the den-
                 sities are:
                         l 800 BPI density
                         m 1600 BPI density
                         h 6250 BPI density
                         c data compression
                                         (not supported on all modules)

                 For 8mm tape devices (Exabyte 8200/8500/8505):
                         l Standard 2 Gbyte format
                         m 5 Gbyte format (8500, 8505 only)
                         h,c 5 Gbyte compressed format (8505
only)

                 For 4mm DAT tape devices (Archive Python):
                         l Standard format
                         m,h,c data compression

                 For all QIC (other than QIC-24) tape devices:
                         l,m,h,c density of the tape cartridge
type
                                          (not all devices can read and
                                          write all formats)

                 For QIC-24 tape devices (Emulex MT-02):
                         l QIC-11 Format
                         m,h,c QIC-24 Format

Of course, you should also note that the "dump" (from SunOS 4.1.X) and
"ufsdump" (from Solaris 2.X) will still report that they are rewinding
the tape even though they do not actually do so when the non-rewind
tape name is used.
____________________________________________________

     _/ _/_/_/ _/ ____________ __o
     _/ _/ _/ _/ ______________ _-\<,_
 _/ _/ _/_/_/ _/ _/ ......(_)/ (_)
  _/_/ oe _/ _/. _/_/ ah jjah@sol.ccsf.cc.ca.us



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:00 CDT