1832591 Members
3354 Online
110043 Solutions
New Discussion

Re: pfs_mount

 
SOLVED
Go to solution
Dave Bunting
Frequent Advisor

pfs_mount

Hi,
I am having problems mounting my Oracle cdrom via pfs_mount, have executed pfs mountd and pfsd commands then pfs_mount but still gets 'nfs server not responding' any ideas what's wrong? or what i need to do further?

Thanks
21 REPLIES 21
Scott Van Kalken
Esteemed Contributor

Re: pfs_mount

what options are you using with pfs mount?
Dave Bunting
Frequent Advisor

Re: pfs_mount

Hi Scott,
# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd &
#pfs_mount -o xlat=unix /dev/rdsk/c0t2d0 /CDROM


Thanks...
Michael Tully
Honored Contributor

Re: pfs_mount

Hi Dave,

Have a look at the attached link. It give the procedure that I am sure that you want.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x53e7d211e18ad5118ff10090279cd0f9,00.html

HTH
-Michael
Anyone for a Mutiny ?
Sridhar Bhaskarla
Honored Contributor

Re: pfs_mount

Hi Dave,

I guess this was because the pfsd and pfs_mountd were already running. When we run pfsd and pfs_mountd without nohup option and mount the CDROMs and when we exit out of the shell, the mounts will hang and produce NFS Server not responding results. Someone might have done it before on your system. Make sure everything is clean on your system. Do a bdf and see if it is not hanging.

Kill all the pfs*, take out the CD and mount it again. Try with the usual nohup process.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sanjay_6
Honored Contributor

Re: pfs_mount

Hi Dave,

You should be using the block device and not the raw device. If your CDROM drive is c0t2d0 then you should be using /dev/dsk/c0t2d0 in the pfs_mount command. Also make sure the directory /CDROM exist.

pfs_mount -o xlat=unix /dev/dsk/c0t2d0 /CDROM

Hope this helps.

Regds
Uday_S_Ankolekar
Honored Contributor

Re: pfs_mount

Hi,

First kill pfs process and Try first nohup for pfsd and pfs_mountd
Followed by this command

/usr/sbin/pfs_mount -t rrip -x unix /dev/dsk/ /cdrom <-- to be mounted

for other CD format

mount -F cdfs -r -o cdcase /dev/dsk /cdrom

Hope this helps

Goodluck

-USA..
Good Luck..
Wang Liang
New Member

Re: pfs_mount

Hi Dave

On HP-UX:
1. #vi /etc/rc.config.d/netconf
...
NFS_CLIENT=1
NFS_SERVER=1
NUM_NFSD=4
START_MOUNTD=1
...
2. #/sbin/init.d/nfs.server start
#/sbin/init.d/nfs.client start

3. #vi /etc/pfs_fstab
/dev/dsk/cXtXdX /cdrom pfs-rrip xlat=unix 0 0

4. #nohup /usr/sbin/pfs_mountd &
#nohup /usr/sbin/pfsd &
#/usr/sbin/pfs_mount /cdrom

OK!
Dave Bunting
Frequent Advisor

Re: pfs_mount

whew! suggestions keep on pouring in....
tried some of them,
i tried killing pfs processes [in sequence] but i found one pfs_mountd.rpc process which was owned by init. and I cant kill it, how do i resolve this?
Thanks for all the help!
Sanjay_6
Honored Contributor

Re: pfs_mount

Hi dave,

You should have been able to kill the pfs_mountd.rpc, but it should be done before you kill pfs_mountd. If you are still able to kill the process, there in no other choice, you have to reboot the system to clear the process.

Hope this helps.

Regds
Dave Bunting
Frequent Advisor

Re: pfs_mount

server rebooting....
Dave Bunting
Frequent Advisor

Re: pfs_mount

server rebooted, no existing pfs process, but still nfs not responding....
no 'NFS_whatsoever=1' on netconf file
what is /etc/pfs_mtab for?


help...
Michael Tully
Honored Contributor

Re: pfs_mount

Hi Dave,

There is a typo with the file that should
be edited. The file should be /etc/rc.config.d/nfsconf not /etc/rc.config.d/netconf
'netconf' is for networking, 'nfsconf' for NFS.

Remove the changes in netconf and place them
into nfsconf. The /etc/pfs_fstab file is similar to /etc/fstab file except is used for 'pfs' type mounting and and not ordinary mounting.

'pfs' mounting is commonly called 'RockRidge Format'.

-Michael
Anyone for a Mutiny ?
Sanjay_6
Honored Contributor

Re: pfs_mount

Dave Bunting
Frequent Advisor

Re: pfs_mount

restarted server;
executed 'nohup' commands
executed pfs_mount etc...
[get error message:]
pfs_mountd at hpn: /dev/dsk/c#t#d# not responding


