cancel
Showing results for 
Search instead for 
Did you mean: 

advfs

Maner
Occasional Advisor

advfs

how do i mount my disk on another tru64 os. the disk has been removed from another tru64 unix server since the server is having

i have 2 tru64 5.1b unix server with advfs. unfortunately one of my server has been failed. so I removed one of the disk and inserted on another server which is having same OS and version. Let me know how do I mount the disk. I think, I can do this on UFS but not sure about AdvFS. I want to retrive some datas from old disk.
thanks in advance.
7 REPLIES
Vladimir Fabecic
Honored Contributor

Re: advfs

Venkatesh BL
Honored Contributor

Re: advfs

If the AdvFS domain was constructed using just that disk, you can use by doing the following:

1) cd /etc/fdmns
2) mkdir ;same as it was in the old system
3) cd
4) ln -s /dev/disk/dskXc dskXc ; where 'X'is the disknumber in the new system (say dsk5c)
5) mount the fileset now using the 'mount' command.
Ivan Ferreira
Honored Contributor

Re: advfs

What BL Venkatesh instruct is almost perfect. The only thing to verify is that the partition used by the ADVFS domain is the c partition, you can do that with disklabel -r.

So, for for a disk with 3 partitions with advfs filesystems on it will have:

disklabel -r dsk3
# /dev/rdisk/dsk3c:
type: SCSI
disk: HSV110 (C)COMPA
label:
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 128
sectors/cylinder: 16384
cylinders: 7680
sectors/unit: 125829120
rpm: 3600
interleave: 1
trackskew: 7
cylinderskew: 26
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0

8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl values
a: 2097152 0 AdvFS # 0 - 127
b: 262144 131072 unused 0 0 # 8 - 23
c: 125829120 0 unused 0 0 # 0 - 7679
d: 0 0 unused 0 0 # 0 - 0
e: 0 0 unused 0 0 # 0 - 0
f: 0 0 unused 0 0 # 0 - 0
g: 10485760 2097152 AdvFS # 128 - 767
h: 113246208 12582912 AdvFS # 768 - 7679

mkdir /etc/fdmns/domain1
mkdir /etc/fdmns/domain2
mkdir /etc/fdmns/domain3
ln -s /dev/disk/dskNa /etc/fdmns/domain1/dskNa
ln -s /dev/disk/dskNa /etc/fdmns/domain1/dskNg
ln -s /dev/disk/dskNa /etc/fdmns/domain1/dskNh

Then, you can verify the filesets on that domains by using:

showfsets domain1
showfsets domain2
showfsets domain3

Then you can mount by running

mount domain1#fileset_name /mount_point

Where fileset_name you get from showfsets and mount point is a directory already created.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: advfs

Sorry, after the post I see that is unreadable, see attached file. You can see three partitions used by ADVFS.

Also there is an error setting the soft links, should be different domains:

mkdir /etc/fdmns/domain1
mkdir /etc/fdmns/domain2
mkdir /etc/fdmns/domain3
ln -s /dev/disk/dskNa /etc/fdmns/domain1/dskNa
ln -s /dev/disk/dskNa /etc/fdmns/domain2/dskNg
ln -s /dev/disk/dskNa /etc/fdmns/domain3/dskNh

Then, you can verify the filesets on that domains by using:

showfsets domain1
showfsets domain2
showfsets domain3

Then you can mount by running

mount domain1#fileset_name /mount_point

Where fileset_name you get from showfsets and mount point is a directory already created.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Venkatesh BL
Honored Contributor

Re: advfs

small correction:

ln -s /dev/disk/dskNa /etc/fdmns/domain2/dskNg
ln -s /dev/disk/dskNa /etc/fdmns/domain3/dskNh

must be:

ln -s /dev/disk/dskNg /etc/fdmns/domain2/dskNg
ln -s /dev/disk/dskNh /etc/fdmns/domain3/dskNh
Maner
Occasional Advisor

Re: advfs

Retrive the data in the following way,

# ./sbin/advfs/advscan -r /dev/rdisk/dskX
[display the advfs domain informations]

#showfsets

#mount -t advfs #

thanks every body.
Venkatesh BL
Honored Contributor

Re: advfs