byghis

vim configuring-nfs-ec2.txt

Sep 17th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. NFS
  2.  
  3. 1. byghis
  4. https://sites.google.com/site/edwardspc/cloud/thesis
  5.  
  6. 2. update /etc/exports
  7.  
  8. SERVER
  9.  
  10. #/media/export *(rw,insecure,no_subtree_check,no_root_squash,anonuid=0,anongid=0)
  11. /media/export *(rw,all_squash,anonuid=1000,anongid=1000)
  12.  
  13. --
  14. root@domU-12-31-39-0A-15-E0:~/scs-deploysystem/src/lua/scs/demos/deployer# cat /etc/default/nfs-kernel-server
  15. # Number of servers to start up
  16. # To disable nfsv4 on the server, specify '--no-nfs-version 4' here
  17. RPCNFSDCOUNT=8
  18.  
  19. # Runtime priority of server (see nice(1))
  20. RPCNFSDPRIORITY=0
  21.  
  22. # Options for rpc.mountd.
  23. # If you have a port-based firewall, you might want to set up
  24. # a fixed port here using the --port option. For more information,
  25. # see rpc.mountd(8) or http://wiki.debian.org/?SecuringNFS
  26. RPCMOUNTDOPTS=--manage-gids
  27.  
  28. # Do you want to start the svcgssd daemon? It is only required for Kerberos
  29. # exports. Valid alternatives are "yes" and "no"; the default is "no".
  30. NEED_SVCGSSD=no
  31.  
  32. # Options for rpc.svcgssd.
  33. RPCSVCGSSDOPTS=
  34. --
  35. root@domU-12-31-39-0A-15-E0:~/scs-deploysystem/src/lua/scs/demos/deployer# cat /etc/default/nfs-common
  36. # If you do not set values for the NEED_ options, they will be attempted
  37. # autodetected; this should be sufficient for most people. Valid alternatives
  38. # for the NEED_ options are "yes" and "no".
  39.  
  40. # Do you want to start the statd daemon? It is not needed for NFSv4.
  41. NEED_STATD=
  42.  
  43. # Options for rpc.statd.
  44. # Should rpc.statd listen on a specific port? This is especially useful
  45. # when you have a port-based firewall. To use a fixed port, set this
  46. # this variable to a statd argument like: "--port 4000 --outgoing-port 4001".
  47. # For more information, see rpc.statd(8) or http://wiki.debian.org/?SecuringNFS
  48. STATDOPTS=
  49.  
  50. # Do you want to start the idmapd daemon? It is only needed for NFSv4.
  51. NEED_IDMAPD=yes
  52.  
  53. # Do you want to start the gssd daemon? It is required for Kerberos mounts.
  54. NEED_GSSD=no
  55.  
  56. CLIENT
  57. root@ip-10-245-222-212:/tmp# cat /etc/default/nfs-common
  58. # If you do not set values for the NEED_ options, they will be attempted
  59. # autodetected; this should be sufficient for most people. Valid alternatives
  60. # for the NEED_ options are "yes" and "no".
  61.  
  62. # Do you want to start the statd daemon? It is not needed for NFSv4.
  63. NEED_STATD=
  64.  
  65. # Options for rpc.statd.
  66. # Should rpc.statd listen on a specific port? This is especially useful
  67. # when you have a port-based firewall. To use a fixed port, set this
  68. # this variable to a statd argument like: "--port 4000 --outgoing-port 4001".
  69. # For more information, see rpc.statd(8) or http://wiki.debian.org/?SecuringNFS
  70. STATDOPTS=
  71.  
  72. # Do you want to start the idmapd daemon? It is only needed for NFSv4.
  73. NEED_IDMAPD=yes
  74.  
  75. # Do you want to start the gssd daemon? It is required for Kerberos mounts.
  76. NEED_GSSD=no
  77.  
  78.  
  79. 3. update
  80. # /etc/init.d/nfs-kernel-server restart
  81. # restart idmapd
  82.  
  83. 4. mount 10.211.22.46:/media/export /tmp/
  84.  
  85. 5. Update /etc/hosts
  86.  
  87. 6. Update file
  88. /root/scs-deploysystem/src/lua/luarocks/fs/unix.lua
  89. > ok = fs_execute_string("gunzip -c "..archive.."|tar --no-same-owner -xf -") --line 354 aprox
Advertisement
Add Comment
Please, Sign In to add comment