From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,3801cc6080a94c32 X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.magma.ca!news.magma.ca.POSTED!not-for-mail NNTP-Posting-Date: Sat, 14 Aug 2004 12:12:13 -0500 Date: Sat, 14 Aug 2004 13:12:13 -0400 From: Mario Stargard User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en, ja, de MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: System disk cloning References: <411db889$0$13013$9b622d9e@news.freenet.de> In-Reply-To: <411db889$0$13013$9b622d9e@news.freenet.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: NNTP-Posting-Host: 209.217.122.220 X-Trace: sv3-lGU7h/fazJ01K1BuLo8JkRp5iJEcp2Ar7X+G1NzExzyHqJUBEOLk8LGlTjBdKnCVi34RCzdeo6KYMpd!bG00T32aNKgD3j366g8vY9okzMMtO8u+TuEGh1amIWaYHOwIvfkwGnyR2xqkRJ7fj7vffVHGjkI= X-Complaints-To: abuse@magma.ca X-DMCA-Complaints-To: abuse@magma.ca X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.13 Xref: g2news1.google.com comp.unix.tru64:250 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