Operating System - HP-UX
1748138 Members
3565 Online
108758 Solutions
New Discussion

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

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

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?

 

 

 

 

5 REPLIES 5
Dennis Handly
Acclaimed Contributor

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?

senthil_kumar_1
Super Advisor

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?
Dennis Handly
Acclaimed Contributor

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?

 

 

Dave Olker
HPE Pro
Solution

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

I work for HPE

[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Ismail Azad
Esteemed Contributor

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".....