From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Raymond Pang Newsgroups: gmane.os.tru64.managers Subject: Summary: Moving cluster root and boot disk Date: Mon, 05 Aug 2002 15:13:35 +0800 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <20020805151335.A5278@cuse179.se.cuhk.edu.hk> References: <20020620173242.D10683@cuse179.se.cuhk.edu.hk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1028531621 16574 127.0.0.1 (5 Aug 2002 07:13:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 5 Aug 2002 07:13:41 +0000 (UTC) Cc: wmpang@se.cuhk.edu.hk 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 17bc3f-0004JD-00 for ; Mon, 05 Aug 2002 09:13:39 +0200 Original-Received: (qmail 4466 invoked by uid 5); 5 Aug 2002 07:14:11 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 4458 invoked from network); 5 Aug 2002 07:14:11 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 5 Aug 2002 07:14:11 -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 <0H0D00E9D03MSB@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 05 Aug 2002 03:14:11 -0400 (EDT) Original-Received: from cuse68.se.cuhk.edu.hk (cuse68.se.cuhk.edu.hk [137.189.59.68]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H0D001EG031BY@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 05 Aug 2002 03:13:51 -0400 (EDT) Original-Received: from cuse190.se.cuhk.edu.hk (localhost [127.0.0.1]) by cuse68.se.cuhk.edu.hk (8.11.2/8.11.2) with ESMTP id g757Dao01787; Mon, 05 Aug 2002 15:13:37 +0800 (HKT) Original-Received: from cuse179.se.cuhk.edu.hk (cuse179.se.cuhk.edu.hk [137.189.59.179]) by cuse190.se.cuhk.edu.hk (8.11.3/8.11.3) with ESMTP id g757Daa1710325; Mon, 05 Aug 2002 15:13:36 +0800 (HKT) Original-Received: (from wmpang@localhost) by cuse179.se.cuhk.edu.hk (8.9.3/8.9.3) id PAA27854; Mon, 05 Aug 2002 15:13:35 +0800 (HKT) In-Reply-To: <20020620173242.D10683@cuse179.se.cuhk.edu.hk>; from Raymond Pang on Thu, Jun 20, 2002 at 05:32:42PM +0800 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Mutt 0.95.6i Xref: main.gmane.org gmane.os.tru64.managers:1234 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1234 Hi, Sorry for this late summary. I finally finished the migration last Saturday. Thanks to: "Hagan, Stephen" david.ross@cantire.com alan@nabeth.cxo.cpqcorp.net Matthew Wild Especially Stephen.Hagan@hp.com, he provided me the detailed steps of how this could be done. Please email me if anybody is interested. Anyway, below was what I did. Member boot disk migration ========================== clu_get_info -m 2 - determine members is down # backup the boot partition mount root2_domain#root /mnt vdump -0Df /var/cluster/members/member2/boot_part_vdump /mnt umount /mnt disklabel -z dsk147 disklabel -rw -t advfs dsk147 hsg80 disklabel -e dsk147 # partition the disk /usr/sbin/clu_bdmgr -c dsk147 2 # config dsk147 as member2 boot disk Ignore "Bad disk label" error mount root2_domain#root /mnt vrestore -xf /var/cluster/members/member2/boot_part_vdump -D /mnt /usr/sbin/clu_bdmgr -h dsk147 /mnt/etc/clu_bdmgr.conf file /dev/disk/dsk147h # get major/minor cd /mnt/etc cp sysconfigtab sysconfigtab-bu vi sysconfigtab swapdevice=/dev/disk/dsk147b clubase: cluster_seqdisk_major=19 - from "file /dev/disk/dsk147h" cluster_seqdisk_minor=2767 - from "file /dev/disk/dsk147h" umount /mnt Boot from new disk >>> show dev - find the correct boot disk >>> set bootdef_dev dkd0 >>> boot dkd0 Cluster common disk migration ============================= # cluster root duplication mkfdmn /dev/disk/dsk145b cluster_target_root mkfset cluster_target_root root mkdir /cluster_target_root mount cluster_target_root#root /cluster_target_root clonefset cluster_root root clone_root mkdir -p /clone/clone_root mount cluster_root#clone_root /clone/clone_root vdump -0f - /clone/clone_root | (cd /cluster_target_root; vrestore -xf -) umount /clone/clone_root rmfset cluster_root clone_root rmdir /clone/clone_root cd /cluster_target_root/etc/fdmns cd cluster_root rm *;ln -s /dev/disk/dsk145b cd ../cluster_usr rm *;ln -s /dev/disk/dsk145g cd ../cluster_var rm *;ln -s /dev/disk/dsk145h cd umount /cluster_target rmdir /cluster_target_root # cluster usr duplication rm -r /etc/fdmns/cluster_target_root mkfdmn /dev/disk/dsk145g cluster_target_usr mkfset cluster_target_usr usr mount cluster_target_usr#usr /cluster_target_usr clonefset cluster_usr usr clone_usr mkdir -p /clone/clone_usr mount cluster_usr#clone_usr /clone/clone_usr vdump -0f - /clone/clone_usr | (cd /cluster_target_usr; vrestore - xf -) umount /clone/clone_usr rmfset cluster_usr clone_usr rmdir /clone/clone_usr rmdir /cluster_target_usr # cluster var duplication rm -r /etc/fdmns/cluster_target_usr mkfdmn /dev/disk/dsk145h cluster_target_var mkfset cluster_target_var var mount cluster_target_var#var /cluster_target_var clonefset cluster_var var clone_var mkdir -p /clone/clone_var mount cluster_var#clone_var /clone/clone_var vdump -0f - /clone/clone_var | (cd /cluster_target_var; vrestore -xf -) umount /clone/clone_var rmfset cluster_var clone_var rmdir /clone/clone_var rmdir /cluster_target_var file /dev/disk/dsk145b /dev/disk/dsk145b: block special (19/2723) Shutdown the whole cluster and boot each member with: >>> boot -fl "ia" 'vmunix':vmunix cfs:cluster_root_dev1_maj=19 \ cfs:cluster_root_dev1_min=2723[Return] Regards, Raymond On Thu, Jun 20, 2002 at 05:32:42PM +0800, Raymond Pang wrote: > Hi Guru, > > We have a 3-member 5.1A cluster. All member boot and cluster root disks > are sitting in HSZ40. Each is protected by individual mirror set (2x4G). > Now, we are planning to move all of this to a mirror set (2x36G > 4-partition) in HSG80. > > Could anybody give me some advices on how this could be done safely > and without interruption to the cluster services? > > On the other hand, we are thinking about the redundance of these critical > disks. We have another HSZ70. So, one option is to put each member boot > disk on different HSX, and use LSM to mirror the cluster root to other > HSZ. In case if the whole HSG goes down, cluster still have sufficient > votes to survive. Does it work or is there any better solution? > > Thanks in advance. > > Regards, > Raymond >