1837792 Members
11644 Online
110120 Solutions
New Discussion

How to use pfs_mount

 
SOLVED
Go to solution
Alan Edwards
Frequent Advisor

How to use pfs_mount

Does anyone have a cheat sheet on how to startup and use pfs_mount. I remember that some daemons need starting, but it was a while ago.

Alan
Klatu Barada Nikto
8 REPLIES 8
Sridhar Bhaskarla
Honored Contributor

Re: How to use pfs_mount

Hi,

Make sure you have no pfs daemons running.
This is the following order.

1. pfs_mountd
2. pfsd&

Then use pfs_mount command to mount the CD.
Check the man page for pfs_mount to check the type and the corresponding option.

-Sri

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

Re: How to use pfs_mount

Hi,
Apart from above posts more details on 'pfs_mount' can be found in Technical Knowledge Base document #KBAN00000252.

-USA..

Good Luck..
Tom Geudens
Honored Contributor

Re: How to use pfs_mount

Hi,
## Starting daemons
cd /tmp
nohup /usr/sbin/pfs_mountd ???v &
sleep 10
nohup /usr/sbin/pfsd 4 ???v &
sleep 10

## Contents of /etc/pfs_fstab for Oracle CD's (which is why most people use pfs_mount)
/dev/cdrom /SD_CDROM pfs-rrip retry=3,soft,intr,xlat=unix 0 0

After this you can mount an Oracle CD with a simple pfs_mount -a
Unmount with pfs_umount /SD_CDROM

After the umount you may kill the daemons in reverse order of starting them ...

Hope this helps,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?
Thierry Poels_1
Honored Contributor

Re: How to use pfs_mount

Hi,

in case of local mount :
nohup /usr/sbin/pfs_mountd &
nohup /usr/sbin/pfsd &
/usr/sbin/pfs_mount ???t rrip ???x unix /dev/dsk/c9t9d0 /cdrom

----

in case of remote mount :
On remote server :
nohup /usr/sbin/pfs_mountd &
nohup /usr/sbin/pfsd &
/usr/sbin/pfs_mount ???t rrip ???x unix /dev/dsk/c9t9d0 /cdrom
edit /etc/pfs_exports & add :
/cdrom ???access=client_hostname
pfs_exportfs ???a ???v

On local server :
nohup /usr/sbin/pfs_mountd &
nohup /usr/sbin/pfsd 4 &
/usr/sbin/pfs_mount otherserver:/cdrom /cdrom



after use don't forget to pfs_umount /cdrom (on both systems if remote). Afterwards you can also kill pfs_mountd & pfsd daemons.


good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Steven Sim Kok Leong
Honored Contributor

Re: How to use pfs_mount

Hi,

This is my script ./pfsmcd that does the automatic pfs mounting and unmounting after you have /etc/pfs_fstab configured
1) unmounts if mounted
2) mounts if not mounted

=====================================================
#!/usr/bin/ksh

if ps -ae|grep -v grep|grep pfs_mountd > /dev/null 2>/dev/null
then
echo pfs_mountd already started
else
echo Starting pfs_mountd
nohup /usr/sbin/pfs_mountd &
sleep 5
fi
if ps -ae|grep -v grep|grep pfsd > /dev/null 2>/dev/null
then
echo pfsd already started
else
echo Starting pfsd
nohup /usr/sbin/pfsd &
sleep 5
fi
if /sbin/mount|grep /cdrom > /dev/null 2>/dev/null
then
echo Unmounting /cdrom
pfs_umount /cdrom > /dev/null 2>/dev/null
else
echo Mounting /cdrom
pfs_mount /cdrom > /dev/null 2>/dev/null
fi
=====================================================

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Wodisch
Honored Contributor

Re: How to use pfs_mount

Hello,

just remember that PFS *needs* NFS to be up and running!
So, check with "rpcinfo -p" - any output except an error is ok...

HTH,
Wodisch
Alan Edwards
Frequent Advisor

Re: How to use pfs_mount

Thanks everybody, that was just what I needed.
Alan
Klatu Barada Nikto