当前位置:网站首页>NFS shared storage service
NFS shared storage service
2022-07-22 05:21:00 【Now a lemon】
List of articles
One 、NFS Service concept
NFS It's based on TCP/IP Transmitted network file system protocol . By using NFS agreement , The client can access the shared resources in the remote server as if it were a local directory .
For most load balanced clusters , Use NFS Protocol to share data storage is a common practice ,NFS It's also NAS A protocol that storage devices must support . But because of NFS There is no user authentication mechanism , And the data is transmitted in clear text on the network , So the security is very poor , Generally, it can only be used in LAN .
Two 、NFS Service dependent packages
NFS The implementation of a service depends on RPC(Remote Process Call, Remote procedure call ) Mechanism , Mapping to the local process . So you need to install nfs-utils、rpcbind software package To provide NFS Contributing services , Former used NFS Share publishing and access , The latter is used RPC Support .
3、 ... and 、NFS To configure
NFS The configuration file is /etc/exports
The format is :
Shared directory location Client address ( Permission options )
1. install nfs-utils、rpcbind software package
2. Set up shared directory
Create a shared directory , Give permission to share directories
Shared directory location Client address ( Permission options )
The client address can be the host name 、IP Address 、 Segment address , Allow to use "*“、”?" wildcard .
rw Allow reading and writing ,ro Represents read-only
sync: Write to memory and hard disk synchronously
no_root_squash: Indicates that the client is represented by root Identity access is given to local people root jurisdiction ( The default is root_squash)
root_squash: Indicates that the client uses root When users access the shared directory , take root Users are mapped to anonymous users
3. start-up rpcbind and nfs service
start-up rpcbind、nfs service , Set to boot
Check whether the port is on
Check out the nfs share directory
Four 、 verification
Open another host to check 131 Shared directory of address
Create a directory for the shared directory to mount
mount
Set as permanently mounted
stay data Create files in directory , Verify whether
Generate files in the shared directory
summary
This article mainly talks about NFS Installation steps of , Install first nfs and rpcbind Software , Then modify the configuration file to set the sharing , Then create a shared directory , Finally, open the service , The client can access the shared directory .
边栏推荐
- [chestnut sugar GIS] record two stupid records - desktop computer has no signal or does not light up
- Unity URP forward rendering process and obtaining screen space UVs and depth
- Eye of depth (XV) -- derivative
- Merge sort solves the quantity problem of reverse order pairs
- Win11如何增强麦克风?Win11增强麦克风的设置
- Introduction to excellent verilog/fpga open source project (XXIX) - open source website
- Write bootloader from 0 - bootloader relocates app
- [chestnut sugar GIS] bat - how to delete data with the same suffix under subfolders
- pycocotools安装方法----一步到位~
- PL marker (ACL 2022) - New SOTA of information extraction (ner+re), paper analysis and code browsing
猜你喜欢
Development direction and problems of optaplanner
微服务技术发展
Solution of access denied for user 'root' @ 'localhost' (using password: yes)
Static setting and baking properties of unity
[chestnut sugar GIS] how do individual users of Tencent conference change their names
BraTS18——多模态MR图像脑肿瘤分割挑战赛续
Vscode add include library
The installation package cannot be downloaded due to the mismatch when PIP downloads the package: error: subprocess exited with error; error: metadata-generation-failed;
Win11如何增强麦克风?Win11增强麦克风的设置
PL-Marker(ACL 2022)——信息抽取(NER+RE)新SOTA,論文淺析與代碼瀏覽
随机推荐
Niuke.com released a new digital logic question bank! Will it lead to more volume in fpga/ic industry this year?!!
[chestnut sugar GIS] how to batch delete empty files with the same name in multiple folders
The way to practice and fight strange things: promise introduction principle and common methods
mysql数据增删改
【读书会第13期】+第二章 视频文件的封装格式
[chestnut sugar GIS] bat - how to delete data with the same suffix under subfolders
DRF -- cross domain problem solving
LeetCode-153-寻找旋转排序数组中的最小值
[300 + selected interview questions from big companies continued to share] big data operation and maintenance sharp knife interview question column (6)
手机寒冬到来,三星被迫狙杀中国手机,苹果独站山头看风景
Simple use of ormlitedb database (dependent) (Xiaobai growth record)
Win11如何增强麦克风?Win11增强麦克风的设置
Introduction of (string + memory) function
[chestnut sugar GIS] record two stupid records - desktop computer has no signal or does not light up
FTP服务与配置
MySQL storage engine
Codeforces Round #807 (Div. 2)
Common operations of windows10 system
jvm初识
CITIC branch Mobile has registered: it plans to raise 4billion yuan to create a listed enterprise for research and development of 5g in optical valley