* about advfs filesystem
@ 1998-03-06 5:00 Vincent Huang
1998-03-07 5:00 ` Joel Gallun
1998-03-08 5:00 ` Bob Harris
0 siblings, 2 replies; 3+ messages in thread
From: Vincent Huang @ 1998-03-06 5:00 UTC (permalink / raw)
HI...
I had a question about Advfs file system.
I had a DEC4100 server and 2 Hard Disk installed with advfs file system,
one is my primary boot disk,and there were three partition on that hard
disk.
my setup in advfs in /etc/fdmns directory is something like:
drwxr-xr-x 2 root system 8192 Feb 5 21:24 root_domain
drwxr-xr-x 2 root system 8192 Feb 5 21:24 usr_domain
drwxr-xr-x 2 root system 8192 Feb 5 21:24 var_domain
The other hard disk is my backup harddisk..
I use dd command to make a image copy from that original harddisk.
dd if=/dev/rz0c of=/dev/rz1c
One day, my original harddisk1 crashed, so I use the second backup
harddisk 2 to boot.it also had root,usr,var_domain .
So,here is my question , I want to copy some files from original
harddisk 1, How sould I do to mount original harddisk 1 to
other mount point..and I can copy files from that place..?
thanks..
vincent
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: about advfs filesystem
1998-03-06 5:00 about advfs filesystem Vincent Huang
@ 1998-03-07 5:00 ` Joel Gallun
1998-03-08 5:00 ` Bob Harris
1 sibling, 0 replies; 3+ messages in thread
From: Joel Gallun @ 1998-03-07 5:00 UTC (permalink / raw)
"Vincent Huang" <vincent9@ms3.hinet.net> writes:
> So,here is my question , I want to copy some files from original
> harddisk 1, How sould I do to mount original harddisk 1 to
> other mount point..and I can copy files from that place..?
You didn't say which version of the os you are using, but with
4.0d you can use the 'mount -o dual' option to mount a copy of
a fileset while one is already mounted.
cd /etc/fdmns
mkdir old_root; cd old_root; ln -s /dev/rz1a; cd ..
mkdir old_usr; cd old_usr; ln -s /dev/rz1g; cd ..
mkdir old_var; cd old_var; ln -s /dev/rz1h; cd ..
mount -o dual old_usr#usr /mnt
and so on.
--
Joel Gallun joel@tux.org
Open system and Internet consulting Washington, D.C.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: about advfs filesystem
1998-03-06 5:00 about advfs filesystem Vincent Huang
1998-03-07 5:00 ` Joel Gallun
@ 1998-03-08 5:00 ` Bob Harris
1 sibling, 0 replies; 3+ messages in thread
From: Bob Harris @ 1998-03-08 5:00 UTC (permalink / raw)
In article <6dnqhp$1ee@netnews.hinet.net>, "Vincent Huang"
<vincent9@ms3.hinet.net> wrote:
> The other hard disk is my backup harddisk..
> I use dd command to make a image copy from that original harddisk.
> dd if=/dev/rz0c of=/dev/rz1c
>
> One day, my original harddisk1 crashed, so I use the second backup
> harddisk 2 to boot.it also had root,usr,var_domain .
>
> So,here is my question , I want to copy some files from original
> harddisk 1, How sould I do to mount original harddisk 1 to
> other mount point..and I can copy files from that place..?
You could use /sbin/advfs/advscan to create new domains out of the domains
found on the /dev/rz0c disk.
The name of a domain is just the name of the directory in /etc/fdmns. If
you unmount the domain and rename the directory you will have renamed the
domain.
advscan is the recommended way to create domains out of AdvFS partitions
that are being imported into a Digital UNIX system (for example, the disks
could have come from a different system, etc...).
If for some reason you can not find advscan or have some problems, then
just create a new directory in /etc/fdmns and create symbolic links to the
disk partitions that should be part of the domain.
mkdir /etc/fdmns/fred
cd /etc/fdmns/fred
ln -s /dev/rz0a
This should create a domain out of the rz0a root partition. Repeat for any
other domains.
Note: If any of the domains had multiple volumes as part of the domain,
advscan is better at making sure the correct partitions are included in the
domain.
Good luck
--
Bob Harris
I don't get to tell me what to do, I only get to tell me how to do it.
The opinions expressed are my own and do not represent Digital Equipment
Corporation
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-03-08 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-06 5:00 about advfs filesystem Vincent Huang
1998-03-07 5:00 ` Joel Gallun
1998-03-08 5:00 ` Bob Harris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox