Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* System disk cloning
@ 2004-08-14  7:00 Uwe Müller
  2004-08-14  8:24 ` TyBreaker
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Uwe Müller @ 2004-08-14  7:00 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: System disk cloning
  2004-08-14  7:00 System disk cloning Uwe Müller
@ 2004-08-14  8:24 ` TyBreaker
  2004-08-14 17:12 ` Mario Stargard
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: TyBreaker @ 2004-08-14  8:24 UTC (permalink / raw)


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

Don't know about easy but the only way I know this can be done is by 
using the Logical Storage Manager layered product (costs big bickies). 
We've been using this in production for over 10 years and the software 
is quite mature, stable and reliable.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: System disk cloning
  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-14 18:55 ` Richard Zoller
  2004-08-15 14:54 ` Paul Repacholi
  3 siblings, 1 reply; 8+ messages in thread
From: Mario Stargard @ 2004-08-14 17:12 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: System disk cloning
  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-14 18:55 ` Richard Zoller
  2004-08-16  2:31   ` Stuart Fuller
  2004-08-15 14:54 ` Paul Repacholi
  3 siblings, 1 reply; 8+ messages in thread
From: Richard Zoller @ 2004-08-14 18:55 UTC (permalink / raw)


What about...:

$ disklabel -z /dev/disk/dsk1

(wipe disklabel of the target disk!)

$ dd if=/dev/disk/dsk0 of=/dev/disk/dsk1 bs=8192

(target disk must be the same size or bigger then the source disk!)

rz

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



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: System disk cloning
  2004-08-14 17:12 ` Mario Stargard
@ 2004-08-15  2:10   ` Bob Harris
  2004-08-18  0:44     ` Mario Stargard
  0 siblings, 1 reply; 8+ messages in thread
From: Bob Harris @ 2004-08-15  2:10 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2109 bytes --]

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: System disk cloning
  2004-08-14  7:00 System disk cloning Uwe Müller
                   ` (2 preceding siblings ...)
  2004-08-14 18:55 ` Richard Zoller
@ 2004-08-15 14:54 ` Paul Repacholi
  3 siblings, 0 replies; 8+ messages in thread
From: Paul Repacholi @ 2004-08-15 14:54 UTC (permalink / raw)


Uwe M�ller <umue@fu-berlin.de> writes:

> 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

Borrow a VMS CD, boot it and use backup/phys. Fast as all F*** too.
Just a bit heretical perhaps :)


-- 
Paul Repacholi                               1 Crescent Rd.,
+61 (08) 9257-1001                           Kalamunda.
                                             West Australia 6076
comp.os.vms,- The Older, Grumpier Slashdot
Raw, Cooked or Well-done, it's all half baked.
EPIC, The Architecture of the future, always has been, always will be.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: System disk cloning
  2004-08-14 18:55 ` Richard Zoller
@ 2004-08-16  2:31   ` Stuart Fuller
  0 siblings, 0 replies; 8+ messages in thread
From: Stuart Fuller @ 2004-08-16  2:31 UTC (permalink / raw)


Richard Zoller wrote:

> What about...:
> 
> $ disklabel -z /dev/disk/dsk1
> 
> (wipe disklabel of the target disk!)
> 
> $ dd if=/dev/disk/dsk0 of=/dev/disk/dsk1 bs=8192
> 
> (target disk must be the same size or bigger then the source disk!)
> 
> rz
> 
> 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

The above top-post is a reasonable solution to the question posed.  
However, you'd want to do in in single-user mode for a bit copy such as 
this.  Otherwise, in multi-user mode with files being 
created/deleted/extended, etc., you may end up with pointers not pointing 
to the right places, and items having no pointers!

-- 

        Stu


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: System disk cloning
  2004-08-15  2:10   ` Bob Harris
@ 2004-08-18  0:44     ` Mario Stargard
  0 siblings, 0 replies; 8+ messages in thread
From: Mario Stargard @ 2004-08-18  0:44 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-08-18  0:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-08-14 18:55 ` Richard Zoller
2004-08-16  2:31   ` Stuart Fuller
2004-08-15 14:54 ` Paul Repacholi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox