提示:可以看到我们使用mount -a是可以直接将cephfs挂载至/mnt之上,说明我们配置文件内容没有问题;ok,到此基于内核空间模块(ceph.ko)挂载cephfs文件系统的测试就完成了,接下来我们来说说使用用户空间fuse挂载cephfs;
FUSE挂载CephFS
FUSE,全称Filesystem in Userspace,用于非特权用户能够无需操作内核而创建文件系统;客户端主机环境准备,安装ceph-fuse程序包,获取到客户端账号的keyring文件和ceph.conf配置文件即可;这里就不需要ceph-common;
[root@ceph-admin ~]# yum install -y ceph-fuseLoaded plugins: fastestmirrorRepository epel is listed more than once in the configurationRepository epel-debuginfo is listed more than once in the configurationRepository epel-source is listed more than once in the configurationLoading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.comCeph | 1.5 kB 00:00:00Ceph-noarch | 1.5 kB 00:00:00base | 3.6 kB 00:00:00ceph-source | 1.5 kB 00:00:00epel | 4.7 kB 00:00:00extras | 2.9 kB 00:00:00updates | 2.9 kB 00:00:00(1/4): extras/7/x86_64/primary_db | 249 kB 00:00:00(2/4): epel/x86_64/updateinfo | 1.1 MB 00:00:00(3/4): epel/x86_64/primary_db | 7.0 MB 00:00:01(4/4): updates/7/x86_64/primary_db | 17 MB 00:00:02Resolving Dependencies--> Running transaction check---> Package ceph-fuse.x86_64 2:13.2.10-0.el7 will be installed--> Processing Dependency: fuse for package: 2:ceph-fuse-13.2.10-0.el7.x86_64--> Running transaction check---> Package fuse.x86_64 0:2.9.2-11.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================================================================== Package Arch Version Repository Size==================================================================================================================================Installing: ceph-fuse x86_64 2:13.2.10-0.el7 Ceph 490 kInstalling for dependencies: fuse x86_64 2.9.2-11.el7 base 86 kTransaction Summary==================================================================================================================================Install 1 Package (+1 Dependent package)Total download size: 576 kInstalled size: 1.6 MDownloading packages:(1/2): fuse-2.9.2-11.el7.x86_64.rpm | 86 kB 00:00:00(2/2): ceph-fuse-13.2.10-0.el7.x86_64.rpm | 490 kB 00:00:15----------------------------------------------------------------------------------------------------------------------------------Total 37 kB/s | 576 kB 00:00:15Running transaction checkRunning transaction testTransaction test succeededRunning transaction Installing : fuse-2.9.2-11.el7.x86_64 1/2 Installing : 2:ceph-fuse-13.2.10-0.el7.x86_64 2/2 Verifying : 2:ceph-fuse-13.2.10-0.el7.x86_64 1/2 Verifying : fuse-2.9.2-11.el7.x86_64 2/2 Installed: ceph-fuse.x86_64 2:13.2.10-0.el7 Dependency Installed: fuse.x86_64 0:2.9.2-11.el7 Complete![root@ceph-admin ~]#
经验总结扩展阅读
- 日光性皮炎怎么办
- △fhm什么意思
- 海信电视系统如何还原
- 华为手机怎么切换小米操作系统
- qq戳一戳怎么设置
- 手机怎么自己刷机,恢复系统(手机可以自己刷机吗)
- 电脑刷机怎么操作(电脑刷机重装系统)
- 分布式存储系统之Ceph集群RBD基础使用
- 荣耀magic3支持鸿蒙系统吗_荣耀magic3能升级鸿蒙吗
- 微信点餐系统怎么做