From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rich Glazier Newsgroups: gmane.os.tru64.managers Subject: SUMMARY:CORRECTION migrating boot disk (root_domain) from one EVA to another Date: Mon, 16 Feb 2009 12:59:57 -0800 (PST) Message-ID: <511664.14481.qm@web32205.mail.mud.yahoo.com> References: <139684.35795.qm@web32207.mail.mud.yahoo.com> <395890.89777.qm@web32201.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1234818027 9302 80.91.229.12 (16 Feb 2009 21:00:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Feb 2009 21:00:27 +0000 (UTC) To: tru64-unix-managers@ornl.gov Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Feb 16 22:01:43 2009 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by lo.gmane.org with smtp (Exim 4.50) id 1LZAb0-0000EO-GA for gotm-tru64-unix-managers@gmane.org; Mon, 16 Feb 2009 22:01:42 +0100 Original-Received: (qmail 11202 invoked by uid 49509); 16 Feb 2009 21:00:11 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 11192 invoked by uid 49501); 16 Feb 2009 21:00:10 -0000 Original-Received: from 160.91.86.17 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.86.17):SA:0(-2.6/5.0):. Processed in 0.996454 secs); 16 Feb 2009 21:00:10 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute2.ornl.gov (160.91.86.17) by sws1.ornl.gov with SMTP; 16 Feb 2009 21:00:09 -0000 Original-Received: from emroute2.ornl.gov ([127.0.0.1]) by emroute2.ornl.gov (PMDF V6.4 #31561) with ESMTP id <0KF60065YFO9TI@emroute2.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Mon, 16 Feb 2009 16:00:09 -0500 (EST) Original-Received: from CONVERSION-DAEMON.emroute2.ornl.gov by emroute2.ornl.gov (PMDF V6.4 #31561) id <0KF600701FO9P0@emroute2.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Mon, 16 Feb 2009 16:00:09 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute2.ornl.gov by emroute2.ornl.gov (PMDF V6.4 #31561) id <0KF600702FNYMC@emroute2.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Mon, 16 Feb 2009 16:00:09 -0500 (EST) Original-Received: from web32205.mail.mud.yahoo.com (web32205.mail.mud.yahoo.com [68.142.207.136]) by emroute2.ornl.gov (PMDF V6.4 #31561) with SMTP id <0KF600M9KFNXB3@emroute2.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Mon, 16 Feb 2009 15:59:58 -0500 (EST) Original-Received: (qmail 14500 invoked by uid 60001); Mon, 16 Feb 2009 20:59:57 +0000 Original-Received: from [65.114.238.246] by web32205.mail.mud.yahoo.com via HTTP; Mon, 16 Feb 2009 12:59:57 -0800 (PST) X-Envelope-from: rglazier2002@yahoo.com X-Mailer: YahooMailRC/1155.45 YahooMailWebService/0.7.260.1 X-Spam-Virus: No X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spam3.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,BOTNET_SERVERWORDS, FREEMAIL_FROM autolearn=no version=3.2.5 X-YMail-OSG: lhJHR2IVM1lz1siNKXQWW3MELVUdD5EQ0vGPQ8c7QtTxH6FKe9QKypVD8nQO8EfZCYaldiQEHIJKc7dCQb0RfnkU4VM8S2e20VvWEqMVUAxOVwu_aEFQKm3MyYWU70ITwRjDKLd5puvCX12Q.BdkV6BufJ7nZrC3fdTTLPnD7_bqJU04LObYqBpn8gq82uFlz5XGkGW29hU9OpNLaqy1RyYRaxO19A-- DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=f5CxGxhkhrZJ3GKYghYOVLheIuODt6/up107FFTPS7NW8kxrBdcqDjAv5sNlIaMTiDvW+XdN+ogS9nbysP8hEHM7PGiqUfkdfdUhvrPX8jMP+B0pD8nmc3mx3FkyyYP/tqM1YoJ3zmXXMdhGftIFZnojZCTZhJ78mjCnTEnnytY=; Xref: news.gmane.org gmane.os.tru64.managers:9366 Archived-At: Make sure you are in the new /etc when editing files for the new boot disk = (in this case /root2/etc/...)=0A=0A=0A=0A----- Original Message ----=0AFrom= : Rich Glazier =0ATo: tru64-unix-managers@ornl.gov= =0ASent: Tuesday, February 10, 2009 3:40:09 PM=0ASubject: SUMMARY: migratin= g boot disk (root_domain) from one EVA to another=0A=0AThanks to Jean-marc,= DAvid, Thomas, Johan, Bruce, Chris, Jason, and Bluejay.=0A=0AThe procedure= I used, that worked, was...=0A=0A- present new root lun from 8100=0A- hwmg= r sc sc=0A- hwmgr sh sc / hwmgr v d =C2=A0(note Lun # /OSID of new disk)=0A= - disklabel -rw =E2=80=93tadvfs /dev/rdisk/dskxxa (making it bootable)=0A- = start exceed / export display / start diskconfig =0A=C2=A0=C2=A0=C2=A0 - pa= rtition a as advfs, and h as swap=0A- mkfdmn =E2=80=93r /dev/disk/dskxxa ro= ot2_domain=0A- mkfset root2_domain root=0A- mkdir /root2=0A- mount =E2=80= =93tadvfs root2_domain#root /root2=0A- shutdown system application=0A- vdum= p -0f - / | vrestore -xf - -D /root2=0A- check /etc/sysconfigtab for swap d= isks.=C2=A0 Remove old ones, put disk part in.=0A- bring to single user mod= e(init s)=0A- add to fstab file so that root2_domain#root mounts to /=C2=A0= =0A- change fstab file so that root_domain#root is renamed to oldroot_domai= n#root mounted to /oldroot=0A- mkdir /oldroot=0A- change root_domain to old= root_dominan in /etc/fdmns=0A- halt system (shutdown -h) to SRM prompt, sho= w old boot device=0A=C2=A0=C2=A0=C2=A0=C2=A0-=C2=A0 P00>>> show bootdef_dev= =C2=A0 (pga...)=0A- go into wwidmgr and quickset to new lun paths=0A=C2=A0= =C2=A0=C2=A0 - =C2=A0P00>>> init=0A=C2=A0=C2=A0=C2=A0 - =C2=A0P00>>> wwidmg= r -show wwid=C2=A0 (take note of old boot disks)=0A-=C2=A0=C2=A0=C2=A0 P00>= >> wwidmgr -clear all=0A=C2=A0=C2=A0=C2=A0 - =C2=A0P00>>> wwidmgr -show wwi= d=C2=A0=C2=A0 (find UDID that matches OSID from lun on 8100)=0A=C2=A0=C2=A0= =C2=A0 -=C2=A0 P00>>> init=0A-=C2=A0=C2=A0=C2=A0 P00>>> wwidmgr -quickset -= udid ##=C2=A0 (## is OSID of lun.=C2=A0do for one path from each controller= )=0A-=C2=A0=C2=A0=C2=A0 P00>>> init=0A-=C2=A0=C2=A0=C2=A0 P00>>> show dev k= gpsa*=C2=A0 (find pga* names of devices to boot)=0A-=C2=A0=C2=A0=C2=A0 P00>= >> init=0A=C2=A0=C2=A0=C2=A0=C2=A0-=C2=A0 P00>>> set bootdev_dev=C2=A0 pga*= ..., pgb*... =C2=A0=0A- b -fl s (boot to single user mode)=0A- If it boots = from new disk, continue to multiuser mode (CTRL D)=0A- df to see that the r= oot2_domain is mounted on /=0A- ls =E2=80=93lR /etc/fdmns/*=C2=A0 -=C2=A0 m= ake sure root2_domain is pointing to right disk=0A=0A=0A=0A----- Original M= essage ----=0AFrom: Rich Glazier =0ATo: tru64-unix-= managers@ornl.gov=0ASent: Wednesday, February 4, 2009 7:58:16 PM=0ASubject:= migrating boot disk (root_domain) from one EVA to another=0A=0A5.1A PK6, D= S20E, EVA5000=0A=0AManagers,=0A=0AI know that the root domain is the only d= omain in AdvFS that you can not add a volume to.=C2=A0 We are migrating our= storage from an old EVA5000 to a new EVA8100, and I've been using addvol/r= mvol to accomplish this for the non root domains.=C2=A0=0A=0A=C2=A0=C2=A0= =C2=A0 (presented a new lun from the 8100, labeled it, added the volume int= o the domain (addvol), and removed the =0A=C2=A0=C2=A0=C2=A0 old 5000 volum= e from the domain (rmvol)).=0A=0AI can not do this for the bootable root di= sk; I boot off the SAN.=C2=A0 I need to migrate the root_domain another way= .=C2=A0 Here was my plan.=C2=A0 Please see if this seems sounds.=C2=A0 If t= here's a better way to do it, or if anyone has done it, please let me know.= =0A=0A- present new root lun from 8100=0A- hwmgr sc sc=0A- hwmgr sh sc / hw= mgr v d =C2=A0(note Lun # /OSID of new disk)=0A- disklabel -rw new disk (ma= king it bootable)=0A- mkfdmn /dev/disk/dskxx root2_domain=0A- mkfset root2_= domain root=0A- mkdir /root2=0A- mount root2_domain#root /root2=0A- shutdow= n system application=0A- vdump -0f - / | vrestore -xf - -D /root2=0A- chang= e system to not reboot=0A=C2=A0=C2=A0=C2=A0 - consvar -s auto_action HALT= =0A=C2=A0=C2=A0=C2=A0 - consvar -l (see that it changed)=0A=C2=A0=C2=A0=C2= =A0 - consvar -a (write it to NVRAM)=0A- bring to single user mode (init s)= =0A- change fstab file so that root2_domain#root mounts to /=C2=A0=0A- chan= ge fstab file- comment out root_domain#root mount=0A- shutdown system (halt= ) to SRM prompt, show old boot device=0A=C2=A0=C2=A0=C2=A0=C2=A0 -P00>>> sh= ow bootdef_dev=C2=A0 (pga...)=0A- go into wwidmgr and quickset to new lun p= aths=0A=C2=A0=C2=A0=C2=A0 - P00>>> wwidmgr -show wwid=C2=A0 (take not of ol= d boot disks)=0A=C2=A0=C2=A0=C2=A0 - P00>>> init=0A=C2=A0=C2=A0=C2=A0 - P00= >>> set mode diag=0A=C2=A0=C2=A0=C2=A0 - P00>>> init=0A=C2=A0=C2=A0=C2=A0= =C2=A0 -P00>>> wwidmgr -clear all=0A=C2=A0=C2=A0=C2=A0=C2=A0 -P00>>> init= =0A=C2=A0=C2=A0=C2=A0 - P00>>> wwidmgr -show wwid=C2=A0=C2=A0 (find UDID th= at matches OSID from lun on 8100)=0A=C2=A0=C2=A0=C2=A0 -=C2=A0P00>>> init= =0A=C2=A0=C2=A0=C2=A0=C2=A0 -P00>>> wwidmgr -quickset -udid ##=C2=A0 (## is= OSID of lun.=C2=A0do for one path from each controller)=0A=C2=A0=C2=A0=C2= =A0=C2=A0 -P00>>> init=0A=C2=A0=C2=A0=C2=A0=C2=A0 -P00>>> show dev kgpsa*= =C2=A0 (find pga* names of devices to boot)=0A=C2=A0=C2=A0=C2=A0=C2=A0 -P00= >>> init=0A=C2=A0=C2=A0=C2=A0=C2=A0 -P00>>> set bootdev_dev=C2=A0 pga*..., = pgb*... =C2=A0=0A- Change console from HALT to BOOT=0A=C2=A0=C2=A0=C2=A0=C2= =A0 -P00>>> set auto_action boot=0A- b -fl s (boot to single user mode)=0A-= If it boots from new disk, continue to multiuser mode (CTRL D)=0A=0A=0ATha= nks for the help,=0A=0ARich=0A=0A=0A