Operating System - HP-UX
1753532 Members
6187 Online
108795 Solutions
New Discussion юеВ

Re: remote mount pfs cd for oracle

 
Janet Parker_1
Occasional Contributor

remote mount pfs cd for oracle

Error!!!
[hpp100 /] nohup /usr/sbin/pfs_mountd&
[1] 21824
[hpp100 /] Sending output to nohup.out

[hpp100 /] nohup /usr/sbin/psfd&
[2] 21862
[hpp100 /] Sending output to nohup.out
nohup: /usr/sbin/psfd: No such file or directory

[2] + Done(127) nohup /usr/sbin/psfd&
[hpp100 /] nohup.out /usr/sbin/psfd&
[hpp100 /] nohup /usr/sbin/pfsd&
[2] 21906
[hpp100 /] Sending output to nohup.out

[hpp100 /] cd /etc
[hpp100 /etc] more pfs_exports
/cdrom -anon=2,ro
[hpp100 /etc] cd
[hpp100 /] pfs_exportfs -a
[hpp100 /] pfs_mount /cdrom
pfs_mount: /dev/dsk/c2t2d0 on /cdrom: unrecongnized format.
pfs_mount: giving up on /cdrom
[hpp100 /] cd /etc
[hpp100 /etc] more pfs_fstab
/dev/dsk/c2t2d0 /cdrom pfs-nfs ro,suid0 0
#/dev/sr0 /cd-rom pfs-iso9660 ro,suid 0 0
[hpp100 /etc]
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: remote mount pfs cd for oracle

On remote machine, use this script:

/usr/sbin/mount -F cdfs -e -o ro,rr /dev/dsk/c3t2d0 /cdrom


Then the nfs export might work and you can access it via the network.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Janet Parker_1
Occasional Contributor

Re: remote mount pfs cd for oracle

That worked on local system and cd is mounted but error on remote mount:

[hpp090 / ]nohup /usr/sbin/pfs_mountd&
[1] 9010
[hpp090 / ]Sending output to nohup.out

[hpp090 / ]nohup /usr/sbin/pfsd&
[2] 9063
[hpp090 / ]Sending output to nohup.out

[hpp090 / ]pfs_mount -o xlat=unix hpp100:/cdrom /cdrom
pfs_mount: hpp100:/cdrom not mounted
pfs_mount: giving up on /cdrom
[hpp090 / ]
Victor BERRIDGE
Honored Contributor

Re: remote mount pfs cd for oracle

Hi,
Did you pfs_umount the cd before the exportfs?


All the best
Victor
Janet Parker_1
Occasional Contributor

Re: remote mount pfs cd for oracle

NO when should I do this???
Victor BERRIDGE
Honored Contributor

Re: remote mount pfs cd for oracle

Remotely mounting PFS format file system (e.g. Oracle 8.1.5 Cdrom):

ON THE SERVER SIDE:

a. create /etc/exports with: /cdrom -ro
b. /usr/sbin/exportfs -av
WARNING!!! before exportfs you have to pfs_umount the cd and mount it again after the exportfs command
c. nohup /usr/sbin/pfs_mountd &
d. nohup /usr/sbin/pfsd &
NOTE: use ( #ioscan -funC disk ) to find the device name.
e. add the filesystem to /etc/pfs_fstab as follows : /dev/dsk/c0t2d0 /cdrom pfs-iso9660 ro,suid 0 0
f. add the filesystem to /etc/pfs_exports as follows : /cdrom -ro
g. pfs_exportfs -a
h. pfs_mount /cdrom

ON THE CLIENT SIDE :

nohup /usr/sbin/pfs_mountd &
b. nohup /usr/sbin/pfsd &
c. add the filesystem to /etc/pfs_fstab as follows : :/cdrom /test pfs-nfs ro,hard,fg 0 0

Note: do not need to do this if entered in /etc/pfs_fstab , # pfs_mount /test
d. pfs_mount -o xlat=unix remotesystemA:/cdrom /test

Note: to unmount use : # pfs_umount /test


Forgot where the doc came from at HP...
All the best
Victor
Janet Parker_1
Occasional Contributor

Re: remote mount pfs cd for oracle

This is remote system:
hpp100>:/cdrom /cdrom pfs-nfs ro,hard,fg 0 0
"pfs_fstab" [New file] 3 lines, 47 characters
[hpp090 /etc ]cd
[hpp090 / ]pfs_mount -o xlat=unix hpp100:/cdrom /cdrom
pfs_mount: hpp100:/cdrom not mounted
pfs_mount: giving up on /cdrom
[hpp090 / ]