1. Full function of Ceph Dashboard
By default, rgw, cephfs, iscsi cannot be used in dashboard
1. Dashboard starts rgw management function
1.1, create RGW
#rgw节点都安装
yum install -y ceph-radosgw
#创建rgw网关 在管理(ceph01)节点添加
ceph-deploy rgw create ceph01 ceph02 ceph03
1.3. The browser accesses the node IP: 7480 will get the following values
1.4, enable RGW in Dashboard
Create rgw dashboard user
radosgw-admin user create --uid=rgw-dashboard --display-name=rgw-dashboard --system
Write down the output access_key and secret_key values. If you didn't write them down, you can also view them with the following command (optional)
ceph dashboard set-rgw-api-access-key EVDLC5HVZBD57TH8B2D7
ceph dashboard set-rgw-api-secret-key b3l7obqePRxl8LHDnQLk4eHlNfdEeMvmMnJ7pAhl
At this time, open the dashboard and we can see that rgw object storage can be managed
2. Dashboard enables cephfs management function
As mentioned above, after Ceph Dashboard is installed by default, ceogfs is not enabled. You need to manually enable cephfs in the Dashboard. The following commands are executed on the deployment node except for the ceph-deploy command. All other commands are executed on the ceph node.
ceph-deploy mds create ceph01 ceph02 ceph03
Ceph fs does not need to do other integration work, so it can be displayed directly in the Dashboard.
3. Enable iscsi on Dashboard.
View the gateway service status.
[root@ceph01 ~]# gwcli info
HTTP mode : http
Rest API port : 5000
Local endpoint : http://localhost:5000/api
Local Ceph Cluster : ceph
2ndary API IP's : ceph01,ceph02,ceph03
Use the following command to define the available iSCSI gateways. Before adding iscsi-gateway, you need to start the rbd-api service on each gateway.
ceph dashboard iscsi-gateway-add http://admin:admin@ceph01:5000
ceph dashboard iscsi-gateway-add http://admin:admin@ceph02:5000
ceph dashboard iscsi-gateway-add http://admin:admin@ceph03:5000