From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Udo Grabowski Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Mounting local harddisks in cluster ? Date: Wed, 15 Jan 2003 18:17:42 +0100 Organization: Forschungszentrum Karlsruhe Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3E2597B6.3070409@imk.fzk.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1042651022 26101 80.91.224.249 (15 Jan 2003 17:17:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2003 17:17:02 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18Yr9t-0006m2-00 for ; Wed, 15 Jan 2003 18:16:58 +0100 Original-Received: (qmail 25470 invoked by uid 5); 15 Jan 2003 17:18:05 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 25458 invoked by uid 49493); 15 Jan 2003 17:18:05 -0000 Original-Received: from Udo.Grabowski@imk.fzk.de by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-5.6/5.0):. Processed in 0.561265 secs); 15 Jan 2003 17:18:05 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 15 Jan 2003 17:18:04 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H8R00IN7MQ30G@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 15 Jan 2003 12:18:04 -0500 (EST) Original-Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with SMTP id <0H8R00JL5MPJF6@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 15 Jan 2003 12:17:50 -0500 (EST) Original-Received: FROM FZKMSX4.ka.fzk.de BY fzkmail2.fzk.de ; Wed Jan 15 18:17:42 2003 +0100 Original-Received: from imk.fzk.de ([141.52.58.53]) by FZKMSX4.ka.fzk.de with Microsoft SMTPSVC(5.0.2195.4453); Wed, 15 Jan 2003 18:17:42 +0100 Original-To: tru64help X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20020827 X-OriginalArrivalTime: 15 Jan 2003 17:17:42.0740 (UTC) FILETIME=[036FE940:01C2BCBA] Xref: main.gmane.org gmane.os.tru64.managers:2973 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2973 Thanks to Dr.T.Blinn and Jayant Nash for their clear answers. As suspected this (original question below) cannot be done from /etc/fstab (only for NFS). So I've written a small script for /sbin/init.d which is linked in rc3.d and rc0.d (to unmount). I can send it if someone needs a quick solution. ======== Original question ============ > I have several harddisks in our 8 cluster ES40 with a advfs domain > Work_#Work ( = 1-8) and want to mount them on a > global directory /Work, which is a cdsl to /cluster/members/{memb}/Work, > so that every machine has it's own space associated with this directory. > I can do it by hand 'mount Work_#Work /cluster/members/member/Work', > but placing 8 such mounts into /etc/fstab does nothing. Mounts with > local directories seem to be completely ignored by the CFS. > But this mechanism works when mounting NFS directories this way. And > how and where are the root_domain disks mounted, which are also not > mentioned in /etc/fstab ? Where must I place the mounts to get them at > boot time ? ======== Tom's answer =============== If I understand your question correctly (and I'm not sure that I do), you have an 8 member cluster, and you have 8 domains, each of which has a single fileset. Each domain is intended to be used on just one member. I believe you can't do this from /etc/fstab because it's really meant for things that are highly available. These are not, at least, not as you describe them. What I think you want to do is create a script that runs from your /sbin/init.d, probably from rc2.d, that does the mount on the way up on each member, using the mount command as you describe. You want to do it that way so that only that member serves the file system in the cluster (if in fact it ever gets served). NFS is just different, as is mounting the cluster root. Forget what you think you know about how UNIX works, TruCluster isn't UNIX and it changes all kinds of things. ========== Jayant's answer ============== I had the same situation, n there are 2 ways to work around with local disks mounting. 1) If you use the server_only option in the fstab that would work only for that node, all other entries will give a small error at boot time, n will continue booting. 2) This is what i did, i wrote a script which will mount and unmount the file system stop the volume and deport the diskgroup.( if under lsm control)and created links in rc3.d and rc0.d( S99mount_local and K01unmount_local ).So u will not get a domain panic message on other nodes when the system goes down. In the first method u will not be able to see the mounted dir on other nodes ( as this server_only). If you want i can give u the script. About mount rootvol its done using the bcheckrc script in /sbin, which in turn calls the mountroot script. -- Dr. Udo Grabowski email: udo.grabowski@imk.fzk.de Institut f. Meteorologie und Klimaforschung II, Forschungszentrum Karslruhe Postfach 3640, D-76021 Karlsruhe, Germany Tel: (+49) 7247 82-6026 http://www.fzk.de/imk/imk2/ame/grabowski/ Fax: " -6141