From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mark Schubert Newsgroups: gmane.os.tru64.managers Subject: How to choose right tape drive on cluster Date: Wed, 29 May 2002 15:33:11 +1000 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <249C830D7058174790C4CAB9F633B5C413B203@adlnt1.cogita.local> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: main.gmane.org 1022650388 14373 127.0.0.1 (29 May 2002 05:33:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 29 May 2002 05:33:08 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17Cw55-0003ji-00 for ; Wed, 29 May 2002 07:33:08 +0200 Original-Received: (qmail 21636 invoked by uid 5); 29 May 2002 05:33:47 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 21628 invoked from network); 29 May 2002 05:33:47 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 29 May 2002 05:33:47 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GWU0014IY49LZ@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 29 May 2002 01:33:46 -0400 (EDT) Original-Received: from sydgate01.cogita.local (smtp.cogita.com.au [203.14.179.170]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GWU005GEY3GPW@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 29 May 2002 01:33:22 -0400 (EDT) Original-To: "'tru64-unix-managers@ornl.gov'" Xref: main.gmane.org gmane.os.tru64.managers:356 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:356 Hi all, I have a 2 node cluster running V5.1. Each node has a locally connected tape drive. How (in a script) do I determine which is the local tape drive to backup to? ie. If the backup job is running on node 1 then I want to use node 1's tape drive, otherwise I want to use node 2's tape drive. I guess I could hard code it depending on the value of `hostname`. TIA, Mark.