From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,715d010b51894240 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-06-11 11:46:48 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: tyler_durden0x0@yahoo.com (Paul Victor Novarese) Newsgroups: comp.unix.tru64 Subject: Re: Cloning system disk Date: 11 Jun 2001 11:46:48 -0700 Organization: http://groups.google.com/ Message-ID: References: <0sh9it8r8jcosgkon3imiik6eonbmamfai@4ax.com> NNTP-Posting-Host: 161.114.88.71 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 992285208 4012 127.0.0.1 (11 Jun 2001 18:46:48 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 11 Jun 2001 18:46:48 GMT Xref: archiver1.google.com comp.unix.tru64:2485 Axel K?ter wrote in message news:<0sh9it8r8jcosgkon3imiik6eonbmamfai@4ax.com>... > is there any way to clone a systemdisk? > > Situation: I have a node with a mirrored system disk (Volume manager > and advfs) which I would like to clone to another system with exact > the same hardware set up. > > Before crashing another system: Is it possible with a command as > following: > > dd if=/dev(rz0c of=/dev/rz3c bs=8192 > > Can be bootet from rz3c afterwards? I'd recomend vdump/vrestore. Since you're using rz devices for your disks, I'm assuming that you have a 4.x version of Digital Unix (for 5.x the procedure is slightly different). I'm also assuming that the new disk you want to use will be a standalone disk and not mirrored via LSM. First, get a good disklabel on your new disk. Be sure to use the -t flag to put the boot blocks on. If your filesystems are all advfs, make domains like new_root and new_usr and then make filesets that have the same names as the filesets you have now. If you're using UFS, use newfs on the appropriate partitions. mount new_root#root /mnt vdump -0 -f - / | vrestore -xf - -D /mnt (see vdump man page, example 4) repeat as needed for usr and whatever else you have on the boot disk. You may need to adjust the symlinks in the *new* /etc/fdmns/root_domain and usr_domain for your advfs filesystems and you may also have to make changes to the new /etc/fstab for UFS filesystems. (If your cloned disk will have the same SCSI bus, target, LUN address than you probably won't need to change anything.) That should do it, but YMMV. -- paul victor novarese KF4ZLI novarese AT novarese DOT net http://gammatron.weblogger.com find / -user you -name "*base*" -exec chown us {} \;