From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jonathan Williams Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Vdump script Date: Mon, 14 Apr 2003 15:37:45 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <017a01c302bd$532712d0$8315000a@shubertorg.com> References: <009a01c2fed5$871e1520$8315000a@shubertorg.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1050349590 17720 80.91.224.249 (14 Apr 2003 19:46:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Apr 2003 19:46:30 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Apr 14 21:46:27 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1959pc-00049D-00 for ; Mon, 14 Apr 2003 21:41:32 +0200 Original-Received: (qmail 5902 invoked by uid 5); 14 Apr 2003 19:42:00 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 5893 invoked by uid 49493); 14 Apr 2003 19:41:59 -0000 Original-Received: from jonathw@shubertorg.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-4.5/5.0):. Processed in 0.584284 secs); 14 Apr 2003 19:41:59 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 14 Apr 2003 19:41:58 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HDC0064XMPW6K@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 14 Apr 2003 15:41:57 -0400 (EDT) Original-Received: from mailhost.Shubertorg.com (mailhost.shubertorg.com [207.246.208.40]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HDC00JNZMPG8P@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 14 Apr 2003 15:41:41 -0400 (EDT) Original-Received: from memnoch [207.238.217.205] by mailhost.Shubertorg.com (SMTPD32-7.15) id AEFA1D30040; Mon, 14 Apr 2003 15:41:46 -0400 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Priority: 3 X-MSMail-priority: Normal X-Declude-Sender: jonathw@shubertorg.com [207.238.217.205] X-Declude-Spoolname: D0efa01d3004022ec.SMD X-Note: This E-mail was scanned by The Shubert Organization, Inc. for spam. Xref: main.gmane.org gmane.os.tru64.managers:3968 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3968 Ok. Thanks for all the emails people sent me. When I last wrote, I was having a problem with a vdump script, in that it wouldn't prompt the user for the second tape...it would just give a bunch of errors and then quit. Most responses I received assumed I was running the script as a background job (ie cron, etc), but this was not the case--I was just running the script from the command line. As I mentioned, my script had been using a symbolic link for the tape drive "vdumptape". This was the problem. Apparently symbolic links are a no-no, or so it seems. I replaced the symbolic link with the real tape device name, and everything works as expected--prompts for next tape and everything. Thank you to all the people that responded. Jonathan Williams Unix Systems Administrator The Shubert Organization, Inc. ----- Original Message ----- From: "Jonathan Williams" To: Sent: Wednesday, April 09, 2003 4:20 PM Subject: UPDATE: Vdump script > Ok. I have received a bunch of emails (many telling me how crazy I am for doing > away with NetWorker) about a vdump script. Most of them were very involved, > telling me how to get the autochanger to work, and have the whole thing nice and > automated. That is a nice project to work on, but is above and beyond our > immediate goals. > I want to keep this vdump script as simple and basic as possible. There will be > operators here to change tapes when vdump asks for them, so getting the robot to > work is not something I'm thinking about right now. I wrote a super-basic > script which is just a bunch of vdump commands to execute one after the other > (yes yes, I know I could put logic in the script to figure out for itself what > to backup and all that). > The problem I'm having is what happens when the tape fills up. I assumed it > would sit at a prompt asking for a new tape, and then after mounting the tape, > the operator would hit and the vdump would continue. This is not what > happened. > > The system I ran the script on is an Alpha ES40, running Tru64 5.1a (no > patches). All of the vdump commands went very well, until the tape got full, > this is what it said: > > vdump: Status at Wed Apr 9 13:39:39 2003 > vdump: Dumped 81454142687 of 92140089441 bytes; 88.4% completed > vdump: Dumped 31105 of 33238 directories; 93.6% completed > vdump: Dumped 499050 of 540028 files; 92.4% completed > vdump: Unload of tape 0001 failed; [25] Not a typewriter > > vdump: Change Tapes: Mount tape# 0002 > vdump: can't get dev info for writing; [25] Not a typewriter > > devget ioctl failed! > > mtiocget ioctl failed! > > So as you can see, it didn't sit at a prompt and wait for the tape to be > changed. Is this because it is in a script, and for some reason can't prompt > for user intervention? I'm sure there is a way around this, but what? And like > I said, I'm not interested in the robot in the tape changer automatically > changing tapes for me...I want a user to be able to see that a second tape was > requested, and manually change the tape, and then hit enter to continue the > backup. > > Oh, and here is the little scriptlet that I ran: > #!/bin/ksh > cd / > vdump -0uf vdumptape / > vdump -0uf vdumptape /usr > vdump -0uf vdumptape /star > vdump -0uf vdumptape /ops > vdump -0uf vdumptape /client > vdump -0uf vdumptape /devel > > (vdumptape is a link to the actual tape device) > > So can anyone tell me what to change/add to get this thing to work how I want? > Or at least point me in the right direction? I searched on the archives, and > saw lots of similar questions, but no answers. TIA > > > > Jonathan Williams > Unix Systems Administrator > The Shubert Organization, Inc. > > > ----- Original Message ----- > From: "Jonathan Williams" > To: > Sent: Thursday, April 03, 2003 2:11 PM > Subject: Vdump script > > > > Hi. I've got a bunch of servers here (ES40, ES45, all running Tru64 5.1a) > that > > each have only about 7 or so AdvFS filesets that need backing up. For the > past > > several years we have been using Legato NetWorker to backup all of our Alpha > > servers. We have decided to move away from NetWorker, and use only vdump and > > vrestore to backup these systems. They are all connected to a TL895 tape > > library that stores the backup tapes. We do not use the library in > > auto-mode...the tapes are moved by an operator via the Control Panel on the > > library. > > > > What I'm looking for is any nice scripts that some of you may have to do these > > backups as easily and straight-forward as possible (making the process > "operator > > proof"). One approach might be to run a script on each system one at a time, > > all backing up to the same tape(s). Another approach might be to have one > > server to the whole thing, and after it finishes backing itself up, it would > do > > a remote connection to the other servers and back all of them up in turn (of > > course, I'm not sure if that's even possible). But basically, if anyone has > any > > scripts for this purpose that they like, I would be interested in seeing them. > > > > So to sum up. About half a dozen servers. All running 5.1a. Backing up > AdvFS > > filesets. All have access to the same tape drives (not at the same time of > > course). There is an operator always here to take care of tape changes when > > they are needed. TIA > > > > Jonathan Williams > > Unix Systems Administrator > > The Shubert Organization, Inc. > > > > > > > > > >