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
Table of contents Preface Solution: Step 1 Step 2...
Achieve results Implementation Code html <div ...
Table of contents Zabbix monitors Nginx Zabbix mo...
<br />We have always emphasized semantics in...
This article shares the specific code of vue echa...
Step 1: Enter the directory: cd /etc/mysql, view ...
Official documentation: JSON Functions Name Descr...
This article shares 3 methods to achieve the spec...
I am currently learning about Redis and container...
1: Download from mysql official website https://d...
<br />Not long ago, due to business needs, I...
question: Recently, garbled data appeared when de...
JSONObject is just a data structure, which can be...
Directly code: select 'bigint unsigned' a...
During the work development process, a requiremen...