Operating System - HP-UX
1826451 Members
4308 Online
109692 Solutions
New Discussion

Re: problem for mounting CD-ROM

 
Martin_9
Occasional Contributor

problem for mounting CD-ROM

i must install Oracle 8.1.6 EE and i follow instructions to mount the CD-ROM :
/usr/bin/pfs_mountd &
/usr/bin/pfsd &
/usr/sbin/pfs_mount /CDROM

in the /etc/pfs_fstab i have put :
/dev/dsk/c3t2d0 /CDROM pfs-rrip xlat=unix 0 0

but pfs_mountd tells me pfs_mountd.rpc isn't registered, and finally, pfs_mount "giving up" /CDROM...

What can I do??
Help me please and excuse me for my bad english...
Youl
6 REPLIES 6
Alex Glennie
Honored Contributor

Re: problem for mounting CD-ROM

Problem Description

1. I'm trying to read a third party CD-ROM and noticed that
there is a dot after each file name. This dot prevents me
from installing the software that is on the disk. I'm using
the mount command with the special options of cdcase to have
all filenames in lowercase and remove the file revision
# (do a man mount_cdfs). I was told to use the pfs_mount
command, but this command still leaves the trailing
dot after the filename. How do I remove the dot following
the file name?

2. I'm FTPing the files from the PC straight to the UNIX box.
The FTP files still did not work. I'm getting the errors:

unable to register (MOUNT_PROGRAM, MOUNT_VERSION, upd) and
/usr/sbin/pfs_mountd: can't contact pfs_mountd.
rpc: hostname: RPC_PROG_NOT_REGISTER.

After these error messages, the program just dies. I'm unable
to start pfs_mountd. I use lan1 instead lan0, does pfs_mount
requires lan0? lan0 works on my other system.

Configuration Info

Operating System -HP-UX
Version -10.20
Hardware System - HP 9000
Series -K460

Solution

1. HP has adopted the iso9000 standard which causes some filenames
from CD-ROMs to have a dot after them. As a workaround it is
recommended that you try the following:

a. Read the CD-ROM on a pc.
b. Copy the files from the CD-ROM to a floppy disk.
Use doscp to copy the files to the floppy disk.
c. Use dos2ux command to copy and convert the files
to a unix box.

2. Here are a couple things to try to see how to troubleshoot
this problem:

a. It could be that you are taking too long to bring up
both the pfs_mountd and the pfsd programs. It is
recommended that you start them by doing the following:

# csh
# set path = ( $path . )
# cd /usr/PFS
# ./pfs_mountd & ./pfsd &

You can use csh, though it isn't required, or something
equivalent. Make sure that the directory holding PFS is
in the path. Finally, you need to start the pfs_mountd
and the pfsd in the background, essentially simultaneously.

The pfs_mountd will then start pfs_mountd.rpc and pfsd
will start pfsd.rpc. These two new programs will then
communicate with each other and synchronize with each other.
If they don't within a specified period of time (on the order
seconds), they will print an error similar to the one shown.

b. Check to see if you have the same network setting on the
other box that has 2 network interface. ( interface down,
route for IP, etc...). Do a lanscan and a netstat -r and
possibly start it on the other box and do an rpcinfo -p.

In this case, after comparing the 2 systems, found that lan0 was
not configured on the other box. You need to make sure that they
are identical by comparing /etc/rc.config.d/netconf. Fix the
configuration and reboot.
Vincente Fernandes
Valued Contributor

Re: problem for mounting CD-ROM

Make sure that the below process/daemons are also running.
root 1365 1 0 Nov 18 ? 2:55 /opt/dce/sbin/rpcd
root 1110 1 0 Nov 18 ? 0:00 /usr/sbin/rpc.lockd
root 1748 1 0 Nov 18 ?0:00 /usr/sbin/rpc.mountd
root 1104 1 0 Nov 18 ? 0:00 /usr/sbin/rpc.statd
root 5393 1150 0 Nov 18 ?0:03 /usr/dt/bin/rpc.ttdbserver

Have you created "/CDROM" directory, if not create it usually it is "/SD_CDROM" by default.

Try using "-v -a" options while doing pfs_mount
Do a man on pfs_mount.
You can also start the above daemons by running "/sbin/init.d/nfs.server, /sbin/init.d/nfs.client" startup init scripts.
Steffi Jones_1
Esteemed Contributor

Re: problem for mounting CD-ROM

Hello,

one other thing you might want to check.

There is a known bug with the pfs mount command and having root listed in more than 8 groups.

By changing it to 8 groups or less pfs should be working properly.

Besides this make sure, that you have the newest available patch installed:

10.20 PHCO_15453
11.00 PHCO_16438

The newest pfs commands can be found at Young Minds itself.

ftp to ftp.ymi.com or check out their webpage... www.ymi.com

Steffi JOnes
Darrel Louis
Honored Contributor

Re: problem for mounting CD-ROM

Martin,

Think this is hp-ux 11.X
Do the following:
- ps -ef|grep rpc
- rpcinfo -p
if no output it's possible that your portmapper is not running.
If you check in /etc/rc.log, where the NFS-Core(S400...)is started for any errors.

Try starting pfs daemons in debug-mode.
# nohup /usr/sbin/pfs_mountd
# nohup /usr/sbin/pfsd
mount the cd again.

Make sure you've the lataest pfs patches installed.
Shannon Petry
Honored Contributor

Re: problem for mounting CD-ROM

Your problem is fixed pretty easily by pfs_mount over standard mount. Your error about pfs_mount not being able to start is because pfs_mountd and pfs_rpcd are not started. To help with the startup, I have attached a compressed archive. (hope it makes it up there.....)

If you are brave, just uncompress this gzip file, cd to / and extract the tar archive. You should get 3 files.
1. /sbin/init.d/pfs
2. /sbin/rc2.d/S901pfs -> /sbin/init.d/pfs
3. /etc/rc.config.d/pfs #configuration

After extracting, run /sbin/init.d/pfs start.
Now, run
pfs_mount -o iso9006 -x unix RAW_DISK_DEVICE MOUNT_POINT

Make sure that the mount point is created first. Read the man pages on pfs_mount and mount_cdfs should help clarify the unix translation.

Regards,
Shannon
Microsoft. When do you want a virus today?
Shannon Petry
Honored Contributor

Re: problem for mounting CD-ROM

Just noticed you can not get the file I uploaded. Live and learn eh?
Anyway, here it is the long way.
>touch /etc/rc.config.d/pfs
>chmod 444 /etc/rc.config.d/pfs
##cut and paste these lines to /etc/rc.config.d/pfs
#
# 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
# Now, make the startup scripts
>touch /sbin/init.d/pfs
>chmod 755 /sbin/init.d/pfs
# Cut and paste these into /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
Now run the script
>/sbin/init.d/pfs start

If you want these daemons to start at boot time, you need to make a link to the run level. I use
>ln -s /sbin/init.d/pfs /sbin/rc2.d/S902pfs

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