* Moving system to another disk
@ 1999-01-29 5:00 Morten Knudsen
1999-02-01 5:00 ` Emmanuel Choquet
0 siblings, 1 reply; 2+ messages in thread
From: Morten Knudsen @ 1999-01-29 5:00 UTC (permalink / raw)
If this is a faq, please send a private e-mail and I won't
bother anybody again.
I want to move the entire system (booting partition and all)
to a different disk and then remove the original disk. I only
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.
This is a AlphaServer 1000A with DU4.0B w/patchkit7 and
StorageWorks disks.
Thanks.
Morten Knudsen.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Moving system to another disk
1999-01-29 5:00 Moving system to another disk Morten Knudsen
@ 1999-02-01 5:00 ` Emmanuel Choquet
0 siblings, 0 replies; 2+ messages in thread
From: Emmanuel Choquet @ 1999-02-01 5:00 UTC (permalink / raw)
To: Morten Knudsen
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-02-01 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-29 5:00 Moving system to another disk Morten Knudsen
1999-02-01 5:00 ` Emmanuel Choquet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox