Re: Exporting existing NFS share to new server is not working (4471 Views)
Reply
Super Advisor
senthil_kumar_1
Posts: 901
Registered: ‎03-02-2009
Message 1 of 6 (4,498 Views)
Accepted Solution

Exporting existing NFS share to new server is not working

Hi All,

 

I would like to export some NFS shares from HPUX to Linux, The same share already has been exported to some Linux server...

 

Existing NFS configuratoin file "/etc/exports" of HPUX server:

 

#more /etc/exports
/cdrom -ro
/data -access=ccm_clients
/appl -access=ccm_clients
/versant -ro
/usr/local/bin -access=ccm_clients
/data_tcs -access=ccm_clients
/data_63 -access=ccm_clients:xxxxxxas1109
#/pctcp -access=ccm_client:xxxxxxas1109
#/home -access=ccm_clients:nt_nfs_clients:xxxxcms:,root=xxxxcms
/home -access=ccm_clients
/ccm_admin -access=ccm_clients
/orders -access=ccm_clients:xxxxxxas1109
/orders_1 -access=ccm_clients
/projects -access=ccm_clients:xxxxxxas1109
/data_tcs -access=ccm_clients:xxxxxxas1109
/home -access=ccm_clients:xxxxxxas1109:xxxxxxcpm500:xxxxxxsygdev

 

 

Now I have added new server "xxxxxxxsyguat" to /home share.

 

For example:

 

#more /etc/exports
/cdrom -ro
/data -access=ccm_clients
/appl -access=ccm_clients
/versant -ro
/usr/local/bin -access=ccm_clients
/data_tcs -access=ccm_clients
/data_63 -access=ccm_clients:xxxxxxas1109
#/pctcp -access=ccm_client:xxxxxxas1109
#/home -access=ccm_clients:nt_nfs_clients:xxxxcms:,root=xxxxcms
/home -access=ccm_clients
/ccm_admin -access=ccm_clients
/orders -access=ccm_clients:xxxxxxas1109
/orders_1 -access=ccm_clients
/projects -access=ccm_clients:xxxxxxas1109
/data_tcs -access=ccm_clients:xxxxxxas1109
/home -access=ccm_clients:xxxxxxas1109:xxxxxxcpm500:xxxxxxsygdev:xxxxxxsyguat

 

 

Then I ran following command on HPUX:

 

#exportfs -a
exportfs error: /orders: Too many levels of remote in path
exportfs error: /projects: Too many levels of remote in path

 

 

Now I tried mounting the share /home from "xxxxxxxxxxsyguat"...

 

# mount xxxxxHPUX:/home /home
mount: xxxxxHPUX:/home failed, reason given by server: Permission denied

 

 

Please find the output of the command "showmount -a" of HPUX server

 

 

#showmount -e
export list for xxxxxHPUX:
/cdrom         (everyone)
/appl          ccm_clients
/versant       (everyone)
/usr/local/bin ccm_clients
/data_63       ccm_clients,xxxxxxas1109
/ccm_admin     ccm_clients
/orders_1      ccm_clients
/data_tcs      ccm_clients,xxxxxxxas1109
/home          ccm_clients,xxxxxxxas1109,xxxxxxxcpm500,xxxxxxxsygdev,xxxxxxxsyguat

 

 

 

/home is accessible from all given servers other than "xxxxxxxsyguat"

 

How to resolve the issue?

 

 

 

 

Acclaimed Contributor
Dennis Handly
Posts: 25,210
Registered: ‎03-06-2006
Message 2 of 6 (4,490 Views)

Re: Exporting existing NFS share to new server is not working

Any reason you have two lines with /home?

Do you need to have the FQDN for the access list?  Or do it for the new machine?

Super Advisor
senthil_kumar_1
Posts: 901
Registered: ‎03-02-2009
Message 3 of 6 (4,485 Views)

Re: Exporting existing NFS share to new server is not working

Hi Dennis,


Any reason you have two lines with /home?


No reason, It was created earlier, we are just following that...


Do you need to have the FQDN for the access list?

