Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: emmanuel.choquet@compaq.com (Emmanuel Choquet)
Subject: Re: how to clone system disk on tru64 5.1
Date: 29 Mar 2002 01:13:28 -0800	[thread overview]
Message-ID: <4618c6b9.0203290113.28bbb594@posting.google.com> (raw)
In-Reply-To: aHIo8.1637$fL6.31701@news.cpqcorp.net

This is my personal way to do it, NO WARRANTY. DO not use this in a
cluster

plug the new disk

# hwmgr -scan scsi

let's say it will be dsk11 and that the whole current system is on
dsk0, and
that you have a common layout with var as a separate fileset in
usr_domain

1st : label the clone disk as the original

# disklabel -r dsk0 > /syst.label
# disklabel -rR -t advfs dsk11 /syst.label

2d : create domains and filesets 

# mkfdmn /dev/disk/dsk11a new_root
# mkfset new_root root
# mkdir /nr
# mount new_root#root /nr
# mkfdmn /dev/disk/dsk11g new_usr
# mkfset new_usr usr
# mkdir /nu
# mount new_usr#usr /nu
# mkfset new_usr var
# mkdir /nv
# mount new_usr#var /nv

Now bakup existing filesets

# vdump 0f - / | ( cd /nr ; vrestore xf -)
# vdump 0f - /usr | ( cd /nu ; vrestore xf -)
# vdump 0f - /var | ( cd /nv ; vrestore xf-)

Now patch domains structure:

# cd /nr/etc/fdmns
# mv root_domain root_domain_old
# mv usr_domain usr_domain_old
# mv new_usr usr_domain
# mv new_root root_domain




Now patch sysconfigtab and mark dsk11b partition as swap

# swapon /dev/disk/dsk11b # if u dont do that, it will pause the 1st
boot on that disk
# cd /nr/etc
# vi sysconfigtab

change swapdevice to dsk11b

Check you do not declare swap using old fashion way in /nr/etc/fstab,
and remove the lines if you do so - declare swap only in sysconfigtab
-

 umount everything
 do not unplug the disk, dsk11b is used for swap !

# umount /nr /nu /nv

done !
 test it, do not forget the disk console name is bus/target/lun
dependant



Good luck


      reply	other threads:[~2002-03-29  9:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-28 15:11 how to clone system disk on tru64 5.1 Barry Wu
2002-03-28 15:15 ` Marre des Spameurs qui prennent les add dans les news [SauroN]
2002-03-28 17:47   ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
2002-03-29  9:13     ` Emmanuel Choquet [this message]
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