Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Mario Stargard <mstargard@myprivacy.ca>
Subject: Re: System disk cloning
Date: Sat, 14 Aug 2004 13:12:13 -0400	[thread overview]
Message-ID: <RZCdnRYwl51w2oPcRVn-gQ@magma.ca> (raw)
In-Reply-To: <411db889$0$13013$9b622d9e@news.freenet.de>

Uwe M�ller wrote:
> Dear all,
> what is the easiest was to clone an ES40 local system disk, including 
> several partitions and swap, to another empty disk of equal size, which 
> is also located within the ES40 drive bay.
> I am using TRU64 V5.1a
> 
> Best regards,
> Uwe
If you have the advfs utilities, I'd use the addvol utility to add 
partitions to the advfs volumes; then remove the originals.  The nice 
thing about this approach is that you don't need to reboot.  Don't 
forget to set the new boot device in the srm with consvar.

Otherwise, the old dump and restore from one disk to the other works 
fine.  Something like this should work:

mkfdmn /dev/dsk1a newroot_domain
mkfdmn /dev/dsk2a newusr_domain
mkfset newroot_domain root
mkfset newusr_domain usr
mkfset newusr_domain var
mount newroot_domain#root /mnt
cd /mnt
vdump 0f - / | vrestore xf -
mount newusr_domain#usr /mnt/usr
cd usr
vdump 0f - /usr | vrestore xf -
and so on for /var

Then go to /mnt/etc/fdmns and change the symlinks in the domain 
directories to point to the correct place.

Don't forget to reassign swap in /etc/sysconfigtab.  If you use the 
advfs utilities you'll need to reassign swap and reboot to get it to 
take effect because you cannot remove swap space once it is assigned.

Mario



  parent reply	other threads:[~2004-08-14 17:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-14  7:00 System disk cloning Uwe Müller
2004-08-14  8:24 ` TyBreaker
2004-08-14 17:12 ` Mario Stargard [this message]
2004-08-15  2:10   ` Bob Harris
2004-08-18  0:44     ` Mario Stargard
2004-08-14 18:55 ` Richard Zoller
2004-08-16  2:31   ` Stuart Fuller
2004-08-15 14:54 ` Paul Repacholi
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