1 2 Previous Next 15 Replies Latest reply on Feb 20, 2010 2:21 PM by benm

    SS4200-E no_root_squash

    smo989

      I have made a recent purchase of the SS4200-E with the sole purpose of running as a NFS server.  I edit the /etc/exports file to reflect the no_root_squash needed to meet my needs and it appears that the system resets this setting each time it restarts.  There has got to be a fix for this issue but I can seem to find any solution yet. 
      Any Advice?
      Thanks in advance.

        • 1. Re: SS4200-E no_root_squash
          Dan_O

          The system reverts to the original /etc/exports (and possibly other files) every reboot.  I don't know where you could hide something to do that.

          • 2. Re: SS4200-E no_root_squash
            kamalanathan

            Below steps worked for me..

            Step 1: edit /etc/exports    
            ·         / *(rw,sync,no_root_squash)    
            ·         Step 2: execute /etc/init.d/portmap restart    
            ·         Step 3: execute /etc/init.d/nfs restart    
            ·         Step 4: execute /etc/init.d/iptables stop    
            ·         Step 5: verify by executing  “showmount –e localhost”    
            step 6: Ensure that gateway ip (netstart -nr)

            • 3. Re: SS4200-E no_root_squash
              Dan_O

              Cool!  And that persists beyond reboots?

              • 4. Re: SS4200-E no_root_squash
                kamalanathan

                yes..

                 

                I just ensured with the linux team, below steps will permanantely make changes..

                Step 1: edit /etc/exports    
                ·         / *(rw,sync,no_root_squash)    
                ·         Step 2: execute /etc/init.d/portmap restart    
                ·         Step 3: execute /etc/init.d/nfs restart    


                ·         Step 4: execute /etc/init.d/iptables stop    

                                Step 5 : ·         Step 6: verify by executing  “showmount –e localhost”    
                step 6: Ensure that gateway ip (netstart -nr)

                Step 1: edit /etc/exports    
                ·         / *(rw,sync,no_root_squash)    
                ·         Step 2: execute /etc/init.d/portmap restart    
                ·         Step 3: execute /etc/init.d/nfs restart    


                ·         Step 4: execute /etc/init.d/iptables stop    

                                Step 5 : chkconfig nfs on

                                            Chkconfig portmap on

                                             Chkconfig iptables off
                ·         Step 6: verify by executing  “showmount –e localhost”    
                step 6: Ensure that gateway ip (netstart -nr)

                 

                 

                 

                • 5. Re: SS4200-E no_root_squash
                  marcosw

                  I have exactly the same no_root_squash need as the op and have tried following the instructions in response 2 and 4 but my /etc/init.d doesn't contain the executables listed.  Here is the contents of my /etc/init.d:

                   

                  S20urandom      S40bond-init    S41netplug      S50sshd         S60executord    default_ip.awk  rcS
                  S39interfaces   S40network      S50samba        S59hostnamed    cups            hotplug         zeroconf

                   

                  I believe I'm running the latest firmware, 1.1.11.32736, and nfsd is enabled and working (i.e. I can mount SS4200-e volumes from my linux boxes using nfs).

                  • 6. Re: SS4200-E no_root_squash
                    smo989

                    kamalanathan

                    I was hoping you could elaborate on this a little more. When I run step 2 below I get the following messge

                    -sh: /etc/init.d/portmap: not found

                    Further I don’t see the other files that you mention under the init.d directory.  It appears that portmap, nfs and iptables run from somewhere else.

                    Any ideas on this?

                     

                    Thanks

                    Sean

                    • 7. Re: SS4200-E no_root_squash
                      kamalanathan

                      Hello sean,

                       

                      Which OS are you using?

                       

                      make sure you have the following package installed in your OS.

                      1. portmap

                      2. NFS-utils

                      3.iptables

                       

                      Issue the below commands to know whether you have NFS packages installed in your build.

                      # rpm -qa |grep portmap

                      #rpm -qa|grep iptables

                      # rpm -qa|grep nfs

                       

                      I have RHEL 2.6 kernel machine and below lines will configure NFS setup permanently.

                      Step 1: edit /etc/exports    
                      ·         / *(rw,sync,no_root_squash)    
                      ·         Step 2: execute /etc/init.d/portmap restart    
                      ·         Step 3: execute /etc/init.d/nfs restart    

                      ·         Step 4: execute /etc/init.d/iptables stop    

                                Step 5 : chkconfig nfs on

                                             Chkconfig portmap on

                                              Chkconfig iptables off
                      ·         Step 6: verify by executing  “showmount –e localhost”    
                      step 7: Ensure that gateway ip (netstart -nr)

                       

                      Thanks,

                      kamal.

                      • 8. Re: SS4200-E no_root_squash
                        smo989

                        Linux version 2.6.19.2 (soho@lsoho059.lss.emc.com) (gcc version 4.2.1) #1 PREEMPT Tue Jun 24 04:35:38 MDT 2008

                         

                        This is the version of Linux that shipped on the unit.  I came installed with a 256MB DOM and boots from that.  I'm guessing that you were not responding to that OS when you posted your solution.

                        Thanks

                        • 9. Re: SS4200-E no_root_squash
                          benm

                          I'm very interested in the solution for  1.1.11.32736.  The file /mnt/soho_storage/config/exports apparently regenerates on reboot.

                           

                          I wonder if it's possible to edit the script that regenerates this file.  Anyone know where it is?

                           

                          Message was edited by: benm See the next page of comments for my complete solution to this problem.

                          • 10. Re: SS4200-E no_root_squash
                            benm

                            Since there's no "/etc/init.d/nfs restart" script with my firmware, I can instead just type "exportfs -a" after adding no_root_squash to exports.  This gets makes it work until the next reboot.

                            • 11. Re: SS4200-E no_root_squash
                              kamalanathan

                              oh really!..

                              Does it work for you?


                              Anyways, thanks for sharing the info!

                              • 12. Re: SS4200-E no_root_squash
                                benm

                                Well, it's only a temporary workaround.  I'm still looking for a way to do this automatically so that it works after a configuration change or reboot.

                                 

                                Message was edited by: benm **See the next page of comments for my complete solution to this problem.**

                                • 13. Re: SS4200-E no_root_squash
                                  smo989

                                  Benm

                                  That works!  Thanks for posting the answer.  Please let us know if you run across a more permanent solution.

                                  1 2 Previous Next