标签:src href creat ted 位置 微软雅黑 fuse new 服务器
1 [root@deploy ~]# su - manager 2 [manager@deploy ~]$ cd my-cluster/ 3 [manager@deploy my-cluster]$ ssh node1 sudo ceph -s
1 [root@deploy ~]# su - manager 2 [manager@deploy ~]$ cd my-cluster/ 3 [manager@deploy my-cluster]$ ssh node1 sudo ceph mds stat #查看mds信息 4 , 1 up:standby
1 [manager@deploy my-cluster]$ ssh node1 sudo ceph osd pool create cephfs_data 16 16 #创建data pool 2 [manager@deploy my-cluster]$ ssh node1 sudo ceph osd pool create cephfs_metadata 16 16 #创建metadata pool 3 [manager@deploy my-cluster]$ ssh node1 sudo ceph fs new cephfs cephfs_metadata cephfs_data #创建cephfs 4 [manager@deploy my-cluster]$ ssh node1 sudo ceph fs ls #查看验证 5 name: cephfs, metadata pool: cephfs_metadata, data pools: [cephfs_data ] 6 [manager@deploy my-cluster]$ ssh node1 sudo ceph mds stat 7 cephfs-1/1/1 up {0=node1=up:active} #再次查看mds信息
1 [root@node1 ~]# cat /etc/ceph/ceph.client.admin.keyring #查看key 2 [client.admin] 3 key = AQDs9D1cCanyJBAA/rj991xmzENsIgEesfe8KQ== 4 [root@cephclient ~]# vi /root/admin.secret #客户端创建key 5 AQDs9D1cCanyJBAA/rj991xmzENsIgEesfe8KQ==
1 [root@cephclient ~]# mkdir /mnt/mycephfs 2 [root@cephclient ~]# mount -t ceph -o name=admin,secretfile=/root/admin.secret 3 172.24.8.72:6789:/ /mnt/mycephfs/ #执行挂载并附带key文件
1 [root@cephclient ~]# df -hT 2 Filesystem Type Size Used Avail Use% Mounted on 3 …… 4 172.24.8.72:6789:/ ceph 18G 0 18G 0% /mnt/mycephfs 5 [root@cephclient ~]# echo ‘This is my test file!‘ >>/mnt/mycephfs/test.txt
1 [root@cephclient ~]# yum -y install ceph-fuse 2 [manager@deploy my-cluster]$ ceph-deploy --overwrite-conf mon add cephclient
1 [root@cephclient ~]# mkdir /mnt/mycephfs 2 [root@cephclient ~]# ceph-fuse -k /etc/ceph/ceph.client.admin.keyring -m 172.24.8.72:6789 /mnt/mycephfs/ #执行挂载并附带key文件
1 [root@cephclient ~]# df -hT 2 Filesystem Type Size Used Avail Use% Mounted on 3 …… 4 ceph-fuse fuse.ceph-fuse 18G 0 18G 0% /mnt/mycephfs 5 [root@cephclient ~]# echo ‘This is my test file!‘ >>/mnt/mycephfs/test2.txt
参考:http://docs.ceph.com/docs/master/start/quick-rbd/
标签:src href creat ted 位置 微软雅黑 fuse new 服务器
原文地址:https://www.cnblogs.com/itzgr/p/10400060.html