Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Emmanuel Choquet <ics@cica.fr>
To: Morten Knudsen <morten@eurospill.no>
Subject: Re: Moving system to another disk
Date: 1999/02/01	[thread overview]
Message-ID: <36B57D19.1AB95D66@cica.fr> (raw)
In-Reply-To: 36B1914A.8ED16726@eurospill.no

[-- Attachment #1: Type: text/plain, Size: 1896 bytes --]



Morten Knudsen wrote:

> have / and /usr partitions on two different advfs domains.
> Can I just create new partitions and use tar or something?
> I'm not sure what actually makes a DU/Alpha system boot.
>

 Let's consider you duplicate on rz2. first, you must have advfs boot
blocks :

disklabel -wr -t advfs rz2 RZ28
disklabel -er rz2                 # to get the desired size for /, /usr
[/var], and swap

then create the new domains and filesets
mkfdmn /dev/rz2a rd
mkfdmn /dev/rz2g ud

mkfset rd root
mkfset ud usr

mkdir /new_root   /new_usr
mount rd#root /new_root
mount ud#usr /new_usr


you can now check that boot blocks are OK :
/sbin/advfs/advscan -a -g          # volume must be bootable

then copy your system :

vdump 0f - / | (cd /new_root ; vrestore xf -)
vdump 0f - /usr | (cd /new_usr ; vrestore xf -)

now you must patch your new etc/fdmns hierarchy
assuming the 2 domains in your old system are root_domain and usr_domain
:


cd /new_root/etc/fdmns
mv root_domain old_root
mv usr_domain old_usr
mv rd root_domain
mv ud usr_domain

now you must patch /new_root/etc/fstab to point to the future new swap
partition (file system type "sw")

And at last, do not forget this one : if you use eager mode for
swapping, change the
sym. link /new_root/sbin/swapdefault to the new 1st swap partition

after you shutdown

>>> set bootdef_dev dka200
>>> boot

Enjoy

this is unused but edit /etc/rc.config in your new system to reflect the
correct swaping, you'll see
--
Emmanuel Choquet
Informatique Client/Serveur
& Communication
                _/
                            _/
              _/   _/_/_/  _/   _/_/_/
             _/   _/      _/   _/
            _/   _/      _/   _/_/_/
           _/   _/      _/       _/
          _/   _/_/_/  _/   _/_/_/

ics@cica.fr
c/o Cica      Tel: (33) 4 92.94.23.50
2229, route des cretes  fax: (33) 4 92.94.23.54
06560 Sophia-Antipolis


[-- Attachment #2: Type: text/html, Size: 3074 bytes --]

      reply	other threads:[~1999-02-01  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-29  5:00 Moving system to another disk Morten Knudsen
1999-02-01  5:00 ` Emmanuel Choquet [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox