Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: nmh1@ccdaw1.cc.rl.ac.uk (Nick Hill)
Subject: Re: HOW TO MAKE A BACKUP?
Date: 1995/06/14	[thread overview]
Message-ID: <3rmji6$1tp2@unixfe.rl.ac.uk> (raw)
In-Reply-To: gurman-1306951434130001@barkochba.gsfc.nasa.gov


In article <gurman-1306951434130001@barkochba.gsfc.nasa.gov>, 
gurman@uvsp.gsfc.nasa.gov (Joseph B. Gurman) writes:
>In article <3rik4l$feu@news.ycc.yale.edu>, walid@minerva.cis.yale.edu
>(Walid Majid) wrote:
>
>> can someone please tell me how to make a backup of everything on an osf 
>> machine.  at the moment the tapedrive is not even connected to the scsi 
>> port.  i guess the first thing i need to do is to determine the device 
>> number.  how would i do this?
>
>    Walid -
>
>    Despite this enormous opportunity for a Harvard grad to make sport of
>Yalies, I will allow the chance to slip by.... (Cf. preterition in the
>dictionary.)
>
>    You need to:
>
>1. Bring down your system (shutdown -h now), and power it off;
>
>2. attach the SCSI tape drive to the SCSI daisy chain (e.g., the external
>SCSI port if there are no external SCSI devices yet), MAKING CERTAIN THAT
>THE SCSI LUN IS SET TO A VALUE DIFFERENT FROM THAT OF ANY DEVICE CURRENTLY
>ON THE SAME SCSI BUS (by not telling us what model of OSF/1 machine, we're
>unable to be more specific: some machines, such as the 3000/300 series,
>have only a single, internal + external SCSI, while the other 3000 series
>workstations have separate internal and external SCSI's, some servers can
>have several, and so on);
>
>3. power up the machine and interrupt it using the interrupt switch (on
>the back of desktop workstations, on the front of the 3000/800 and /900)
>to get the >>>
>console prompt;
>
>4. at the >>> prompt, enter 'show device' (or 'sh dev') to make certain
>the system can "see" the SCSI tape; note that if you have multiple SCSI
>buses, the
>unit number may seem strange (e.g., lun 5 on the second bus will give you
>DKB500 in the "sh dev" display [a la OpenVMS], but tz13 (since the first
>SCSI bus = 8 devices, including the controller) under unix);
>
>5. if the system can see the device, resume booting (usually, the "boot"
>command will do);
>
>6. log in as root;
>
>7. copy /vmunix to someplace safe;
>
>8. cp /genvmunix /vmunix;
>
>9. reboot (you're now booting off the generic kernel): shutdown -r now;
>
>10. log in as root again;
>
>11. shut down to single-user mode: "shutdown now" (so no one plays around
>with the system while you're rebuilding the kernel, which you do with);
>
>12. /sbin/bcheckrc (to fsck and mount all local file systems, including /usr);
>
>13. doconfig (it will ask you for the name of the system config file,
>which will be of the form /sys/conf/YOURSYSTEMNAME, and whether you want
>to create a new one, which you do, and whether you want to edit it, which
>you don't --- unless using ed is your idea of fun; it will also ask which
>of a variety of kernel options you want; unless your very short of memory
>or / disk space, select them all);
>
>14. wait 5 - 10 minutes for the kernel to be built;
>
>15. note the file path for the new kernel (to be used in step 17);
>
>16. boot again (left as an exercise for the student);
>
>17. copy the new kernel to /vmunix; and
>
>18. reboot (also left as an exercise for the student).
>
>    Voila! You should be able to see the tape device (if OSF/1 can
>understand it, that is....). You can check this by doing an "ls
>/dev/*rzN*" where N is the SCSI lun (remember to add 8 to the lun on the
>device if it's on a second SCSI bus).
>
>    But wait: you wanted to back up all the file systems on the machine.
>Sadly, you will have to use dump. If you are using a DAT or Exabyte drive,
>and can back up several file systems to a single tape, you'll want to dump
>to the file /dev/nrmt0h (for no-rewind after every dump, high density):
>
>1. shutdown to single-user mode (hint: this has already been covered);
>
>2. /sbin/bcheckrc (essay question: why?);
>
>3. dump -0u -f /dev/nrmt0h -b BLOCKSIZE FILESYSTEM, where BLOCKSIZE is the
>tape block size in Kbyte (40 is a nice number for DATs) and FILESYSTEM is,
>e.g., / or /usr or /usr/users or /myfilesystem /go_eli or whatever.
>
>    By the way, dump is virtually useless as far as data integrity goes,
>but heck, this is unix.
>
>    Seem like a lot of work? Remember what John F. Kennedy (who claimed,
>on getting an honorary degree at Yale, that he then had the best of both
>worlds: a Harvard education and a Yale degree) said: "Why do we wish to go
>to the moon and do these other things? Why does Rice play Texas? We do
>these things not because they are easy, but because they are hard."
>
>    Good luck (and if you have a copy of the System Administrators guide,
>take a look at the chapter on "Managing Backup and Restore Services"),
>
>                  Joe Gurman
>
>P.S. If your system (or department, or the University) has a DEC
>Polycenter backup and restore license, you will have much better backup
>options.... but space does not permit a full discussion. Class dismissed!
>
>-- 
>J.B. Gurman / Solar Physics Branch / NASA Goddard Space Flight
>Center / Greenbelt MD 20771 USA / gurman@uvsp.gsfc.nasa.gov
>| Federal employees are still prohibited from holding opinions |
>| while at work. Therefore, any opinions expressed herein are  |
>| somebody else's.                                             |
>

I must beg to differ with J.B.Gurman. From OSF 3.0 onwards you do not need 
to do all the kernel rebuild stuff as you can dynamically add the device.
All you have to do (assuming it is device tz13 that you wish to add) is:
1)cd /etc
2)./MAKEDEV tz13
and you can use the tape. You can therefore miss out steps 6 to 18 


-
Nick Hill

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Computing and Information Systems Department
Rutherford Appleton Laboratory
Chilton 
Didcot                                 Internet: nmh1@axprl1.rl.ac.uk
Oxfordshire                               Janet: nmh1@uk.ac.rl.axprl1
OX11 0QX                                 DECnet: omni:.uk.ac.rl.axprl1::nmh1
ENGLAND                                          20054::nmh1
                       WWW: http://www.cis.rl.ac.uk/people/nmh1/contact.html
Tel: +44 (0)1235-445598                       
Fax: +44 (0)1235-446626
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



  reply	other threads:[~1995-06-14  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-06-12  4:00 HOW TO MAKE A BACKUP? Walid Majid
1995-06-13  4:00 ` Joseph B. Gurman
1995-06-14  4:00   ` Nick Hill [this message]
1995-06-19  4:00 ` Bassirou Bah
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