Advertisement
ffilz

export config

Nov 13th, 2017
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.28 KB | None | 0 0
  1. Export Path and Pseudo Configuration and Use
  2.  
  3. EXPORT and mount examples with mount_path_pseudo = false
  4.  
  5. Path Pseudo Tag Mechanism Mount
  6. /export/test1 /export/test1 test1 v3 Path mount -o vers=3 server:/export/test1
  7. /export/test1 /export/test1 test1 v3 Tag mount -o vers=3 server:test1
  8. /export/test1 /export/test1 test1 v4 Pseudo mount -o vers=4 server:/export/test1
  9. / /export/ceph1 ceph1 v3 Path mount -o vers=3 server:/
  10. / /export/ceph1 ceph1 v3 Tag mount -o vers=3 server:ceph1
  11. / /export/ceph1 ceph1 v4 Pseudo mount -o vers=4 server:/export/ceph1
  12. / /export/ceph2 ceph2 v3 Path not accessible
  13. / /export/ceph2 ceph2 v3 Tag mount -o vers=3 server:ceph2
  14. / /export/ceph2 ceph2 v4 Pseudo mount -o vers=4 server:/export/ceph2
  15.  
  16. EXPORT and mount examples with mount_path_pseudo = true
  17.  
  18. Path Pseudo Tag Mechanism Mount
  19. /export/test1 /export/test1 test1 v3 Pseudo mount -o vers=3 server:/export/test1
  20. /export/test1 /export/test1 test1 v3 Tag mount -o vers=3 server:test1
  21. /export/test1 /export/test1 test1 v4 Pseudo mount -o vers=4 server:/export/test1
  22. / /export/ceph1 ceph1 v3 Pseudo mount -o vers=3 server:/export/ceph1
  23. / /export/ceph1 ceph1 v3 Tag mount -o vers=3 server:ceph1
  24. / /export/ceph1 ceph1 v4 Pseudo mount -o vers=4 server:/export/ceph1
  25. / /export/ceph2 ceph2 v3 Pseudo mount -o vers=3 server:/export/ceph2
  26. / /export/ceph2 ceph2 v3 Tag mount -o vers=3 server:ceph2
  27. / /export/ceph2 ceph2 v4 Pseudo mount -o vers=4 server:/export/ceph2
  28.  
  29. Ganesha exports are configured somewhat more flexibly than
  30. other NFS servers. This document is intended to help understand
  31. the namespace aspects of Ganesha export configuration.
  32.  
  33. First, it is highly recommended that the following option be set in
  34. the NFS_CORE_PARAM block:
  35.  
  36. mount_path_pseudo = true;
  37.  
  38. This option will make NFS v3 and NFS v4.x mounts both use the same
  39. server side path to reach an export, for example:
  40.  
  41. mount -o vers=3 192.168.0.1:/export /mnt
  42. mount -o vers=4 192.168.0.1:/export /mnt
  43.  
  44. Without this option, NFS v3 mounts use the Path option and NFS v4.x
  45. mounts use the Pseudo option.
  46.  
  47. The Path option instructs Ganesha where to find the export. For
  48. the VFS FSAL, this is the location within the server's namespace.
  49. For other FSALs, it may be the location within the filesystem
  50. managed by that FSAL's namespace. For example, if the CEPH FSAL
  51. is used to export an entire CephFS volume, Path would be /.
  52.  
  53. The Pseudo option instructs Ganesha where to place the export within
  54. NFS v4's pseudo file system namespace. NFS v4 specifies the server may
  55. construct a pseudo namespace that may not correspond to any actual
  56. locations of exports, and portions of that pseudo filesystem may
  57. exist only within the realm of the NFS server and not correspond
  58. to any physical directories. Further, an NFS v4 server places all
  59. its exports within a single namespace. It is possible to have a
  60. single export exported as the pseudo filesystem root, but it is much
  61. more common to have multiple exports placed in the pseudo filesystem.
  62. With a traditional VFS, often the Pseudo location is the same as the
  63. Path location, but again, returning to the example CephFS export
  64. with "/" as the Path, if multiple exports are desired, the export
  65. would likely have something else (for example /ceph) as the Pseudo
  66. option.
  67.  
  68. An NFS v4 client can mount the root of the pseudo file system (and
  69. in fact, under the covers this is always what happens, NFS v4 has
  70. no special MOUNT protocol, instead, there is an operation
  71. PUTROOTFH which instructs the server to navigate to the root of
  72. the pseudo filesystem, from whence LOOKUP operations are used to
  73. navigate to the directory of interest. Thus the NFS v4 mount
  74. command:
  75.  
  76. mount -o vers=4 192.168.0.1:/export /mnt
  77.  
  78. results in a PUTROOTFH followed by LOOKUP export, while
  79.  
  80. mount -o vers=4 192.168.0.1:/ceph /mnt
  81.  
  82. would result in PUTROOTFH followed by LOOKUP ceph
  83.  
  84. Without the
  85.  
  86. mount_path_pseudo = true;
  87.  
  88. option, the NFS v3 mount command to access the CephFS export would be:
  89.  
  90. mount -o vers=3 192.168.0.1:/ /mnt
  91.  
  92. Note also that if several CephFS volumes were exported, all the
  93. exports might have the same Path (/). Without the mount_path_pseudo
  94. option, only the first would be accessible to NFS v3 mounts (unless
  95. the obscure Tag export option was used).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement