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: Tue, 17 Aug 2004 19:44:52 -0500 Date: Tue, 17 Aug 2004 20:44:52 -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: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <0tudnQfcObUZO7_cRVn-iA@magma.ca> NNTP-Posting-Host: 209.217.122.220 X-Trace: sv3-BmRnPCpzJtrEGu4OOheG9Yq9hI/9kynQ79e/3Dq92V7HiBQ2iI4/faGfkFjAcJxpZtt3b3xrHaxjczY!SU06yV2eymPaF9Kv1wuX2xvLC7CQeMsPolMp3Js9JrwUGly9QYv5bKA/hbsNFh55moinGtQ9gWA= 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:262 Bob Harris wrote: > In article , > Mario Stargard 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