SUMMARY--8mm5GB dump

From: Joe Murray (murray@akeila.mech.utah.edu)
Date: Mon Jan 11 1993 - 19:47:37 CST


*5GB 8mm tape drive summary*

Here is a summary of the dump info to date. The original question was:

>We have a SS2 OS4.1.2 with a 8mm 5Gbyte tape drive. We would like to dump
>to the tape but can not find the appropriate dump command. We are using
>3M 112m tapes. The following is the "standard" set of lies for 8mm 2Gbyte
>dumps but we would like to use the 5Gbyte capability:
>
>mt -f /dev/nrst1 asf 0
>/etc/dump 0fubsd /dev/nrst1 100 6000 54000 /
>mt -f /dev/nrst1 asf 1
>/etc/dump 0fubsd /dev/nrst1 100 6000 54000 /usr
>mt -f /dev/nrst1 asf 2
>/etc/dump 0fubsd /dev/nrst1 100 6000 54000 /home
>mt -f /dev/nrst1 asf 3
>/etc/dump 0fubsd /dev/nrst1 100 6000 54000 /n/work1
>
>Can anyone help?

---------------------------------------------------------------------
Replies
---------------------------------------------------------------------

The general response was to use /dev/nrst8 for the device as follows:

dump 0ubdsf 126 54000 13000 /dev/nrst8 /

but others use the following:

/etc/dump 0funcds /dev/nrst9 108000 6000

or

dump 0ucbsf 400 19000 /dev/nrst1 /dev/rsd**

---------------------------------------------------------------------
Here are the details:
---------------------------------------------------------------------
---------------------------------------------------------------------
Subject: Mon. PM backup script called from cron
Status: RO

#!/bin/sh

mt -f /dev/rst8 rew
echo " Monday Evening Backups ";echo ""
/usr/etc/dump 0dsbfu 54000 13000 126 /dev/nrst8 /dev/id000a;echo ""
/usr/etc/dump 0dsbfu 54000 13000 126 /dev/nrst8 /dev/id000g;echo ""
/usr/etc/dump 0dsbfu 54000 13000 126 /dev/nrst8 /dev/id000h;echo ""
/usr/etc/dump 0dsbfu 54000 13000 126 /dev/nrst8 /dev/id001d;echo ""
/usr/etc/dump 0dsbfu 54000 13000 126 /dev/nrst8 /dev/id001e;echo ""
/usr/etc/dump 0dsbfu 54000 13000 126 /dev/nrst8 /dev/id001g;echo ""
/usr/etc/dump 0dsbfu 54000 13000 126 /dev/nrst8 /dev/id001h;echo ""
/usr/etc/dump 5dsbfu 54000 13000 126 /dev/nrst8 /dev/id002c;echo ""
/usr/etc/dump 5dsbfu 54000 13000 126 /dev/nrst8 /dev/id003c;echo ""
/usr/etc/dump 5dsbfu 54000 13000 126 /dev/nrst8 /dev/id010a;echo ""
/usr/etc/dump 5dsbfu 54000 13000 126 /dev/nrst8 /dev/id010g;echo ""
/usr/etc/dump 5dsbfu 54000 13000 126 /dev/nrst8 /dev/id010h;echo ""
/usr/etc/dump 5dsbfu 54000 13000 126 /dev/nrst8 /dev/id011c;echo ""
mt -f /dev/rst8 rewoff
---------------------------------------------------------------------
---------------------------------------------------------------------
I use....
dump 0ubdsf 126 54000 13000 /dev/nrst8 /
dump 0ubdsf 126 54000 13000 /dev/nrst8 /usr
dump 0ubdsf 126 54000 13000 /dev/nrst8 /home
dump 0ubdsf 126 54000 13000 /dev/rst8 /extra

Works like a charm!

to restore ....
restore -xvf /dev/rst8 (to get /)
restore -xvfs /dev/rst8 1 (to get /usr)
restore -xvfs /dev/rst8 2 (to get /home)
restore -xvfs /dev/rst8 3 (to get /extra)

