From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,78e20a1b578a16e X-Google-Attributes: gidfee84,public From: Emmanuel Choquet Subject: Re: Moving system to another disk Date: 1999/02/01 Message-ID: <36B57D19.1AB95D66@cica.fr> X-Deja-AN: 439310232 References: <36B1914A.8ED16726@eurospill.no> To: Morten Knudsen X-Accept-Language: en Content-Type: multipart/alternative; boundary="------------9E3BE9282B7F2FEE1E2F65B7" Organization: IC/S&C Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 --------------9E3BE9282B7F2FEE1E2F65B7 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 --------------9E3BE9282B7F2FEE1E2F65B7 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit  

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
  --------------9E3BE9282B7F2FEE1E2F65B7--