华为云存储实验

桶的应用

sfs实验

bash 复制代码
[root@ecs-linux ~]# rpm -qa | grep nfs
libnfsidmap-0.25-19.el7.x86_64
nfs-utils-1.3.0-0.68.el7.2.x86_64
[root@ecs-linux ~]# mkdir /mnt/sfs_turbo
[root@ecs-linux ~]# mount -t nfs -o vers=3,timeo=600,noresvport,nolock,tcp 192.168.0.2:/ /mnt/sfs_turbo
[root@ecs-linux ~]# df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  909M     0  909M   0% /dev
tmpfs          tmpfs     919M     0  919M   0% /dev/shm
tmpfs          tmpfs     919M  8.6M  911M   1% /run
tmpfs          tmpfs     919M     0  919M   0% /sys/fs/cgroup
/dev/vda1      ext4       40G  2.9G   35G   8% /
tmpfs          tmpfs     184M     0  184M   0% /run/user/0
192.168.0.2:/  nfs       500G     0  500G   0% /mnt/sfs_turbo
[root@ecs-linux ~]# cd /mnt/sfs_turbo/
[root@ecs-linux sfs_turbo]# ls
[root@ecs-linux sfs_turbo]# touch huawei_cloud
[root@ecs-linux sfs_turbo]# ls
huawei_cloud
[root@ecs-linux sfs_turbo]# vi /etc/fstab
[root@ecs-linux sfs_turbo]# cd
[root@ecs-linux ~]# umount /mnt/sfs_turbo
[root@ecs-linux ~]# mount -a
mount.nfs: Failed to resolve server 0ca03d42-38ac-4df2-86c3-48b900df47d6.sfsturbo.internal: Name or service not known
mount.nfs: Operation already in progress
[root@ecs-linux ~]# df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  909M     0  909M   0% /dev
tmpfs          tmpfs     919M     0  919M   0% /dev/shm
tmpfs          tmpfs     919M  8.6M  911M   1% /run
tmpfs          tmpfs     919M     0  919M   0% /sys/fs/cgroup
/dev/vda1      ext4       40G  2.9G   35G   8% /
tmpfs          tmpfs     184M     0  184M   0% /run/user/0
[root@ecs-linux ~]# vi /etc/fstab
[root@ecs-linux ~]# vi /etc/fstab
[root@ecs-linux ~]# umount /mnt/sfs_turbo
umount: /mnt/sfs_turbo: not mounted
[root@ecs-linux ~]# mount -a
[root@ecs-linux ~]# df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  909M     0  909M   0% /dev
tmpfs          tmpfs     919M     0  919M   0% /dev/shm
tmpfs          tmpfs     919M  8.6M  911M   1% /run
tmpfs          tmpfs     919M     0  919M   0% /sys/fs/cgroup
/dev/vda1      ext4       40G  2.9G   35G   8% /
tmpfs          tmpfs     184M     0  184M   0% /run/user/0
192.168.0.2:/  nfs       500G     0  500G   0% /mnt/sfs_turbo
[root@ecs-linux ~]# cd /mnt/sfs_turbo/
[root@ecs-linux sfs_turbo]# ls
huawei_cloud
[root@ecs-linux sfs_turbo]# vi huawei_cloud
[root@ecs-linux sfs_turbo]# cat huawei_cloud
"海上生明月"

d

root@ecs-linux sfs_turbo# cat huawei_cloud

"海上生明月"

复制代码
相关推荐
月夏4 小时前
10 万行全表扫描抓个正着:第一次给 MySQL 加索引
mysql·性能优化
FungLeo5 小时前
FengCMS · PHP+MySQL 升级实录 · 数据库驱动封装:mysqli 预处理与 affected_rows 关闭后变 -1 的坑
数据库·mysql·php·工程实践·fengcms
always20226 小时前
AI运行时 · 11 - Serverless API 网关:冷启动、流量路由、Autoscaler、函数生命周期
网络·人工智能·serverless
djjjx.7 小时前
Mysql数据库基础篇(十三):图解 MySQL 索引底层原理与事务隔离级别
数据库·mysql
神一样的老师7 小时前
用 FCU1501 双网口打通两个不同网段:IP 转发 + NAT 实战
网络·网络协议·tcp/ip
jipinxiaofeihua7 小时前
(文章6) 03章-C++文件操作(下)
linux·运维·网络
钱栈up11 小时前
现场部署6个服务菜单全挂:根因不在后端,在前端那个环境变量
mysql·nginx
FungLeo16 小时前
FengCMS · PHP+MySQL 升级实录 ·双数据库验证:MySQL8.4与MariaDB 10.11的兼容矩阵
数据库·mysql·php·工程实践·fengcms
keepquietl18 小时前
UDS on CAN 入门(6):诊断响应要等多久?读懂 P2、P2* 和 S3
网络·网络协议
XW96325818 小时前
除湿机行业组织能力与人才地图报告
大数据·服务器·网络·数据结构·数据库·人工智能