This too, works great!
---------------------------------------------------------------------
---------------------------------------------------------------------
dump 0fubsd /dev/nrst1 126 12000 54000
---------------------------------------------------------------------
---------------------------------------------------------------------
Use rst8 for 5Gb format. See "man st" for more infor

     For helical-scan tape devices (Exabyte):
     /dev/rst[0-7] Standard EXB-8200 (2GB) Format
     /dev/rst[8-15] EXB-8500 (5GB) Format
---------------------------------------------------------------------
---------------------------------------------------------------------
You need to use rst9 to get the 5Gbyte capacity. Here is a chart::

Tade Unit Low(2gbyte) High(5gbyte)
---------------------------------------------
st0 /dev/rst0 /dev/rst8
st1 /dev/rst1 /dev/rst9
st2 /dev/rst2 /dev/rst10

Sun recommends this DUMP command::

>> dump 0dsbfu 54000 13000 126 /dev/rst9 /
                     ^^^^^
---------------------------------------------------------------------
---------------------------------------------------------------------
        Sun recommends using the following for the dump formats:

        1. 2.3GB 8mm Tape
                /etc/dump 0ubdsf 126 54000 6000 /dev/rst1 /dev/sd6a

        2. 5.0GB 8mm Tape
                /etc/dump 0ubdsf 126 54000 13000 /dev/rst9 /dev/sd6a

        Using this method, the same drive can be used to dump in both
2.3GB and 5.0GB modes, provided you are using the new 5.0GB drives.
---------------------------------------------------------------------
---------------------------------------------------------------------
Change "/dev/rst1" to "/dev/rst9" and the drive will write in 5Gb mode:

/dev/rst[0-3] Exabyte 8200 mode (2.5 Gb)
/dev/rst[8-11] Exabyte 8500 mode (5 Gb)
/dev/rst[16-19] Exabyte 8200 mode with compression (if supported)
/dev/rst[24-27] Exabyte 8500 mode with compression (if supported)

/dev/nrst[0-3] Non-rewinding Exabyte 8200 mode (2.5 Gb)
/dev/nrst[8-11] Non-rewinding Exabyte 8500 mode (5 Gb)
/dev/nrst[16-19] Non-rewinding 8200 mode with compression (if supported)
/dev/nrst[24-27] Non-rewinding 8500 mode with compression (if supported)
---------------------------------------------------------------------
---------------------------------------------------------------------
etc/dump 0fubsd /dev/nrst1 100 13000 54000 /n/work1
---------------------------------------------------------------------
---------------------------------------------------------------------
/etc/dump 0funcds /dev/nrst9 108000 6000
---------------------------------------------------------------------
---------------------------------------------------------------------
) USE /dev/nrst9 !!

) Included an old summary. Note that the PowerCycling is not nessacary on
  SunOS 4.1.3. You can overwrite a tape written in 2.4G with 5G (but not intermix)

Thanks for all of your replies on how to write 5 gigs to a high density
exabyte. We now have a machine that works. There were dozens of replies
so to summarise I have just picked out the key points.

a) Always use new tapes, especially with earlier releases of SunOS, ie)
4.0.* or 4.1.1. If you use a tape thats been used on a low density drive,
you will not be able to write in high density mode to it.

b) If your 5 gig exabyte machine has been writing in 2.4 gig, low density mode,
you will need to power cycle it as SUn's driver is flakey about switching
density modes.

c) 2 gigs is the file size limit under SUnOS, so consequently that is the
maximun amount that a single file can be written to tape.

d) rst[0-7] are for low density and rst[8-15] are for high density.

e) The figures that we now use for a level 0 dump are :

   dump 0ubdsf 126 54000 13000 /dev/rst8

