Operating System - HP-UX
1842026 Members
2850 Online
110185 Solutions
New Discussion

Re: Mounting Remote file system

 
SOLVED
Go to solution
mehul_3
Regular Advisor

Mounting Remote file system

I want to mount remote file system with /dev/vg01/lvol1 giving following command
mount -F vxfs 10.162.185.7:/dev/vg01/lvol2 /n01 but confronted with following error
mount: /n01: No such file or directory.

Could somebody please hassle free way to resolve the issue.

Regards,
Mehul
31 REPLIES 31
Robert-Jan Goossens_1
Honored Contributor

Re: Mounting Remote file system

Hi Mehul,

server 10.162.185.7

/dev/vg01/lvol2 /n01
# cat /etc/exports
check if above filesystem (/n01)is the exports file.

Serverb

mkdir /no1
mount -F nfs 10.162.185.7:/no1 /no1

Regards,
Robert-Jan
Court Campbell
Honored Contributor

Re: Mounting Remote file system

You need to setup nfs on 10.162.185.7 and export the directory that /dev/vg01/lvol2 is mounted on. also does the directory /n01 exist?
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
RUET
Regular Advisor

Re: Mounting Remote file system

also don't use -F vxfs, this option can only be applied to local mount ..
so use -F nfs, even it's not really needed ..

Don't mount the remote LV volume, but the remote mount point of this LV

Export on the remote side (NFS server) the directory to tour NFS client

On the client, create the directory on which you are going to mount the remote dir ...

mkdir /dir2
mount xx.yy.zz.ww:/dir1 /dir2
cd /dir2
ls
Sunny Jaisinghani
Trusted Contributor

Re: Mounting Remote file system

Hi Mehul,

1. check if your nfs is configured.

2. add the entry of the directory you want to mount in the /etc/exports file on the remote server.

3. do exportfs -a

4. mount the file system. also there isn't any need to use the -F option with mount. it works perfectly fine without it.

regards
mehul_3
Regular Advisor

Re: Mounting Remote file system

I could not find exports file getting following error message.
# cat /etc/exports
cat: Cannot open /etc/exports: No such file or directory

Regards,
Mehul
Robert-Jan Goossens_1
Honored Contributor

Re: Mounting Remote file system

Hi Mehul,

# vi /etc/exports
/n01 -rw -root=[remote_host]
:wq

# /usr/sbin/exportfs -a

On remote_host

# mkdir /n01
# mount -F nfs 10.162.185.7:/n01 /n01

Regards,
Robert-Jan
mehul_3
Regular Advisor

Re: Mounting Remote file system

I created a new exports file but could not able to save whatever you have suggested to enter text. One doubt I want to clear that in text you suggest to enter [remote_host].So, should I enter remote hostname as a [srsux004] or simply srsux004.

regards,
Mehul
Robert-Jan Goossens_1
Honored Contributor

Re: Mounting Remote file system

srsux004

# vi /etc/exports
n01 -rw -root=srsux004
:wq!
# exportfs -a
Court Campbell
Honored Contributor

Re: Mounting Remote file system

I would suggest starting here:

http://www.docs.hp.com/en/5991-1154/index.html
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
mehul_3
Regular Advisor

Re: Mounting Remote file system

I exactly followed a steps by entering new entry suggested in exports file but getting following error message when executed exportfs
exportfs error: unknown option:
rw-root=srsux004

Regards,
Mehul
Sunny Jaisinghani
Trusted Contributor

Re: Mounting Remote file system

Hi Mehul,

This should work fine.

# vi /etc/exports
n01 -root=srsux004 #root access to srsux004
:wq!
# exportfs -a

sunny
mehul_3
Regular Advisor

Re: Mounting Remote file system

Now everthing is working fien but getting error message "permission denied"

Pl, help me in this regard.

Regards,
Mehul
Robert-Jan Goossens_1
Honored Contributor

Re: Mounting Remote file system

Please post the exact error message and post the /etc/exports file.
mehul_3
Regular Advisor

Re: Mounting Remote file system

when I tried to mount file system using following commnad
mount -F nfs -o rsize=32768,wsize=32768 10.162.185.7:/arch /u01
I got error message "permission denied"
(Note: entry in exports
/u01 rw-root=srsux004)

