Summary Move root to a new disk

From: zwluxx@chopin.cipic.ucdavis.edu
Date: Fri Aug 16 2002 - 17:34:36 EDT


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" <Mahendra.Rajah@URegina.CA
alan@nabeth.cxo.cpqcorp.net
Adametz, Bluejay" <bluejay@fujigreenwood.com
(who also points out how using dsfmgr hwmgr to rename my dsk2 back to dsk0, which I have not
tried yet).

I also included Dr. Blinn's email
>
> > 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


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:49 EDT