From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: urban@Tru64.NOSPAM.org Newsgroups: gmane.os.tru64.managers Subject: ANNOUNCE: script to clone V5.X cluster Date: Tue, 22 Oct 2002 03:17:42 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <200210220117.DAA0000005569@hell.spielwiese.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035249455 1116 80.91.224.249 (22 Oct 2002 01:17:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 22 Oct 2002 01:17:35 +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 183nfp-0000Hd-00 for ; Tue, 22 Oct 2002 03:17:33 +0200 Original-Received: (qmail 838 invoked by uid 5); 22 Oct 2002 01:18:20 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 783 invoked by uid 49493); 22 Oct 2002 01:18:20 -0000 Original-Received: from urban@Tru64.NOSPAM.org by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(0.3/5.0):. Processed in 0.769957 secs); 22 Oct 2002 01:18:20 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 22 Oct 2002 01:18:19 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4C00240ZMI4Y@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 21 Oct 2002 21:18:18 -0400 (EDT) Original-Received: from mailout07.sul.t-online.com (mailout07.sul.t-online.com [194.25.134.83]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H4C0086DZLNEA@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 21 Oct 2002 21:17:48 -0400 (EDT) Original-Received: from fwd04.sul.t-online.de by mailout07.sul.t-online.com with smtp id 183ng2-00037E-03; Tue, 22 Oct 2002 03:17:46 +0200 Original-Received: from hell.spielwiese.de (520069759321-0001@[217.235.125.215]) by fmrl04.sul.t-online.com with esmtp id 183ng0-0InNGiC; Tue, 22 Oct 2002 03:17:44 +0200 Original-Received: from UNIX-Beratung.de by hell.spielwiese.de (8.9.3/1.1.29.3/14Aug01-0937PM) id DAA0000005569; Tue, 22 Oct 2002 03:17:42 +0200 (CEST) X-Sender: 520069759321-0001@t-dialin.net Original-To: tru64-unix-managers@ornl.gov X-Mailer: exmh version 2.0.2 2/24/98 Xref: main.gmane.org gmane.os.tru64.managers:2147 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2147 Hello Tru64-Managers, I have written a ~2800-line Perl script which can clone a V5 cluster with some restrictions. "clone" means completely separate disks and/or disk partitions are configured as "alternates" for: - member boot disks - cluster root - cluster var - cluster usr - quorum The idea behind the script is to create a complete copy of the cluster, which can be booted from should something happen to the "primary" cluster disks. All cluster members must be booted from either the "primary" or "clone" disks. They cannot be mixed. Mostly people run the script daily from cron(8). The script uses a configuration file to figure out what it should do. Many of the options are optional (hmm, a tautology?). Restrictions: - system disks cannot be set up using LSM. - in general, cluster should be "well-formed", meaning no weird or wacky things have been done to the configuration. Mostly the script can determine if it is safe to try to clone. - currently, the script will barf if you are using a quorum disk to hold LSM config-DB copies. The script tries to avoid doing destructive things to existing data. For example, it will refuse to start a clone operation if any of the target disks specified in the config file seem to be in use by the system (i.e., mounted filesystems, swap areas, a quorum disk, anything in LSM). There is a debug-mode which will prevent the script from actually doing anything destructive, such as repartitioning a disk, or copying data. The script is in use a various locations and seems to be pretty robust, nevertheless I make no guarantees whatsoever that it will do anything useful or that your data will be intact after it has run. If anyone is interested in getting the script, (s)he should send me a mail at (remove "NOSPAM."). cheers, Robert Urban