From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653755322592.tru64-unix-managers.marc@archive.invalid> From: Peter.Stern () weizmann ! ac ! il Date: Thu, 25 Apr 2002 09:06:52 +0000 To: tru64-unix-managers Subject: SUMMARY: cloning a disk X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653755322592 The original query is below. I got suggestions from: Satish Murtaza Talawala (to use vdump/vrestore) Klas Erlandsson Daniel Lungu But in the end what worked (my own idea) was to use the dual option in the mount command: / # mount -t advfs -o dual root0#root /root0 Dual mounting a split mirror AdvFS filesystem. This takes a short while to update the domain's ID. / # mount -t advfs -o dual usr0#usr /usr0 Dual mounting a split mirror AdvFS filesystem. This takes a short while to update the domain's ID. The dual option enables an AdvFS fileset to be mounted as a domain volume even though it has the same AdvFS domain ID as a fileset that is already mounted. I can't say that I really understand what happened here. I just looked at all the AdvFS option in the mount command and took a guess. I guess that by using dd some AdvFS domain ID of the original disk is also copied to the new disk? If so, how can I fix this so that I don't need to use the same domain ID (which sounds potentially dangerous to me)? Thanks to all who tried to help. Regards, Peter > I used the following commands as single user to clone my system disk: > disklabel -z rz0 > dd if=/dev/rrz8c of=/dev/rrz0c bs=1024k > > This was a 9.1GB disk and dd took about 20-25 minutes and appeared to > be successful. Both / and /usr are AdvFS filesets. The system is > v4.0f pk#7. The new disk has the same disklabel as the system disk. > > After going to multi-user I tried to mount the new disk: > > # mount -t advfs -o rw root0#root /root0 > root0#root on /root0: I/O error > > # mount -t advfs -o rw usr0#usr /usr0 > usr0#usr on /usr0: I/O error > > The disks linked in /etc/fdmns: > # ls -l /etc/fdmns/root0 > total 0 > > lrwxrwxrwx 1 root system 9 Apr 18 14:28 root0 -> /dev/rz0a > ls -l /etc/fdmns/usr0 > total 0 > lrwxrwxrwx 1 root system 9 Apr 18 14:28 usr0 -> /dev/rz0g > > What am I missing here? > > Thanks, > Peter > > Peter Stern > Chemical Physics Department > Weizmann Institute of Science > 76100 Rehovot, ISRAEL > > email: Peter.Stern@weizmann.ac.il > phone: 972-8-9342096 > fax: 972-8-9344123 >