tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: cloning a disk
@ 2002-04-25  9:06 Peter.Stern
  0 siblings, 0 replies; only message in thread
From: Peter.Stern @ 2002-04-25  9:06 UTC (permalink / raw)
  To: tru64-unix-managers

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
> 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-04-25  9:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-25  9:06 SUMMARY: cloning a disk Peter.Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox