Operating System - HP-UX
1851544 Members
3986 Online
104060 Solutions
New Discussion

pfs_mount - Cannot get it to work

 
Low, Hong Cheong
Occasional Contributor

pfs_mount - Cannot get it to work

Hi,

I am installing an application on the HP-UX server and it requires me to do a pfs_mount for the CDROM.

The command I used is:
pfs_mount /dev/dsk/c2t2d0 /SD_CDROM

The error I got is:
pfs_mount: pfs_mountd at ncssgx05: /dev/dsk/c2t2d0 not responding: RPC_PROG_NOT_REGISTERED

Anyone knows how to resolve this issue? Any assistance will be greatly appreciated.

Thanks in advance,
Hong Cheong
9 REPLIES 9
John Palmer
Honored Contributor

Re: pfs_mount - Cannot get it to work

Hi,

A few questions...

Have you followed the instructions supplied with the application CD regarding the creation of /etc/pfs_fstab?

Have you started the pfs daemons as stated in the instructions?

Is /dev/dsk/c2t2d0 your CD/DVD drive?

Is the CD loaded?

Regards,
John
Rita C Workman
Honored Contributor

Re: pfs_mount - Cannot get it to work

pfs mounts look more like this:

Log in as root
#nohup /usr/sbin/pfs_mountd &
#nohup /usr/sbin/pfsd &
#/usr/sbin/pfs_mount /cdrom
Or on some older systems like our T-500 the last stmt would look like:
#/usr/sbin/pfs_mount /dev/dsk/c12t2d0 /cdrom

But normally (like with installing Oracle) I usually find this info supplied by the vendor along with the CD.

Regards,
Rick Garland
Honored Contributor

Re: pfs_mount - Cannot get it to work

Are the nfsd daemons running?
Need to have the nfs and RPC programs running to do a mount. Do the ps -ef and grep for RPC and for nfs. If the processes are not running, you will need to start them.

Also be aware that the /etc/pfs_fstab will need entries related to the type of FS you are going to mount.
Low, Hong Cheong
Occasional Contributor

Re: pfs_mount - Cannot get it to work

Hi guys,

Thanks to all for your contributions, I have now managed to get it to work.

I have forgotten to start up the pfsd deamon, with the command:
#nohup /usr/sbin/pfsd 4 &

Once I included this statement, it works without fine. Greatly appreciate all your help.

Thanks.
Francesco_2
Occasional Contributor

Re: pfs_mount - Cannot get it to work

NB, if you have 10.20 or less
you need to install a PATCH for pfs

some sistem report an error HOSTNAME_UNKNOW

Log in as root
#nohup /usr/sbin/pfs_mountd &
#nohup /usr/sbin/pfsd 4 &

then execute pfs_mount
Francesco
Oliver Brearley
New Member

Re: pfs_mount - Cannot get it to work

NOT having /usr/sbin/rpc.mountd running and the other nfsd daemons can cause the:
Hostname: RPC_PROG_NOT_REGISTERED

# ps -ef | grep rpc
Example
root (Blah..) /opt/dce/sbin/rpcd
root (Blah..) /usr/sbin/rpc.statd
root (Blah..) /usr/sbin/rpc.lockd
root (Blah..) /usr/sbin/rpc.mountd
root (Blah..) grep rpc

the nfsd daemons need to running
# /usr/sbin/rpc.'seeabove' start
or
/sbin/init.d/nfs.server start
BUT also check
# exportfs (Security)

Hope this helps !?!
Donald Fisher
Advisor

Re: pfs_mount - Cannot get it to work

Here is a script I put together called pfs.sh ...

#!/sbin/sh
mode=$1
case $mode in
'start_msg')
echo " Mount PFS device"
;;
'stop_msg')
echo " Unmount PFS device "
;;
'stat_msg')
echo " Remount PFS device "
;;
'start')
nohup /usr/sbin/pfs_mountd > /dev/null 2>&1 &
nohup /usr/sbin/pfsd > /dev/null 2>&1 &
sleep 15
ps -ef | grep pfs
pfs_mount /cdrom
ls /cdrom
;;

'stop')

'stat')
ps -ef | grep pfs
pfs_mount /cdrom
#pfs_mount -x unix /dev/rdsk/c0t6d0 /cdrom
ls /cdrom
;;

*)
echo "Usage $0 { start | stop | stat }"

esac
exit 0

....... end of script

Usage

pfs.sh start #first mount & load

pfs.sh stop # unmount of cd

pfs.sh stat # mount of next cd if needed


Also create file /etc/pfs_fstab be sure to change c?t?d?

root:/etc>pg pfs_fstab
/dev/dsk/c0t6d0 /cdrom pfs-rrip xlat=unix 0 0
(EOF):
Donald Fisher
Advisor

Re: pfs_mount - Cannot get it to work

Lost part of the stop code in last reply ...here it is

'stop')
pfs_umount -a /dev/rdsk/c0t6d0
pfs_umount -c /cdrom
;;
R. Allan Hicks
Trusted Contributor

Re: pfs_mount - Cannot get it to work

I assume that you are doing an Oracle install since that is the only place that I've bumped into pfs. This is from the Oracle install manuals (Page 4-5)
On revs prior to HP-UX 11.0 you may have to get a patch.

1. under /etc set up a file pfs_fstab with the line
/dev/dsk/c2t2d0 /SD_CDROM pfs-rrip xlat unix 0
Note: I didn't check your disk address before the reply so it may change.

2. as root
# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd &
# /usr/sbin/pfs_mount /SD_CDROM
# exit

Hope this helps
"Only he who attempts the absurd is capable of achieving the impossible