From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,12961062558e76eb X-Google-Attributes: gid1164f8,public From: "Adam Price" Subject: Re: Cloning process for Alphas? Date: 2000/01/26 Message-ID: <948860393.8084.0.nnrp-03.c2deb51d@news.demon.co.uk>#1/1 X-Deja-AN: 577696930 X-NNTP-Posting-Host: pappnase.demon.co.uk:194.222.181.29 References: <388DE8BA.8D5D5B41@nortelnetworks.com> <388DF77C.E357DC7@home.nl> <388E03D2.76FEE8E6@nortelnetworks.com> <388E1549.6F960FC8@adenzel.demon.nl> X-Trace: news.demon.co.uk 948860393 nnrp-03:8084 NO-IDENT pappnase.demon.co.uk:194.222.181.29 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: comp.sys.dec X-Complaints-To: abuse@demon.net Alex van Denzel wrote in message <388E1549.6F960FC8@adenzel.demon.nl>... >Rob Hounsell wrote: > >> > > Anyone know of a good procedure for cloning disk images on Alphas? >> > > Ideally, we'd like to use a master CD image to create corresponding disk >> > > images for upgrading systems. We thought about using dd, but I'm >> > > wondering about cloning to different disk sizes (and thus possibly >> > > wasting disk space). Conversely, I don't know the exhaustive list of >> > > files required to create a successful clone if we went the filesystem >> > > route i.e. copying files/directories. > >I don't know much about tru64 but one of these options could work: > >- tar, and untar with -p to preserve attribs >- dump/restore >- cp -Rp (Recursive, preserve attribs) > tar and cp both have the problem that they will copy hardlinks as files, tar also looses setuid bits which is a major pain for this kind of thing. In the past I have had good success with the procedure of using a custom boot cd (see the back of the install guide I think although it may have moved look for the section on advanced installs). The process is useful since you can set it up to prompt for the info that varies from machine to machine (hostname etc) and still keep the rest of the stuff the same. One good tip if you do this is to then make use of the floppy drive record all of the information you provide at install time, keep the files on it uptodate and keep a unique floppy for each machine (use cron,store it in the drive, it's not critical only useful) The other partitions besides / and /usr, can then be cloned as compressed vdump savesets, and a script written to create the partitions and extract the files. Use default partition sizes read from the install floppy which you can override, ask for the sizes before you start the install, and time out if no response is given in a reasonable time, this way you can do automated or partially automated restores. Then if you ever need to rebuild a replacement for that workstation, you use the standard boot cd plus the files on the floppy to automate the recovery. When the amount of difference between the bootcd and the desired workstation is too large to fit on a floppy, then it's time for a new bootcd. Hope this helps Adam PS Excuse the rambling nature of this post, it's 3am and I've been up since 4am yesterday with a screaming 1year old (new teeth).