/dev/vg1/lv1 xfs 20G 5.1G 15G 26% /var/local/osd1
[yzyu@node1 ~]$ du -sh /var/local/osd1/
5.1G /var/local/osd1/
[yzyu@node1 ~]$ ls /var/local/osd1/
activate.monmap active ceph_fsid current fsid journal keyring magic ready store_version superblock systemd type whoami
[yzyu@node1 ~]$ ls /etc/ceph/
ceph.client.admin.keyring ceph.conf rbdmap tmppVBe_2
[yzyu@node1 ~]$ cat /etc/ceph/ceph.conf
[global]
fsid = 0fcdfa46-c8b7-43fc-8105-1733bce3bfeb
mon_initial_members = node1, node2
mon_host = 10.199.100.171,10.199.100.172
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
osd pool default size = 2
[yzyu@dlp ceph-cluster]$ ssh yzyu@node2 ##验证node2节点的端口监听状态以及其配置文件及其磁盘使用情况
[yzyu@node2 ~]$ df -hT |grep lv2
/dev/vg2/lv2 xfs 20G 5.1G 15G 26% /var/local/osd2
[yzyu@node2 ~]$ du -sh /var/local/osd2/
5.1G /var/local/osd2/
[yzyu@node2 ~]$ ls /var/local/osd2/
activate.monmap active ceph_fsid current fsid journal keyring magic ready store_version superblock systemd type whoami
[yzyu@node2 ~]$ ls /etc/ceph/
ceph.client.admin.keyring ceph.conf rbdmap tmpmB_BTa
[yzyu@node2 ~]$ cat /etc/ceph/ceph.conf
[global]
fsid = 0fcdfa46-c8b7-43fc-8105-1733bce3bfeb
mon_initial_members = node1, node2
mon_host = 10.199.100.171,10.199.100.172
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
osd pool default size = 2
配置Ceph的mds元数据进程
[yzyu@dlp ceph-cluster]$ ceph-deploy mds create node1 [yzyu@dlp ceph-cluster]$ ssh dhhy@node1 [yzyu@node1 ~]$ netstat -utpln |grep 68 (No info could be read for "-p": geteuid()=1000 but you should be root.) tcp 0 0 0.0.0.0:6800 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:6801 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:6802 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:6803 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:6804 0.0.0.0:* LISTEN - tcp 0 0 192.168.100.102:6789 0.0.0.0:* LISTEN - [yzyu@node1 ~]$ exit
配置Ceph的client客户端
[yzyu@dlp ceph-cluster]$ ceph-deploy install ceph-client ##提示输入密码
[dhhy@dlp ceph-cluster]$ ceph-deploy admin ceph-client
[yzyu@dlp ceph-cluster]$ su - [root@dlp ~]# chmod +r /etc/ceph/ceph.client.admin.keyring