Operating System - HP-UX
1846311 Members
3485 Online
110256 Solutions
New Discussion

Re: pfs_mountd problem, PLEASE HELP!!

 
Martin_9
Occasional Contributor

pfs_mountd problem, PLEASE HELP!!

when i launch '/usr/sbin/pfs_mountd &', i get this :
pfs_mountd: can't contact pfs_mountd.rpc: agoradvt: RPC: Program not registere
d
pfs_mountd: pfs_mountd: can't contact pfs_mountd.rpc: agoradvt: RPC: Program not
registered
what can i do??
Youl
8 REPLIES 8
CHRIS_ANORUO
Honored Contributor

Re: pfs_mountd problem, PLEASE HELP!!

Have you checked your orevious thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xd000a24d9abcd4118fef0090279cd0f9,00.html


Do the following:
1.Insert cdrom into drive
2.start processes Pfs:
#/usr/sbin/pfs_mountd &
#/usr/sbin/pfsd &
3.Note: varify > #ps -ef|grep pfs
4.find cdrom device name )ioscan -funC disk) [e.g.
/dev/dsk/c1t2d0]
5.validate mount point to mount cdrom [e.g. /cdrom]
6.#pfs_mount /dev/dsk/c1t2d0 /cdrom

To umount do the following:
1.#pfs_umount /cdrom
2. manually eject cdrom from drive. (press eject button)
3.#kill processess [pfsd and pfs_mountd]
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
James R. Ferguson
Acclaimed Contributor

Re: pfs_mountd problem, PLEASE HELP!!

Hi:

In addition to the suggestions given by Chris and others in your other thread, make sure that /usr/sbin is in your PATH when you initiate the pfs daemons.

...JRF...
Rita C Workman
Honored Contributor

Re: pfs_mountd problem, PLEASE HELP!!

Have your checked to ensure that the following is there:

/etc/pfs_fstab file should include something like this:
/dev/dsk/c_t_d_ /SD_CDROM pfs-rrip xlat=unix 0

Then this should be reflected in the /etc/pfs_mtab once the file system is mounted.

Just a thought,
Martin_9
Occasional Contributor

Re: pfs_mountd problem, PLEASE HELP!!

i cannot launch pfs_mount, my pfs_fstab file is correctly configured

it is when i launch 'pfs_mountd' that i have an error.
Youl
Steffi Jones_1
Esteemed Contributor

Re: pfs_mountd problem, PLEASE HELP!!

one other thing you might want to check...

install the newest patch for PFS

11.x: PHCO_16438
10.20: PHCO_15453
Steffi Jones_1
Esteemed Contributor

Re: pfs_mountd problem, PLEASE HELP!!

One more thought.... check if you have a defective /etc/resov.conf file.

Good luck,

Steffi Jones
Shannon Petry
Honored Contributor

Re: pfs_mountd problem, PLEASE HELP!!

First, pfs_mount expects the RAW disk. You have to use
pfs_mount (OPTIONS) /dev/rdsk/c?t?d? /{mountpoint}

By the looks of your error though, I would say that the daemons are not started up properly. do a ps -ef and grep for pfs. Kill the daemons running.
then run
pfs_mountd
pfsd
If the daemons are not started in the correct order, then you will get errors very similar to if the daemons are not started at all.

Here is a copy of what I use.
CUT FROM HERE TO /sbin/init.d/pfs
#!/usr/bin/sh
#
# pfs startup: Startup and kill script for the PFS file server
#

PATH=/sbin:/usr/sbin:/usr/bin
export PATH

if [ -r /etc/rc.config.d/pfs ] ; then
. /etc/rc.config.d/pfs
fi
stat_pfs_fc()
{
PFSD=`ps -ef|grep pfsd|grep -v grep|head -1|awk '{print $2}'`
PFSM=`ps -ef|grep pfs_mount|grep -v grep|head -1|awk '{print $2}'`
}

kill_pfsd_fc()
{
for PID in `ps -ef | grep pfsd | awk '{print $2}'` ; do
if [ -n $PID ] ; then
kill $PID 1>>/dev/null 2>>/dev/null
fi
done
}

kill_pfsmount_fc()
{
for PID in `ps -ef | grep pfs_mount | awk '{print $2}'` ; do
if [ -n $PID ] ; then
kill $PID 1>>/dev/null 2>>/dev/null
fi
done

}

case "$1" in

"start_msg") echo "Starting PFS Daemons" ;;

"start") if [ "$RUN_PFS_SERVER" -ne 0 ] ; then
stat_pfs_fc
if [ "${PFSD}x" = "x" ] ; then
echo "starting pfs_mountd"
/usr/sbin/pfs_mountd -D$PFS_DAEMONS &
else
echo "pfsd is already running with PID $PFSD"
echo "please stop and restart if necessary"
fi
if [ "${PFSM}x" = "x" ] ; then
echo "starting pfsd"
/usr/sbin/pfsd $PFS_DAEMONS &
else
echo "pfs_mount is already running with PID $PFSM"
echo "please stop and restart if necessary"
fi
exit 0
fi
exit 2 ;;

"stop_msg") echo "Terminating PFS Daemons " ;;
"stop") kill_pfsd_fc
kill_pfsmount_fc
kill_pfsd_fc
kill_pfsmount_fc
;;
stat*) stat_pfs_fc
if [ "${PFSD}x" = "x" ] ; then
echo "pfsd is not running"
else
echo "pfsd is running"
fi
if [ "${PFSM}x" = "x" ] ; then
echo "pfs_mount is not running"
else
echo "pfs_mountd is running"
fi
;;
*) echo ""
echo "Bad or Missing Arguments...." ; echo "$0 Useage"
echo ""
echo "pfs stop|start|start_msg|stop_msg|status"
exit 0

esac
exit 0
END CUT.
chmod 555 /sbin/init.d/pfs
This script requires an entry /etc/rc.config.d/pfs
CUT FROM HERE
#
# pfs configuration: set to a non-zero value to
# initiate pfsd and pfs_mountd at run_level 2
#
# Installed at /etc/rc.config.d/pfs
#
RUN_PFS_SERVER=1
# Set the number of PFS daemons to run
PFS_DAEMONS=4
END CUT
chmod 444 /etc/rc.config.d/pfs

Now just run /sbin/init.d/pfs start, stop, etc...

If you want pfs to start at boot time, make sure to link to run level.
I.E.
ln -s /sbin/init.d/pfs /sbin/rc2.d/S901pfs

Regards,
Shannon
Microsoft. When do you want a virus today?
mike_16
New Member

Re: pfs_mountd problem, PLEASE HELP!!

pls check the following files to make sure the hostnames or nodenames are same

1. /etc/hosts
2. /etc/rc.config.d/netconf

or:

' %uname -n ' is the same as ' %hostname'
They should be same or you will meet the problem.

Michael Lee