Operating System - HP-UX
1837850 Members
2735 Online
110121 Solutions
New Discussion

Trying to mount Oracle CD using pfs_mount

 
SOLVED
Go to solution
Srividhya Narayanan
Frequent Advisor

Trying to mount Oracle CD using pfs_mount

Hi,

I'm trying to install Oracle 8.0.5 on HP-UX 10.20. Here is the output of the commands that i entered.

# cat pfs_fstab
/dev/rdsk/c1t2d0 /SD_CDROM pfs-rrip xlat=unix,soft 1 0

(When I issue the following command, it hangs after saying Sending output to nohup.out)
# nohup /usr/sbin/pfs_mountd &
Sending output to nohup.out

so I did a Ctrl+C to come out of it and killed the pfs process, and issued the following commands,
# pfs_mountd &
# pfsd &
# /usr/sbin/pfs_mount /SD_CDROM
Usage: /usr/sbin/pfs_mount [-v -f -t -o -x [type|option|xlat] ... [mount_device
] [ mount_point ]

since it did not take the previous command, i used the following:

# /usr/sbin/pfs_mount -o xlat=unix /dev/rdsk/c1t2d0 /SD_CDROM
/usr/sbin/pfs_mount: pfs_mountd at qft157:/dev/rdsk/c1t2d0 not responding: : RPC
_TIMED_OUT

/usr/sbin/pfs_mount: retrying /SD_CDROM
/usr/sbin/pfs_mount: giving up on /SD_CDROM
#

Could anyone tell me what I'm doing wrong.

Thanks so much,
Sri
6 REPLIES 6
Stefan Farrelly
Honored Contributor
Solution

Re: Trying to mount Oracle CD using pfs_mount


Once youve managed to hang pfs_mount you really need to reboot to cleanup before re-attempting it. We use the following /etc/pfs_fstab file;

#Mount Oracle CDROM
/dev/rdsk/c3t2d0 /SD_CDROM pfs-rrip xlat=unix,soft 1 0

Works fine. And a special script to start the pfs daemons;

# Start pfs daemons

X=`ps -ef|grep pfs|grep -v grep|wc -l`
if [ $X -gt 1 ]
then
echo "nPFS processes already running! n"
ps -ef|grep pfs|grep -v grep
exit 1
fi
cd /tmp
nohup /usr/sbin/pfs_mountd -v &
sleep 10
nohup /usr/sbin/pfsd 4 -v &
sleep 10

# To mount a Rock-Ridge CD-ROM
# /usr/sbin/pfs_mount -x unix -o nosuid /dev/rdsk/c3t2d0 /SD_CDROM

# To mount an Oracle CD see /etc/pfs_fstab, just do> pfs_mount /SD_CDROM
# NOTE: use /dev/rdsk for CD device, its more reliable

/usr/sbin/pfs_mount /SD_CDROM
bdf

These procedures work for us 100% of the time. As long as you have the up-to-date pfs patch; (for 11) PHCO_16438

Im from Palmerston North, New Zealand, but somehow ended up in London...
MARTINACHE
Respected Contributor

Re: Trying to mount Oracle CD using pfs_mount

Here is my /etc/pfs_fstab :

/dev/dsk/c6t2d0 /SD_CDROM pfs-rrip retry=3,soft,intr,xlat=unix 0
Patrice MARTINACHE
James R. Ferguson
Acclaimed Contributor

Re: Trying to mount Oracle CD using pfs_mount

Hi:

A note of caution by which you will avoid trouble.

Killing the pfs daemons is downright risky! You can find yourself unable to do 'bdf' and 'ls' commands while your server's CPU utilization climbs and climbs.

You might see messages like: "NFS server XXX not responding still trying".

At this point you have to bite the bullet and reboot.

If you absolutely must kill the daemons, do so in the reverse order that you started them.

...JRF...
Jerry Lindsey
Occasional Advisor

Re: Trying to mount Oracle CD using pfs_mount

This might seem a silly question but since I did not watch as you typed at the keyboard I have to ask: After you issued the initial command "#nohup /usr/sbin/pfsmountd &" and hit return, did you hit return again to obtain the shell prompt, or did you percieve the process was hung because it did not return a shell prompt to you and ^C out of it? This command will not return a shell prompt until you hit return a second time...
Srividhya Narayanan
Frequent Advisor

Re: Trying to mount Oracle CD using pfs_mount

Thanks so much to all of you, It worked!!!! Thanks Stefan, I used your script and it worked perfect.

Thanks again,
Sri
Srividhya Narayanan
Frequent Advisor

Re: Trying to mount Oracle CD using pfs_mount

Hi all,

There was a problem in oracle installation on friday and we're trying to do it all over again today but I'm getting the same problem as before while mounting the cdrom.

This is what i did:-
cd /tmp
nohup /usr/sbin/pfs_mountd -v &
sleep 10
nohup /usr/sbin/pfsd 4 -v &
sleep 10

# ps -ef|grep pfs
root 2399 2378 0 12:02:45 ttyp1 0:00 /usr/sbin/pfsd 4 -v
root 2401 2399 0 12:02:45 ttyp1 0:00 pfsd.rpc
root 2402 2399 0 12:02:53 ttyp1 0:00 pfsd.rpc
root 2403 2399 0 12:03:01 ttyp1 0:00 pfsd.rpc
root 2396 2378 0 12:02:35 ttyp1 0:00 /usr/sbin/pfs_mountd -v
root 2404 2399 0 12:03:09 ttyp1 0:00 pfsd.rpc
root 2442 2378 1 12:10:30 ttyp1 0:00 grep pfs
root 2398 2396 0 12:02:35 ttyp1 0:00 pfs_mountd.rpc

( In pfs_fstab file, the following line.)
/dev/rdsk/c1t2d0 /SD_CDROM pfs-rrip xlat=unix,soft 1 0

(Mounting the CDROM)
# /usr/sbin/pfs_mount -x unix -o nosuid /dev/rdsk/c1t2d0 /SD_CDROM
/usr/sbin/pfs_mount: /dev/rdsk/c1t2d0 on /SD_CDROM: read failed: No such device
@
/usr/sbin/pfs_mount: giving up on /SD_CDROM
#

I remember doing the same this and i was able to mount the oracle CD on friday. Please Help.

Thank you all so much.
Sri