From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,6be24512eca4fd6 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-03-29 01:13:28 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: emmanuel.choquet@compaq.com (Emmanuel Choquet) Newsgroups: comp.unix.tru64 Subject: Re: how to clone system disk on tru64 5.1 Date: 29 Mar 2002 01:13:28 -0800 Organization: http://groups.google.com/ Message-ID: <4618c6b9.0203290113.28bbb594@posting.google.com> References: NNTP-Posting-Host: 161.114.126.52 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1017393208 6987 127.0.0.1 (29 Mar 2002 09:13:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 29 Mar 2002 09:13:28 GMT Xref: archiver1.google.com comp.unix.tru64:7145 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