I dont know..



do it for the new machine?


I have mentioned FQDN of new machine.


For example,

#more /etc/exports
/cdrom -ro
/data -access=ccm_clients
/appl -access=ccm_clients
/versant -ro
/usr/local/bin -access=ccm_clients
/data_tcs -access=ccm_clients
/data_63 -access=ccm_clients:xxxxxxas1109
#/pctcp -access=ccm_client:xxxxxxas1109
#/home -access=ccm_clients:nt_nfs_clients:xxxxcms:,root=xxxxcms
/home -access=ccm_clients
/ccm_admin -access=ccm_clients
/orders -access=ccm_clients:xxxxxxas1109
/orders_1 -access=ccm_clients
/projects -access=ccm_clients:xxxxxxas1109
/data_tcs -access=ccm_clients:xxxxxxas1109
/home -access=ccm_clients:xxxxxxas1109:xxxxxxcpm500:xxxxxxsygdev:xxxxxxxsyguat.abc.xyz.com




But still I am getting same error...


My Question:

1)Why the following error is coming whenever I ran the command "exportfs -a"

#exportfs -a
exportfs error: /orders: Too many levels of remote in path
exportfs error: /projects: Too many levels of remote in path


This could be the reason?
Acclaimed Contributor
Dennis Handly
Posts: 25,210
Registered: ‎03-06-2006
Message 4 of 6 (4,480 Views)

Re: Exporting existing NFS share to new server is not working

>It was created earlier, we are just following that...

 

I'm suggesting that you comment out the first one, due to your "Too many levels of remote in path" errors.

But I don't see duplicates for those filesystems.

 

>This could be the reason?

 

You could move the new /home before those entries and maybe it won't be skipped?

But your "showmount -e" output shows it changed?  But not those two with error messages.

Anything in /etc/xtab?

 

Also what does /etc/fstab have for /orders & /projects?

 

 

HP Pro
Dave Olker
Posts: 1,432
Registered: ‎10-10-2002
Message 5 of 6 (4,477 Views)

Re: Exporting existing NFS share to new server is not working


senthil_kumar_1 wrote:

My Question:

1)Why the following error is coming whenever I ran the command "exportfs -a"

#exportfs -a
exportfs error: /orders: Too many levels of remote in path
exportfs error: /projects: Too many levels of remote in path


This could be the reason?


The "Too many levels of remote in path" error means you're trying to export filesystems that are NFS-mounted from another system.  You cannot mount an NFS filesystem from one server and then try to share/export that NFS-mounted filesystem to a group of other systems.  On 11i v3 we updated the error to be a bit more clear:

 

# bdf -t nfs
Filesystem          kbytes    used   avail %used Mounted on
192.1.1.82:/vol/ignite
                   209715200 109362036 100353164   52% /ignite

 

# share /ignite
share_nfs: Cannot share remote filesystem: /ignite

 

I'm guessing on your system both /orders and /projects are NFS mounted filesystems.  That's why you're getting that error. 

 

By the way, all of this has nothing to do with why you're not able to correctly share /home.  For the /home issue, it's not clear to me what is working and what exactly is failing.  You definitely should *not* have multiple /etc/exports entries for the same filesystem.  Once that is corrected and you're using only a single /home entry, do things work as desired?

 

Regards,

 

Dave

Esteemed Contributor
Ismail Azad
Posts: 487
Registered: ‎11-09-2010
Message 6 of 6 (4,471 Views)

Re: Exporting existing NFS share to new server is not working

Hi,

 

Adding to Dave just comes the concept of the *dual role hosts* which means that aNFS  server can act as both server and as a NFS client with one restriction. There is no problem if a server is an NFS server and an NFS client at the same time which apparently are the default configurations but this functionality is limited to the fact that you cannot --reshare--  a filesystem. This is prohibited by the NFS protocol on HPUX. This means that if you have shared a filesystem from a server, then a client that has got the NFS share cannot act as a NFS server for that filesystem.

 

Regards

Ismail Azad

Read, read and read... Then read again until you read "between the lines".....
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.