From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: zwluxx@chopin.cipic.ucdavis.edu Newsgroups: gmane.os.tru64.managers Subject: Summary Move root to a new disk Date: Fri, 16 Aug 2002 14:34:36 -0700 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <200208162134.g7GLYa410965@chopin.cipic.ucdavis.edu> References: <200208161952.PAA0000012207@doctor.zk3.dec.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029534855 13048 127.0.0.1 (16 Aug 2002 21:54:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 16 Aug 2002 21:54:15 +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 17fp2q-0003OB-00 for ; Fri, 16 Aug 2002 23:54:12 +0200 Original-Received: (qmail 21585 invoked by uid 5); 16 Aug 2002 21:35:11 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 21577 invoked from network); 16 Aug 2002 21:35:11 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 16 Aug 2002 21:35: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 <0H0Y00IIQHABJE@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 16 Aug 2002 17:35:10 -0400 (EDT) Original-Received: from chopin.cipic.ucdavis.edu (chopin.cipic.ucdavis.edu [169.237.153.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H0Y0043THA369@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 16 Aug 2002 17:34:52 -0400 (EDT) Original-Received: (from zwluxx@localhost) by chopin.cipic.ucdavis.edu (8.11.2/8.11.2) id g7GLYa410965; Fri, 16 Aug 2002 14:34:36 -0700 (PDT) In-Reply-To: "Your message of Fri, 16 Aug 2002 15:52:38 EDT." <200208161952.PAA0000012207@doctor.zk3.dec.com> Original-To: tru64-unix-managers@ornl.gov X-Mailer: exmh version 2.3.1 03/13/2001 with nmh-1.0.3 Xref: main.gmane.org gmane.os.tru64.managers:1388 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1388 Hi Managers, Thank many of you who responded to my email quickly. After I sent my email, I dug out the command that I want. disklabel -r to save my disk configuration and disklabel -r -R to make it bootable. However, that works for 4.0x systems. As pointed by Dr. Thomas Blinn, V5 names disk a little differently. After I took away the old disk and make the new disk SCSI 0, and I start the system, but system fail to mount /usr, because V5 still makes the my new disk dsk2 rather than dsk0. I have to boot to single user mode and modify /etc/fstab for /usr. After I reboot, I notice that disk swap was not turned on. I have to modify /etc/sysconfigtab as pointed by Tom again. Anyway, I think that I know what I need to do next time for the V5 root disk swap (or any other disk). I would like to thank these folks: A. Mahendra Rajah" > > Hi Managers, > > > > I am trying to move root disk (ADVFS) to a new disk on a 5.1A system. > > I have made a newroot_file on the new disk, I then do > > vdump -0 -f - / | (cd /newroot; vrestore -x -f -) > > but I forgot about one command that will make the new disk bootable. > > > > I have moved old root disk to new a disk on 4.0x systems before. I could not > > find that on new docs for 5.1a. > > I will swap the disk and make the new disk taking over the scsi 0 that was > > used by the old disk. Will this still work for 5.1A? > > > > Thank you. > > > > > > -- > > Zhi-Wei Lu > > CIPIC (Center for Image Processing and Integrated Computing) > > UC Davis Phone: (530)-752-0494 > > Davis, CA 95616 Fax: (530)-752-8894 > > You need to look at the /etc/fstab and identify the mount info > for the things you've moved to the new disk. Also look at the > swap definition in /etc/sysconfigtab. Bear in mind that your > new disk has a new name -- you need to find the AdvFS domain > definitions in /etc/fdmns for the domains that have filesets > that will be mounted, and fix them on the new disk to point to > the new disk name. You also need to update the swap pointers > in /etc/sysconfigtab. Once you do that, you should be able to > boot the new disk regardless of its real SCSI location, since > in V5.x the disk name is independent of the phyical address for > most modern disks. > > Tom > > Dr. Thomas P. Blinn + Tru64 UNIX Software + Hewlett-Packard Company > Internet: tpb@zk3.dec.com, thomas.blinn@compaq.com, thomas.blinn@hp.com > 110 Spit Brook Road, MS ZKO3-2/W17 Nashua, New Hampshire 03062-2698 > Technology Partnership Engineering Phone: (603) 884-0646 > ACM Member: tpblinn@acm.org PC@Home: tom@felines.mv.net > > Worry kills more people than work because more people worry than work. > > Keep your stick on the ice. -- Steve Smith ("Red Green") > > My favorite palindrome is: Satan, oscillate my metallic sonatas. > -- Phil Agre, pagre@alpha.oac.ucla.edu > > Yesterday it worked / Today it is not working / UNIX is like that > -- apologies to Margaret Segall > > Opinions expressed herein are my own, and do not necessarily represent > those of my employer or anyone else, living or dead, real or imagined. > > -- Zhi-Wei Lu CIPIC (Center for Image Processing and Integrated Computing) UC Davis Phone: (530)-752-0494 Davis, CA 95616 Fax: (530)-752-8894