Regards
Mehul
Robert-Jan Goossens_1
Honored Contributor

Re: Mounting Remote file system

(Note: entry in exports
/u01 rw-root=srsux004)

Try this one

/u01 -rw access=srsux004,root=srsux004
exportfs -a

RJ
mehul_3
Regular Advisor

Re: Mounting Remote file system

Dear RJ
Still I confronted with same error. I entered the same what you have suggested in export file as following
/u01 rw- access=srsux004,root=srsux004
cutaway
New Member

Re: Mounting Remote file system

you have only one network interface??

try to share to all for test:

vi /etc/exports
/n01 -rw
:wq!

if NFS server is not started, start it on nfs server:

/sbin/init.d/nfs.server start

on clilent, retry to mount using ip addr not the name of the server, for ex:

mount -F nfs 10.10.10.10:/n01 /n01

bye
cutaway
New Member

Re: Mounting Remote file system

>when I tried to mount file system using >following commnad
>mount -F nfs -o rsize=32768,wsize=32768 10.162.185.7:/arch /u01
>I got error message "permission denied"
>(Note: entry in exports
other question!!:
if you export on nfs server (10.162.185.7) /u01
on the client youmust mount what you share.
You must mount /u01 like this:

mount -F nfs 10.162.185.7:/u01 /u01
mehul_3
Regular Advisor

Re: Mounting Remote file system

Thanks for immediate response and I am again troubling all of you and got same error message "Permission denied" while mounting.

Regards,
Mehul
Dave Olker
Neighborhood Moderator
Solution

Re: Mounting Remote file system

Hi Mehul,

Ok, let's take this step by step.

On the NFS server, I want to see the following:

1) bdf - show me exactly which filesystem you're wanting to share
2) cat /etc/exports
3) cat /etc/xtab

Once I know the server is setup correctly then we'll move to the client.

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
mehul_3
Regular Advisor

Re: Mounting Remote file system

Thanks Dave

Pl, accept my apologies for not being reply to anyone because I am on leave.

Providing you a more information of what you expected.Pl, refer attached doc

Regards,
Mehul
Dave Olker
Neighborhood Moderator

Re: Mounting Remote file system

Hi Mehul,

# cat /etc/exports
/arch rw- access=srsux004,root=srsux004

# cat etc/xtab
/n01 -access=rw-root=srsux004
/u01 -access=rw-:access=srsux004,root=srsux004
/arch -access=rw-:access=srsux004,root=srsux004


I think the problem is the syntax you're using to export the filesystems. The "rw- access=..." looks bogus. Also, if you only want /arch exported you should get rid of the other two exported filesystems from the kernel's export table (represented by /etc/xtab).

Here is what I suggest:

1. Unexport everything

# exportfs -uav


2. Modify the /etc/exports entry for /arch

/arch -access=srsux004,root=srsux004


3. Re-export /arch

# exportfs -av


4. Verify that /arch is exported correctly

# cat /etc/xtab
/arch -access=srsux004,root=srsux004


5. Verify that the NFS server resolves the hostname srsux004 to the proper IP address used by the client to send NFS requests. It doesn't matter if you use /etc/hosts, NIS, DNS, LDAP, etc. for hostname resolution, the NFS server needs to resolve the string "srsux004" to the correct IP address in order to grant the mount request and subsequent NFS requests.

Once you've done all this, try mounting the filesystem again from srsux004. If it fails, do a cut/paste of the screen and let me see exactly what it says, including your mount command syntax.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Steven E. Protter
Exalted Contributor

Re: Mounting Remote file system

Shalom Mehul,

My 2 shekel.

showmount -e hostname

If the hostname is the remote host you will see exactly what folders are exported on the remote system. If they exist and there are no permissions blocks in /etc/exports, the mount should be excessive.

Hassle free way to resolve the issue? Little concerning NFS is hassle free.

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
mehul_3
Regular Advisor

Re: Mounting Remote file system

Dear dave
I did so far exactly what you have suggested but once again failed when I fire cat /etc/xtab and not a single entry found in this file. Following is the snapshot for your referance.

# cat /etc/exports
/arch-access=srsux004,root=srsux004
# cat /etc/xtab
#

Regards,
Mehul