However everyone else seemed to have there own. I can't say if they work,
but I know ours do for us. Here are a few other alternatives :

   dump 0fubsd 126 108000 6000 /dev/nrst9

   dump 0ubdsf 126 54000 6000 /dev/rst8

   dump 0ubdsf 126 54000 6000 /dev/nrst0

   dump 0ubdsf 126 54000 12000 /dev/rst8

   dump 0bdfsu 126 54000 /dev/nrst8 226000

   dump 0dsbuf 54000 24000 126 /dev/nrst8

   dump 0bdfsu 126 54000 14500 /dev/nrst8

At the end of the day, it seems that you should be safe with

     b=126
     d=54000
     f= /dev/rst8
 
However there is some discrepancy with s the size parameter. This though is
only used to estimate the amount of tape required and to shout when it thinks
it has run out of tape. To calculate the size, the following equation has
been suggested.
 
size = ((512 * bf ) + 1920) * (ts - 2048) / (bf * 10667)
 
where :
 
bf = blocking factor (eg 126)
ts = 2.3*G or 5*G (less for shorter or partially filled tapes)
 
eg) for a 5 gig tape
 
size = (512*126 + 1920) * (5*1024*1024 - 2048) / (126 * 10667)
 
     = 259039

I'll leave you all to decide what you think is right. I am sticking
with 13000 cos it works.
---------------------------------------------------------------------
---------------------------------------------------------------------
I use the following scripts on a 690 mp

#
# C Shell Script to perform a full backup of filesystems
# used on the Sun network onto the EXB-8200 tape drive
# (from the disk drives on archone, then on dataless nodes)
#
echo "Dump to 0 EXB-8200 Tape . . ."
cd /
date
# Backup spindletop:/g1
/etc/rdump 0budfs 126 54000 /dev/nrst0 5500 /dev/sd4g
sleep 20
# Backup spindletop:/g2
/etc/rdump 0budfs 126 54000 /dev/nrst0 5500 /dev/sd6g
sleep 20
#
# Backup spindletop:/g3
/etc/rdump 0budfs 126 54000 /dev/nrst0 5500 /dev/sd6h
sleep 20
#
# Backup spindletop:/faculty
/etc/rdump 0budfs 126 54000 /dev/nrst0 5500 /dev/sd4h
sleep 20
#
echo "sequence : /g1 /g2 /g3 /faculty "
echo "Procedure completed."
exit

#
# C Shell Script to perform a full backup of filesystems
# used on the Sun network onto the EXB-8200 tape drive
# (from the disk drives on archone, then on dataless nodes)
#
echo "Dump to 0 EXB-8200 Tape . . ."
cd /
date
# Backup spindletop:/
/etc/rdump 0budfs 126 54000 /dev/nrst0 6000 /dev/id000a
sleep 20
# Backup spindletop:/usr
/etc/rdump 0budfs 126 54000 /dev/nrst0 5500 /dev/id000f
sleep 20
#
# Backup spindletop:/sof
/etc/rdump 0budfs 126 54000 /dev/nrst0 4500 /dev/id001h
sleep 20
#
# Backup spindletop:/var
/etc/rdump 0budfs 126 54000 /dev/nrst0 1750 /dev/id001d
sleep 20
#
# Backup spindletop:/export
/etc/rdump 0budfs 126 54000 /dev/nrst0 1000 /dev/id001e
echo "sequence : / usr sof var export "
echo "Procedure completed."
exit
---------------------------------------------------------------------
---------------------------------------------------------------------
You do it the same way to pick density with a 9-track.
/dev/rst0-7 are the low density (2.3 G) device ids
/dev/rst8-15 are the high density (5.0 G) Device ids.
---------------------------------------------------------------------
---------------------------------------------------------------------

End of responses!

Thanks to all who responded!

***************************************************
*** Joseph Murray ***
*** University of Utah ***
*** Department of Mechanical Engr. ***
*** Physical Fluid Dynamics Laboratory ***
*** Ph. 801 585 3520 ***
*** Fax. 801 581 8692 ***
*** Email murray@akeila.mech.utah.edu ***
***************************************************



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:21 CDT