分布式存储系统之Ceph集群CephFS基础使用( 八 )

提示:可以看到使用mount -a 读取配置文件也是可以正常挂载,说明我们配置文件中的内容没有问题;
卸载文件系统的方式
第一种我们可以使用umount 挂载点来实现卸载;
[root@ceph-admin ~]# mount |tail -1ceph-fuse on /mnt type fuse.ceph-fuse (rw,relatime,user_id=0,group_id=0,allow_other)[root@ceph-admin ~]# ll /mnttotal 3392-rw-r--r-- 1 root root 961243 Oct  6 22:17 day.jpg-rw-r--r-- 1 root root 961243 Oct  6 22:17 default.jpg-rw-r--r-- 1 root root 980265 Oct  6 22:17 morning.jpg-rw-r--r-- 1 root root 569714 Oct  6 22:17 night.jpg[root@ceph-admin ~]# umount /mnt[root@ceph-admin ~]# ll /mnttotal 0[root@ceph-admin ~]#第二种我们使用fusermount -u 挂载点来卸载
[root@ceph-admin ~]# mount -aceph-fuse[9717]: starting ceph client2022-10-06 23:40:55.540 7f169dbc4c00 -1 init, newargv = 0x55859177fa40 newargc=9ceph-fuse[9717]: starting fuse[root@ceph-admin ~]# ll /mnttotal 3392-rw-r--r-- 1 root root 961243 Oct  6 22:17 day.jpg-rw-r--r-- 1 root root 961243 Oct  6 22:17 default.jpg-rw-r--r-- 1 root root 980265 Oct  6 22:17 morning.jpg-rw-r--r-- 1 root root 569714 Oct  6 22:17 night.jpg[root@ceph-admin ~]# fusermount -u /mnt[root@ceph-admin ~]# ll /mnttotal 0[root@ceph-admin ~]#ok,到此基于用户空间fuse方式挂载cephfs的测试就完成了;
【分布式存储系统之Ceph集群CephFS基础使用】

经验总结扩展阅读