[root@ceph1 cluster]# ceph osd pool create fs_data 128
pool 'fs_data' created
[root@ceph1 cluster]# ceph osd pool create fs_metadata 128
pool 'fs_metadata' created
[root@ceph1 cluster]#
[root@ceph1 cluster]# ceph fs new cephfs fs_metadata fs_data
new fs with metadata pool 4 and data pool 3
[root@ceph1 cluster]#
[root@ceph1 ~]# mkdir /cephfs_test
[root@ceph1 /]# cat /etc/ceph/ceph.client.admin.keyring
[client.admin]
key = AQAMEkJZoYrvKRAAZTrXGSCvxiZ4NkVxoq8JHQ==
caps mds = "allow *"
caps mon = "allow *"
caps osd = "allow *"
[root@ceph1 /]# mount -t ceph xx.xx.xx.xx:6789:/ /cephfs_test -o name=admin,secret=AQAMEkJZoYrvKRAAZTrXGSCvxiZ4NkVxoq8JHQ==
[root@ceph1 /]#
[root@ceph1 /]# cd /cephfs_test
[root@ceph1 cephfs_test]# ls
[root@ceph1 cephfs_test]# mkdir 20170620
[root@ceph1 cephfs_test]# ls
20170620
[root@ceph1 cephfs_test]# rm -rf 20170620/
[root@ceph1 cephfs_test]# ls
[root@ceph1 cephfs_test]#
[root@ceph01 /]# mount -t ceph xx.xx.xx.xx:6789:/ /kernel_cephfs -o name=admin,secretfile=/etc/ceph/admin.secret
[root@ceph1 ~]# yum install ceph-fuse
Loaded plugins: fastestmirror, langpacks, priorities
base | 3.6 kB 00:00:00
ceph | 2.9 kB 00:00:00
ceph-noarch | 2.9 kB 00:00:00
epel | 4.3 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/4): extras/x86_64/primary_db | 168 kB 00:00:02
(2/4): epel/x86_64/updateinfo | 808 kB 00:00:08
(3/4): epel/x86_64/primary_db | 4.7 MB 00:00:29
(4/4): updates/x86_64/primary_db | 6.4 MB 00:00:35
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package ceph-fuse.x86_64 1:10.2.3-0.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================== Package Arch Version Repository Size
=====================================================================================
Installing:
ceph-fuse x86_64 1:10.2.3-0.el7 ceph 1.8 M
Transaction Summary
====================================================================================Install 1 Package
Total download size: 1.8 M
Installed size: 6.4 M
Is this ok [y/d/N]: y
Downloading packages:
ceph-fuse-10.2.3-0.el7.x86_64.rpm | 1.8 MB 00:00:06
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:ceph-fuse-10.2.3-0.el7.x86_64 1/1
Verifying : 1:ceph-fuse-10.2.3-0.el7.x86_64 1/1
Installed:
ceph-fuse.x86_64 1:10.2.3-0.el7
Complete!
[root@ceph1 ~]#
[root@ceph1 ~]# ceph-fuse -m xx.xx.xx.xx:6789 /fuse_test
ceph-fuse[5296]: starting ceph client
2017-06-21 11:04:55.735708 7fb6dd294ec0 -1 init, newargv = 0x7fb6e895c7e0 newargc=11
ceph-fuse[5296]: starting fuse
[root@ceph1 ~]#