Description and use of NFS-Ganesha3 image 1. Introduction to NFS-GaneshaNFS-Ganesha is a user-mode file server that supports the NFS protocol (NFSv3/NFSv4, NFSv4.1). It provides a FUSE (Filesystem in Userspace) compatible interface FSAL (File System Abstraction Layer) for Unix and Unix-like operating systems. In this way, users can access their own storage devices through NFS Client. The NFS-Ganesha service allows users to access data in user mode through FSAL without frequent interaction with the kernel, greatly reducing the response time for data reading. 2. Configuration of NFS-Ganesha
3. Use of NFS-Ganesha Container3.1 NFS-Ganesha server construction1. If the host has nfs service, first shut down the nfs service on the host systemctl stop nfs systemctl disable nfs and rpc related services or directly yum remove nfs-utils 2. Run the container docker run -d --net=host --privileged=true --restart=always --name=nfs_server -v /data/k8s:/export elimuzi/nfs-ganesha
3. Optional: To modify the default configuration The configuration file can use the default one, but if you want to modify the default configuration, in the ganesha image, the startup script of nfs-ganesha is /start.sh. If you need to modify it, you can copy this file first. docker cp nfs_server:/start.sh . After modification, copy it back to the container docker cp start.sh nfs_server:/start.sh docker restart nfs_server # Restart the container 3.2 NFS-Ganesha Client UsageCheck the server host IP address Check the client's IP address 3.showmount view showmount -e 192.168.18.143 4. Mounting nfs3 The mount command uses nfs3 by default mount 192.168.18.143:/export /mnt mount #View the mount 5. Mounting nfs4 mount.nfs4 192.168.18.143:/ /mnt #nfs4 uses / instead of /export IV. References NFS-Ganesha source code address: https://github.com/nfs-ganesha/nfs-ganesha This is the end of this article about using Docker's NFS-Ganesha image to build an nfs server. For more information about building an nfs server with Docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Summary of naming conventions for HTML and CSS
background: In MySQL, if there is a limited level...
Theoretically, the memory used by MySQL = global ...
1. Download First of all, I would like to recomme...
Use the browser (webdriver)-based selenium techno...
Managing disk space is an important daily task fo...
The input box always displays the input history wh...
To achieve the plus sign effect shown below: To a...
Table of contents 1 Test Cases 2 JS array dedupli...
Vue version, copy it to the file and use it <t...
Some usage of float Left suspension: float:left; ...
PHP related paths in Ubuntu environment PHP path ...
This article shares the specific code of js to im...
This article explains the difference between arro...
Using the official MySQL image requires some modi...
Table of contents 1. Core 1. Get the Dom node 2. ...