From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Garsha, Adam" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Migrate single node cluster from EMA storage to EVA storage without OS reinstall Date: Thu, 07 Jul 2005 09:02:39 -0500 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1120745202 26169 80.91.229.2 (7 Jul 2005 14:06:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2005 14:06:42 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Jul 07 16:06:40 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1DqX17-0002Tf-OW for gotm-tru64-unix-managers@gmane.org; Thu, 07 Jul 2005 16:06:18 +0200 Original-Received: (qmail 585 invoked by uid 49509); 7 Jul 2005 14:06:01 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 570 invoked by uid 49501); 7 Jul 2005 14:06:01 -0000 Original-Received: from 160.91.4.119 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.119):SA:0(-2.6/5.0):. Processed in 0.536815 secs); 07 Jul 2005 14:06:01 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute1.cind.ornl.gov (160.91.4.119) by sws1.ornl.gov with SMTP; 7 Jul 2005 14:06:00 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IJ9002OLGHSHR@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 07 Jul 2005 10:06:00 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute1.cind.ornl.gov by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0IJ900C08GHFO4@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 07 Jul 2005 10:05:50 -0400 (EDT) Original-Received: from its-exsmtp1.marqnet.mu.edu (email.marquette.edu [134.48.20.169]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IJ9008ABGCR5S@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 07 Jul 2005 10:02:52 -0400 (EDT) Original-Received: from EMARQ2.marqnet.mu.edu ([134.48.20.153] RDNS failed) by its-exsmtp1.marqnet.mu.edu with Microsoft SMTPSVC(6.0.3790.211); Thu, 07 Jul 2005 09:02:51 -0500 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.5.7226.0 Thread-Topic: SUMMARY: Migrate single node cluster from EMA storage to EVA storage without OS reinstall thread-index: AcWCOFv2EnSBX823QuaOsnrE14QA4QAImg5QAAAbH9AAKEyVAA== Content-class: urn:content-classes:message X-Envelope-From: X-MS-Has-Attach: X-MS-TNEF-Correlator: X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on email.cind.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 X-OriginalArrivalTime: 07 Jul 2005 14:02:51.0650 (UTC) FILETIME=[906F2620:01C582FC] Xref: news.gmane.org gmane.os.tru64.managers:8424 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8424 Migrate OS disk for single node cluster from EMA to EVA storage, when both storage arrays will be visible simultaneously. =20 ######################################################################## ### 0. Present necessary storage from EVA and adjust zones as appropriate (so box can see EVA) and back everything up.=20 hwmgr -scan scsi dsfmgr -v=20 # if output isn't good, then "dsfmgr -vVF" a couple times. =20 ######################################################################## ### 1. Use addvol/rmvol to update cluster_usr, cluster_var, cluster_root domains with disk partitions from the EVA. =20 ######################################################################## ### 2. Delete, then Re-add quorum disk (where dskXX is an EVA based disk). Currently, we have a single node and the quorum disk isn't counting a vote, so we can do this with the system up and online without any impact. =20 clu_quorum -f -d remove clu_quorum -f -d add dskXX 0 =20 ######################################################################## ### 3. Build copy of boot disk onto EVA disk =20 clu_bdmgr -c dskYY 2 # 2 is a non-existant cluster member =20 # Mount member2's root domain (now on dskYY) so you can edit member2's /etc/sysconfigtab and restore the boot partitions: =20 mount root2_domain#root /mnt =20 # Restore the boot partition: =20 vdump -0 -f - /cluster/members/member1/boot_partition | (cd /mnt; vrestore -x -f -) # Adjust disk entries and swap disk entry in sysconfigtab vi /mnt/etc/sysconfigtab # update sysconfigtab with information about boot disk ... vm: swapdevice=3D/dev/disk/dskYYb clubase: cluster_seqdisk_major=3D19 # Get correct number from file /dev/disk/dskYYh cluster_seqdisk_minor=3D175 # Get correct number from file /dev/disk/dskYYh ... # Restore the h partition CNX information: =20 /usr/sbin/clu_bdmgr -h dskYY =20 The h partition information is copied from the cluster member where you run the clu_bdmgr command to the h partition on dskYY. =20 # Unmount the new boot domain: =20 umount root2_domain#root /mnt =20 # Edit disklabel and change "label: clu_member2" to "label: clu_member1": =20 disklabel -r -e dskYY =20 # Adjust /etc/fdmns links: =20 cd /etc/fdmns mv root1_domain root1_domain_original mv root2_domain root1_domain =20 # Use the consvar -s bootdef_dev disk_name command on member1 to set the bootdef_dev variable to the new disk.=20 =20 consvar -s auto_action HALT consvar -l consvar -a =20 # Shutdown =20 shutdown -h now =20 ######################################################################## ### 4. Adjust SRM's view of the world. =20 wwidmgr -show wwid # note that the old boot disk OS_Identifier (UDID) was 20. wwidmgr -clear all init wwidmgr -quickset -udid YY_UNIQUE_ID wwidmgr -show wwid init show device set bootdef_dev dga20,dgb20 (or whatever) =20 ######################################################################## ### 5. Hold onto your hat =20 boot =20 ######################################################################## ### 6. reset consvar auto_action =20 consvar -s auto_action BOOT consvar -a consvar -l