From: Mario Stargard <mstargard@myprivacy.ca>
Subject: Re: System disk cloning
Date: Tue, 17 Aug 2004 20:44:52 -0400 [thread overview]
Message-ID: <0tudnQfcObUZO7_cRVn-iA@magma.ca> (raw)
In-Reply-To: <harris-DC9345.22103614082004@cacnews.cac.cpqcorp.net>
Bob Harris wrote:
> In article <RZCdnRYwl51w2oPcRVn-gQ@magma.ca>,
> Mario Stargard <mstargard@myprivacy.ca> wrote:
>
>
>>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
>
>
> This does NOT apply to the boot volume. AdvFS only allows 1 volume in
> the boot (root) volume. However, /usr, /var, and another other file
> system/domains can use the addvol/rmvol trick.
>
> The reason the boot root domain can not have more than one disk, is that
> the boot firmware does not know how to deal with multiple disks in order
> to find all the parts of vmunix. And it can be a chicken and an egg
> situation since /etc/advfs/... is where the list of disks are stored,
> and if the for some reason /etc/advfs is _NOT_ on the disk specified to
> be booted, there is no way to find the other disks.
>
> Bob Harris
Doh. You're right.
Mario
next prev parent reply other threads:[~2004-08-18 0:44 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
2004-08-15 2:10 ` Bob Harris
2004-08-18 0:44 ` Mario Stargard [this message]
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