what's /etc/pfs_mtab got to do with port#?
entry:
/dev/dsk/c#t#d# / pfs-rrip xlat=unix port=932

where can i get this port=932?

Help... thanks everyone...
Dave Bunting
Frequent Advisor

Re: pfs_mount

ooops... that /etc/pfs_mtab entry is in the working server, not in the problematic one...
Thanks
Andrea Guarnerio
New Member

Re: pfs_mount

Hi everybody

I'm new in this forum

Sanjay, who do you suggest to use the block device?

In the man page pfs_mount(1M) I find:

...
PFS expects a character device to be used for mounts, not a block
device. Use of a block device with PFS is not supported.
...

Some time ago, I tried to use block device, but if I want to mount the cd-rom in one system and remotly mount that cd-rom from another one, with the block device it doesn't work.
Thank you for your attention.
Regards
Sanjay_6
Honored Contributor

Re: pfs_mount

Hi Andrea,

Thanks for pointing out. I was mistaken. you use the block device when adding an entry in the /etc/pfs_fstab file. the entry should be

/dev/dsk/c5t2d0 /SD_CDROM pfs-rrip xlat=unix 1 0

the do a nuhup for the two pfs processes,

# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd &

Then mount the pfs CD,

# /usr/sbin/pfs_mount /SD_CDROM

If you mention the device file name in the command line to mount the CD, you have to use a character device file in /dev/rdsk.

Sorry about the earlier post.

Regds
Sanjay
Andrea Guarnerio
New Member

Re: pfs_mount

Hi Sanjay

I'm confused.

I read the man page of both pfs_mount and pfs_fstab and I think it's not documented very well.
I put the extract for pfs_mount(1M) page:
...
PFS expects a character device to be used for mounts, not a block
device. Use of a block device with PFS is not supported.
...

And the pfs_fstab(5):
...
filesystem
is the pathname of a raw or block-special device, the
name of a remote file system in host:pathname form, or
the name of a file created with MakeDisc.
...

I think you can use both type of device file, but I had some problem with the block one in remote mounting.
Man pages are not clear.

Anyway I think there is correspondence:
mount <--> pfs_mount
fstab <--> pfs_fstab
I mean you have to put the same object in command line (pfs_mount) or in then file (pfs_fstab).

Tell me your opinion, please.

Bye

Andrea

Layne C. Berg II
Occasional Advisor
Solution

Re: pfs_mount

Hi Dave (and everyone else),

PFS is actually a product developed by a company called Young Minds. The man pages for the product are very poorly written and are hard to understand. I have had to work with this issue on all sorts of third party cds.

Here is what is needed to get PFS to work as well as it can.

First run this:

# swlist -l product | grep -i pfs
PHCO_16438 1.0 PFS cumulative patch

If you don't have this patch you will need to get it.


Next vi /etc/rc.config.d/nsfconf

Change the following entries to the following:

NFS_CLIENT=1(optional, sometimes this can cause problems if it is not set to 1)
NFS_SERVER=1(manitory, pfs needs this to run correctly)

REBOOT the server :) or just run a ps -ef | grep -i nfs. If you get nfsd back you are okay.

The reason that NFS needs to be running is that PFS use the NFS subsystems to basically do a local NFS mount with the pfs_mount command. If you don't have it running it gets confused.

Now run the nohups stated earlier

nohup /usr/sbin/pfs_mountd &
nohup /usr/sbin/pfsd &

now you can run the mount command, be sure to use the raw device. Sometimes the kernal can have problem translating if you only use the normal device file i.e.

pfs_mount -o xlat=unix /dev/rdsk/c0t2d0 /CDROM



Now to answer your question about the /etc/pfs_mtab file. This is the /etc/mnttab file for normal filesystems. It gets update as the pfs_mount and pfs_umount commands get run.

I hope this helps and explains some of the questions you might have.

Good luck and keep the questions coming.

Layne
Satish Y
Trusted Contributor

Re: pfs_mount

Hi Dave,

Have u checked whether rpcbind or portmap(depending on ur HP-UX version) daemon is running?. If not stop all the daemons and then run,

# /sbin/init.d/nfs.core start

Then start pfs daemons and mount cdrom,

# nohup /usr/sbin/pfs_mountd &
# nohup /usr/sbin/pfsd &
#pfs_mount -o xlat=unix /dev/rdsk/c0t2d0 /CDROM

Hope this will solve ur problem.

Cheers...
Satish.
Difference between good and the best is only a little effort
Dave Bunting
Frequent Advisor

Re: pfs_mount

Hi All!!!
Thanks for all yer suggestions!
have tried it all, all patches are already installed, checked anny available s/w issue, changed Oracle CD
still errs....

So i have decided to change my CDRom [any relevance?] and everything went OK!!!!
Whew!!! now that's troubleshooting!

Thanks again everybody!!!