System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem trying to share a directory

Christopher Powers
Occasional Contributor

Problem trying to share a directory

I have an RX8620 running HP-UX 11.23. I want to mount a CD on this machine and share it so other machines can NFS mount this CD. I mounted the CD successfully (using the command mount -r /dev/dsk/c1t2d0 /mnt). However, when I try to share the /mnt directory (share /mnt), I get the following error:
share: Running old NFS library, requires new NFS library

Any ideas.
2 REPLIES
David Sandilands
Occasional Visitor

Re: Problem trying to share a directory

Im not sure exactly why this happens but as a workaround

How to mount a DVD on a remote system to a local directory
Mount the DVD.
% mount /dev/dsk/xxx /mnt/dvdrom
Edit the /etc/exports file. DVDs must be mounted read only (ro) and, if required, can give root permission to other machines mounting the filesystem. (root=< machine_foo:machine_bar:machine_baz>) Add a line to /etc/exports:
% /mnt/dvdrom -ro,root=
Export the file system using all the directives found in /etc/exports.
% exportfs -a
Verify that the line you added is actually exported.
% exportfs
On the local machine:
Mount the DVD to an existing directory.
% /etc/mount :/mnt/dvdrom /mnt/dvdrom




NOTE: You cannot be in the /mnt/dvdrom directory when you try to mount. You will get a file busy error.



Unmount the DVD file system.
% /etc/umount /mnt/dvdrom
On the remote system:
Unexport the DVD file system.
% exportfs -u -i /mnt/dvdrom
Vijaykumar_1
Valued Contributor

Re: Problem trying to share a directory

when I try to share the /mnt directory (share /mnt) :---> U need to try with exportfs command on HP-UX 11.23.

If im not wrong, this should be the only issue.