1822711 Members
3818 Online
109644 Solutions
New Discussion юеВ

mount network drive

 
kamal_15
Regular Advisor

mount network drive

hi all
i have hp-ux version 10.20
i want to mount network drive(run on linux client Redhat).on my server hp-ux

how can i do that WITHOUT using software (like SAMBA,....)?

if there way please help
thank you
kamal
14 REPLIES 14
Stephen Keane
Honored Contributor

Re: mount network drive

Yes, use NFS.
kamal_15
Regular Advisor

Re: mount network drive

thankx for response

but can you explain the steps for doing this operation .?
thank you
Francisco J. Soler
Honored Contributor

Re: mount network drive

Hi kamal, some of the step you need are:

- Go into linux box and edit /etc/hosts and add the hp-ux machine
- In hp-ux edit the file /etc/exports and add the filesystem you want to export
- In linux add the nfs service or restart it.
/etc/rc.d/init.d/nfs start (you probably want to do it in the boot, use chkconfig to do it. chkconfig --level 345 nfs on)
- Edit /etc/hosts en the hp-ux box and add the linux box.
- Edit /etc/hosts.equiv in the hp-ux and add the linux.
- Edit /etc/hosts.equiv in the linux and add the hp-ux.
- In hp-ux run exportfs -a to make the export changes active.

I think i'm not forgotten anythig.

good luck
Frank.
Linux?. Yes, of course.
SAHA
Honored Contributor

Re: mount network drive

Also read this link:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=213941

thanks,
You must PASS failure on way to success !!!
kamal_15
Regular Advisor

Re: mount network drive

thank you

but when i execute the mount command
i have an error
err (no such file or directory)

i think i type command with wrong systax

can u help me for that?
i want to mount :
mount (directory in linux client) on (directory on hp-ux server)

thank you
kamal
Fabio Ettore
Honored Contributor

Re: mount network drive

Hi Kamal,

try these steps:

- on Linux:

vi /etc/exports
/test
save and exit by :wq!

exportfs -a

- on HP-UX:

mkdir /test
mount :/test /test

Let me know if it works and if it cannot work let me know the error, if I can then I will try to help you.

Bets regards,
Fabio
WISH? IMPROVEMENT!
kamal_15
Regular Advisor

Re: mount network drive

hi fabio


i try the steps
but this is error

on linux
vi etc/exports
/kimo
wq
exportfs -a
and this is error
*****************************************
exportfs: No 'sync' or 'async' option specified for export ":/kimo".
Assuming default behaviour ('sync').
NOTE: this default has changed from previous versions
exportfs: No host name given with /kimo(sync) (ro,sync,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2), suggest *(ro,sync,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2) to avoid warning
exportfs: No host name given with /kimo(rw) (ro,sync,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2), suggest *(ro,sync,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2) to avoid warning
exportfs: No host name given with /kimo (ro,sync,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2), suggest *(ro,sync,wdelay,hide,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping=identity,anonuid=-2,anongid=-2) to avoid warning.

******************************************


and on hp-ux

mount kamal(this is linux name):/kimo /home/dir1

but that is error
***************************
server not responding: RPC_PMAP_FAILURE - RPC_PMAP_FAILURE
***************************

please advise
kamal


kamal_15
Regular Advisor

Re: mount network drive

please helpidon't know what is the problem
Fabio Ettore
Honored Contributor

Re: mount network drive

Hi Kamal,

just now I can see your post.
Then:

- first of all, what kind of Linux is your system?
- on Linux is nfs service launched?
service nfs start
- on HP-UX is the nfs client started?
/sbin/init.d/nfs.client start
- you use DNS or /etc/hosts?
- on /etc/hosts of both systems anyway insert


on Linux system


on HP-UX system


Let me know.

Best regards,
Fabio
WISH? IMPROVEMENT!
kamal_15
Regular Advisor

Re: mount network drive

1-i have linux redhat 92-i launched NFS on it3-i use /etc/hosts4- i have hp-ux version 10.205-i launched NFS client on itbut i receive error when i execute 1-exportfs -a2-mount what can i do?thankx
Fabio Ettore
Honored Contributor

Re: mount network drive

Ok Kamal, I found the solution.
Error stands on the format of /etc/exports.
To solve your problem follow steps below:

- on Linux:

vi /etc/exports
/ (ro)

ro just is an option for read-only, you can insert what you want separated with a comma (,).

service nfs stop
service nfs start
exportfs -a

ignore messages.

- on HP-UX:

mount :/ /

Let me know if it solves your problem.


Best regards,
Fabio
WISH? IMPROVEMENT!
kamal_15
Regular Advisor

Re: mount network drive

its give me error:server not responding(but nfs on server is started)I found the version of nfs on linux is 3and in hp-ux is 2is that the reson of error or what ?
Fabio Ettore
Honored Contributor

Re: mount network drive

Hi kamal,

now it is new error and I needed a few time to search something.
I don't think that the different version is a problem.

Try:

on Linux system create or (if already exists) modify

/etc/hosts.allow

portmap : 192.167.16.130/255.255.255.0 : allow

Above just an example. You have to specify IP/subnet mask of the HP-UX system in /etc/hosts.allow.
Then stop/start the service again on both systems.

Hope this helps you.

Best regards,
Fabio
WISH? IMPROVEMENT!
kamal_15
Regular Advisor

Re: mount network drive

firewall option was selected in security level
in linux
when i removed it
mountd works good
thank you