Morten Knudsen wrote:
have / and /usr partitions on two different advfs domains.Let's consider you duplicate on rz2. first, you must have advfs boot blocks :
Can I just create new partitions and use tar or something?
I'm not sure what actually makes a DU/Alpha system boot.
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