Operating System - HP-UX
1834518 Members
2102 Online
110068 Solutions
New Discussion

How do i do a pfsmount on a network

 
Sprint Unix Team
Frequent Advisor

How do i do a pfsmount on a network

Iam trying to read oracle files on a CDROM over a network. I understand I should do a pfsmount.

can anybody give the correct syntax??
8 REPLIES 8
Thierry Poels_1
Honored Contributor

Re: How do i do a pfsmount on a network

hi,

Remote (CD-server) :
nohup /usr/sbin/pfs_mountd &
nohup /usr/sbin/pfsd &
/usr/sbin/pfs_mount ?t rrip ?x \ unix /dev/dsk/c9t9d0 /cdrom
vi /etc/pfs_exports and add:
/cdrom ?access=other_host
pfs_exportfs ?a ?v

Local (Oracle server):
nohup /usr/sbin/pfs_mountd &
nohup /usr/sbin/pfsd 4 &
/usr/sbin/pfs_mount cdserver:/cdrom /cdrom


BTW if you used search you would probably have found some threads on this, but then again I would have missed a chance to get some points ;))))
good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
James R. Ferguson
Acclaimed Contributor

Re: How do i do a pfsmount on a network

Hi:

Knowledge Base document #KBAN00000252 ("PFS to mount Oracle, Rockridge and most PC formatted CD-ROM 11.x") gives a very good summary of the methodology and cautions used with pfs_mounts.

Document #KBRC00001258 ("Export a pfs_mounted CD-ROM using pfs_export") discusses the pfs_export procedures needed.

...JRF...
MANOJ SRIVASTAVA
Honored Contributor

Re: How do i do a pfsmount on a network

Local Server (A)
Remoter Server (B)

On (A)
1. /usr/sbin/pfs_mountd &
2. /usr/sbin/pfsd &
3. in /etc create file pfs_exportfs and add
/cdrom
4. pfs_mount /dev/dsk/cXtYdZ /cdrom
5. pfs_exportfs -a -v
6. check in bdf that the mount of the CDROm should be

a:/cdrom xxx xxx xxxx xxxx /cdrom

on the serve (B)

1. /usr/sbin/pfs_mountd &
2. /usr/sbin/pfsd &
3. pfs_mount a:/cdrom /cdrom

also check in the /etc/hosts file that the corresponding IP conversions should be present for each servers.

Manoj Srivastava

Sprint Unix Team
Frequent Advisor

Re: How do i do a pfsmount on a network

hi Thierry and Manoj,

Inspite of using the commands, i still get an error message :
# /usr/sbin/pfs_mount 10.12.104.34:/CDROM /CDROM1
/usr/sbin/pfs_mount: access denied for 10.12.104.34:/CDROM.
/usr/sbin/pfs_mount: giving up on /CDROM1

what should be the problme
MANOJ SRIVASTAVA
Honored Contributor

Re: How do i do a pfsmount on a network

what is the OS version on bothe ther servers , Can you ping across to the other server ?
Also check the step 6 that after the pfs_exportfs -a -v the bdf should give the cdrom mounted as

a:/cdrom xxxx xxxx xxxxx /cdrom

If this doesnt show up then there is a issue in local server it self.
Sprint Unix Team
Frequent Advisor

Re: How do i do a pfsmount on a network

Manoj,
Both the boxes talk to each other. I see the CDROM successfully mounted on the server. It can be seen in the bdf output.
MANOJ SRIVASTAVA
Honored Contributor

Re: How do i do a pfsmount on a network

That is great , also look at the following :

1. the mount should be as

A:/cdrom xxxxx xxxx 0 100% /cdrom and not
/dev/dsk/cXtYdZ xxx xxxx 0 100% /cdrom

2. What is the HPUX version on each machine ?

3. create in /etc the following file other than pfs_exports , pfs_fstab with the following entry in the both the machines :

/dev/dsk/cXtYdZ /cdrom pfs_rrip xlat=unix 0 0

also please note the sequence of pfsd and pfs_mountd .

Thierry Poels_1
Honored Contributor

Re: How do i do a pfsmount on a network

hi,
sorry to hear things did't work out from the first try :(
okay, so the CD is (pfs-)mounted on the cd-server.
1. did the pfs_export work okay, did you get the message '/CDROM exported' ?
2. are pfs_mountd and pfsd running on both servers?
(maybe you could try to mount with the servername instead of the IP address, should also work however, just a wild hunch)
good luck,
Thierry.
BTW if things really don't work, pfs-mount the CD on a server, and copy the whole CD to a temporary directory on the oracle-server, and then install from there. That's how I did it my very first time ;))
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.