|
|
楼主 |
发表于 2022-7-20 13:41:38
|
显示全部楼层
部署Ceph mon服务1 I' B! }2 j' P2 d7 e* J
安装Ceph-mon服务程序(所有设备执行)
& N, M/ k; u, y Cyum install -y ceph-mon
8 C+ u) A/ n3 O" r! f, E; V1
& a2 I6 D1 `$ o3 X6 e6 f初始化Mon服务(Ceph 01执行)
& _& q$ a4 E% m" B! k( Q- g生成uuid& |, r: e, {7 l9 S9 \9 K- Q
uuidgen. d/ C! Z, r; ~9 U0 Q0 D6 a' t9 Z5 C
> 9bf24809-220b-4910-b384-c1f06ea80728
. C, z7 n2 }7 k$ j* {1' I( a8 Q1 H9 l5 V( D
2. f. G) y5 y; Y7 a2 T
创建Ceph配置文件
' Q1 w- R" W% m) ^cat >> /etc/ceph/ceph.conf <<EOF/ W9 |" T, d( c
[global]( x7 ~7 G' j, w2 c
fsid = 9bf24809-220b-4910-b384-c1f06ea80728
5 Q0 g( G5 H3 p: Z# C Z/ H) Nmon_initial_members = ceph01,ceph02,ceph03
8 I) G4 L0 m) k" b5 `mon_host = 10.40.65.156,10.40.65.175,10.40.65.129
( b. _0 m0 _6 @- o- {public_network = 10.40.65.0/24
. Y6 Z& l9 O9 [3 q6 v) p( W" d3 _7 m5 h2 _auth_cluster_required = cephx0 d! z$ G" i' Y9 r0 ~6 E2 q
auth_service_required = cephx6 H7 O0 p4 I# V, ]
auth_client_required = cephx
- j3 Z+ Y1 O9 oosd_journal_size = 10248 O8 `/ F. i( ]; o5 F; [
osd_pool_default_size = 3
7 r+ d7 r! c/ z# rosd_pool_default_min_size = 2- q9 M$ T. F% H0 o7 K
osd_pool_default_pg_num = 648 w i; f8 Y( Y8 d. f" C- l9 ^
osd_pool_default_pgp_num = 64
) V0 M. }0 t' K4 s# {* I7 fosd_crush_chooseleaf_type = 1& e% X0 g; z) X9 X5 c
EOF& W. s7 z* ~0 g( g7 U7 r
1
$ v6 A8 M' M1 u( _26 L$ k$ F- b/ ~3 Q0 B* l
3
1 N; r3 E* V' z! j. j4
, O2 J5 Y0 @+ ?& `6 Z% J- V5
$ M- j/ X G0 |6
7 N: f. A. j* p7% q$ w% n; D- O. K; u
86 S1 T1 k" @) b/ M& [
93 A5 |! @6 Q7 K! v8 @" Y9 Q7 z
10" s% u" m' ?$ X) @6 i% t" N
11
' k: N; \! V# F$ B% t0 r) g12
! r& P K* D, d% d* m: C6 j138 h# _6 q. M6 P6 L& U5 Q
140 B, n+ Q V# p. @- Y
15+ C4 O& n0 r, D
16
; A8 x' i/ q/ c' d/ ]( N% h创建集群Monitor密钥。
) T4 u& N; O* M8 aceph-authtool --create-keyring /tmp/ceph.mon.keyring --gen-key -n mon. --cap mon 'allow *'
8 K5 t- O T1 m1
4 A0 f& \6 i4 m y" b0 C创建client.admin用户、client.bootstrap-osd用户密钥,添加到集群密钥中。0 B. }5 d" U8 @5 E
ceph-authtool --create-keyring /etc/ceph/ceph.client.admin.keyring --gen-key -n client.admin --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow *' --cap mgr 'allow *') ]+ T1 G8 D5 E( _" Y
ceph-authtool /tmp/ceph.mon.keyring --import-keyring /etc/ceph/ceph.client.admin.keyring; T" R: |7 s# P3 o9 _
1( ? i" L/ U# R- h' k2 e6 y
2, R. W" v7 s. Z: P5 F
ceph-authtool --create-keyring /var/lib/ceph/bootstrap-osd/ceph.keyring --gen-key -n client.bootstrap-osd --cap mon 'profile bootstrap-osd' --cap mgr 'allow r'$ i! h7 T( G" D3 h2 E
ceph-authtool /tmp/ceph.mon.keyring --import-keyring /var/lib/ceph/bootstrap-osd/ceph.keyring) d- V: \3 J6 Q8 k7 y5 G
1
% n J/ O3 c% V, A& e$ t2* N3 {% g; R' `1 b7 K
使用主机名、主机IP地址、FSID生成monitor map。: |& S U4 { G3 l# w4 M
monmaptool --create --add ceph01 10.40.65.156 --add ceph02 10.40.65.175 --add ceph03 10.40.65.129 --fsid 9bf24809-220b-4910-b384-c1f06ea80728 /tmp/monmap6 L+ v8 l- j* m
1
8 k. G) h5 `1 U0 f" f d4 n初始化并启动monitor服务
4 h! m" _* y+ }6 usudo -u ceph mkdir /var/lib/ceph/mon/ceph-ceph01
1 a7 D+ i# J" G1 b" ochown ceph.ceph -R /var/lib/ceph /etc/ceph /tmp/ceph.mon.keyring /tmp/monmap
* b; z5 u: p& p8 _ qsudo -u ceph ceph-mon --mkfs -i ceph01 --monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring
3 x+ Q( e. y% a# U" Y) |ls /var/lib/ceph/mon/ceph-ceph01/
( c' [# M: E7 S$ v1 }* i1
$ _' ?8 R4 b) g$ ?: p2) F5 h5 ?2 V, f7 C
3' X( M: [6 K* D0 g0 p
4' x3 t2 f' S4 P, J$ [. k7 x
systemctl start ceph-mon@ceph012 T- e2 Z% ], X) V
systemctl enable ceph-mon@ceph01
* ~6 R) @# |+ ~' ^1 osystemctl status ceph-mon@ceph01
* V9 v8 R# i- `% A1
9 H' o% T/ k! \$ L# T2# ^: p" _% ?* G. s. J+ R$ E
3* S& [+ M$ c( j, Q. V+ Z# D
同步配置文件、密钥、monmap到其他节点中(Ceph 01执行)
6 |1 B/ P- s9 L0 [6 L _复制ceph.client.admin.keyring、client.bootstrap-osd key、ceph.mon.keyring、monitor map、ceph.conf到另外2个节点
6 t y9 y! a. T; J" ~scp /etc/ceph/ceph.client.admin.keyring root@ceph02:/etc/ceph/3 K, T2 [5 d8 c2 [
scp /etc/ceph/ceph.client.admin.keyring root@ceph03:/etc/ceph/. q4 _+ \ \/ c3 |# j
11 e# {" G) s/ N! ]( ]
2& @- ?! X# J8 P; |. q# y
scp /var/lib/ceph/bootstrap-osd/ceph.keyring root@ceph02:/var/lib/ceph/bootstrap-osd/7 w2 O2 U5 ?- h3 L3 y/ V1 [
scp /var/lib/ceph/bootstrap-osd/ceph.keyring root@ceph03:/var/lib/ceph/bootstrap-osd/
4 f# _. s2 L: B2 U1 ~* ]7 G13 ]$ R/ t9 P! B3 l
2/ c" {7 |8 {# t5 `' f! m& F: R
scp /tmp/ceph.mon.keyring root@ceph02:/tmp/& Z- D" j3 b6 k7 E
scp /tmp/ceph.mon.keyring root@ceph03:/tmp/
2 n$ q: _& G% W! p9 S* X$ _10 f% m8 j3 c6 L Q: ^7 H# s
2
$ {: u" V S {1 w7 Xscp /tmp/monmap root@ceph02:/tmp/
5 t) U" M& W$ s- n, r+ b$ }% O) Gscp /tmp/monmap root@ceph03:/tmp/. H' p" Z. d; r7 m
1' ]# H# p5 g4 b
2) a8 _& w( _! x, g" j4 n& f+ V
scp /etc/ceph/ceph.conf root@ceph02:/etc/ceph/ B7 a7 ], u/ g" D5 t$ ^
scp /etc/ceph/ceph.conf root@ceph03:/etc/ceph/5 N7 T9 e( v) \( y& Z( H8 s/ Q
11 ?6 d6 U3 f3 c5 M' Y8 F6 `, K, d
2
+ v- F: B, _; t% G3 ]/ H启动其他节点的monitor服务(Ceph 02执行)
2 m7 K4 z/ e4 |9 W! o% msudo -u ceph mkdir /var/lib/ceph/mon/ceph-ceph02) `/ g! K# p8 R9 L9 b$ B
chown ceph.ceph -R /var/lib/ceph /etc/ceph /tmp/ceph.mon.keyring /tmp/monmap
) O* {; |1 c4 nsudo -u ceph ceph-mon --mkfs -i ceph02 --monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring% z' X+ z8 o8 `: S- K
ls /var/lib/ceph/mon/ceph-ceph02/
8 N9 V* A3 ~9 Y8 |- G1: Q9 T9 ?. M. P7 o# R: ^
20 b6 P# k S8 Z4 B; f5 L
32 v4 P2 v0 Y* G
4: @7 e7 {, h" `& F8 I$ R
systemctl start ceph-mon@ceph02
0 o) ?, @: \5 dsystemctl enable ceph-mon@ceph024 Z7 j! u( t. p
systemctl status ceph-mon@ceph02
* w" @ l/ a( P3 g1
% D& X3 Z- |8 ~2
% f- b% i& ?; K30 G( L7 Y" S- [# k& v, O# C
启动其他节点的monitor服务(Ceph 03执行)
4 S& ]3 E( b" _9 asudo -u ceph mkdir /var/lib/ceph/mon/ceph-ceph03
, r. B: X, [3 V& cchown ceph.ceph -R /var/lib/ceph /etc/ceph /tmp/ceph.mon.keyring /tmp/monmap
) m# B. d$ ?" T5 {% w( C/ [sudo -u ceph ceph-mon --mkfs -i ceph03 --monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring
1 I7 I) U% e" T: uls /var/lib/ceph/mon/ceph-ceph03/
# N/ \6 m2 g* u- W/ H5 m$ p2 v1
+ ?: c( F2 `$ O6 t, T# @23 t6 X) b6 ]- q* G9 O7 d
3
" [: }2 C4 g5 ?1 r- e- c6 Y4: Q+ I# K: }' U6 D) e- c
systemctl start ceph-mon@ceph03
- y# _7 S3 m; w7 D/ nsystemctl enable ceph-mon@ceph035 H7 d7 c' ]6 |1 ^7 F
systemctl status ceph-mon@ceph03
% Z, O" X8 o: i# W0 n1
" C4 ?; @+ u' x7 A& c- X2 Y2" d/ L# b" m; {# ~# H; t* m
3
& u. `. t8 ~9 ]) u! s \查看当前集群状态(任意节点执行)
; n% P y+ s/ I1 }6 w通过ceph -s命令查询集群状态,可见集群services中3个mon服务已启动。
7 o' f4 N7 ]+ c3 ?: ?8 D( _ceph -s* x# k+ m$ i1 s( P! B
> cluster:
8 d# I* P% l& I1 ^3 S> id: cf3862c5-f8f6-423e-a03e-beb40fecb74a
0 `! K$ F3 r; ?) _. I9 g2 i3 F> health: HEALTH_OK! x# V6 f# h" ]% ?7 W7 p/ j
> 8 ?. d9 A: M. M7 V% d- }
> services:
+ n4 N' @9 W$ w' v> mon: 3 daemons, quorum ceph03,ceph02,ceph01 (age 12d)
I: T. ?0 K9 \4 ?" J> mgr:
% {3 X( u7 O/ o/ P" A1 j# h> osd: , n% t) Z2 e7 j. A4 k) B3 D! O
>
]7 c* e9 n8 s, g6 L> data:
4 B3 @) P3 T! H! `9 K- u8 `> pools:
! l1 v( E6 d& C+ h> objects: # _% D( P D; l/ w, o- [2 f
> usage: , N0 A, w& F( I0 z
> pgs:, J& _% @( a+ P# n
1
% I7 [7 i8 ?+ Q2
6 z9 g3 R0 m# s) y8 x! r3
/ o) u! m+ [2 o& d' d. }- R' n4
1 C' B/ v$ O' b" x7 _5
) Y! c9 B5 A- t* N& U, [* k6+ ]- r7 _2 {* p, b, ?' K
7# d5 L4 ~8 ~( G6 @
8, k+ A# e& @3 w8 L$ |
9$ D; R/ i' H6 ]3 J1 @5 _
10) z* @4 e1 A) A' H0 o$ |9 `+ T! N
115 n2 f! F, d4 b6 Q
12
( r, w" Q Z5 i( e# `6 W+ }$ w13) ]- ?0 v% Q2 a$ x$ n
14
5 W- `- Y- b$ c+ ~15
" j( e9 y: `1 w. S5 T' Y部署Ceph mon服务(ceph-volume 自动化创建)0 N- H9 B0 p. p
安装Ceph-osd服务程序(所有设备执行)
, W( B3 l" F: N- n9 dyum install -y ceph-osd
8 V, E7 c, d) F7 z' `. Q+ G1
9 o# B, V; W0 H. W: X初始化osd服务(所有设备执行)
V. [) R$ q( h9 q通过fdisk等工具查看磁盘盘符,然后利用ceph-volume工具自动化创建osd服务。& A5 `* w0 ?( t4 I: ?' |
ceph-volume lvm create --data /dev/sda
2 P' E M" F7 @9 V, b; `6 G% Y, uceph-volume lvm create --data /dev/sdb
5 I$ L* k2 k8 U" _ceph-volume lvm create --data /dev/sdc
1 m9 V3 W; j: L' x f. s1
0 I& w$ d |! t+ z2. E7 }6 ?. {3 c7 n0 b
3& q) N& }5 S1 X, k+ }# p, X& ?# [
查看当前集群状态(任意节点执行)1 Z4 c. O( x/ q9 M. ?
通过ceph osd tree命令查询集群状态,可见集群services中所有osd服务已启动。
$ Y; u% ]1 y! q$ V+ ]ceph osd tree; E. M6 J! |- [
> ID CLASS WEIGHT TYPE NAME STATUS REWEIGHT PRI-AFF3 f; G7 z: _& L8 P$ J
> -1 16.36908 root default) o, Q2 n1 z# _4 X1 o7 r" c
> -3 5.45636 host ceph01$ Q. h7 k+ b8 T' E
> 0 hdd 1.81879 osd.0 up 1.00000 1.00000
: _/ G: N$ M* E* `6 |> 1 hdd 1.81879 osd.1 up 1.00000 1.00000
( K* a. ?6 A2 h9 c% B. D! S* F> 2 hdd 1.81879 osd.2 up 1.00000 1.00000- W- T; K% `& ]( U+ v/ z' t9 U" ]) K
> -5 5.45636 host ceph02
O9 i+ p; ]# v; q8 Y, ^> 3 hdd 1.81879 osd.3 up 1.00000 1.00000% M* ^) e$ ?* ?0 y1 C
> 4 hdd 1.81879 osd.4 up 1.00000 1.000005 `' R1 J2 B- K. c. i9 t t/ s. h
> 5 hdd 1.81879 osd.5 up 1.00000 1.000009 [7 V. P7 x( U' }
> -7 5.45636 host ceph03
" K" i" h, g- @5 X& U> 6 hdd 1.81879 osd.6 up 1.00000 1.00000
! J6 ~, n4 `# f8 `> 7 hdd 1.81879 osd.7 up 1.00000 1.00000. B+ }- s1 P; }/ G3 M5 Z. Z
> 8 hdd 1.81879 osd.8 up 1.00000 1.00000
7 T8 E/ F2 X1 V3 Y( d0 w1* @ ?4 d9 r( j
2
. q1 E1 c& D0 o8 L( U5 a3
1 l8 Z/ T8 @6 ^% v% b6 r N( ]) g3 b$ w45 |+ V: P3 l) B g/ C& _7 B
5. p( A ?" A' N2 x
66 k3 e v0 t- L: A. @. @( T% i
7
" F6 w, }* g4 {7 R; p- C8
* J3 v# H2 T6 w& e6 R90 @. y( q8 f( Z6 F
10& q- ]! c- }: \) B3 l
11
" {/ w4 W# n% a; J {8 `12" L V9 u1 P4 ^" m- i: e
13 R. P0 m4 R+ e
14/ _# q* x6 O( R4 v% `
15
3 N7 A& h' r O; j: G* ?部署Ceph mgr服务并开启Dashboard
3 d0 C) `8 V* W" |. ~. V( l! L安装Ceph-mgr服务程序(所有设备执行): m0 ?; P0 L; [2 `. s: T; O6 ^, {7 t
yum install -y ceph-mgr" J& k+ x( b2 [* \: A
1
. H0 s. O% x7 @初始化并启动主MGR服务(Ceph01执行)
) D8 L9 j3 z5 w- W( Amkdir -p /var/lib/ceph/mgr/ceph-ceph01! q0 Q, U8 |& m) ^3 Z5 ]3 a
chown ceph.ceph -R /var/lib/ceph
- l, A# N; Q- [ceph-authtool --create-keyring /etc/ceph/ceph.mgr.ceph01.keyring --gen-key -n mgr.ceph01 --cap mon 'allow profile mgr' --cap osd 'allow *' --cap mds 'allow *'
/ @+ ^7 m4 B4 V" `% t5 l1 T kceph auth import -i /etc/ceph/ceph.mgr.ceph01.keyring
' X1 z% U1 y4 ?) ]4 s4 \; sceph auth get-or-create mgr.ceph01 -o /var/lib/ceph/mgr/ceph-ceph01/keyring
5 p) {1 y9 C$ F" H' Y1
7 A) g4 j0 g Q3 C4 R' v25 T, [) t4 Z \/ M) l" R" F7 z$ L: \
3
3 ^% @4 q ]/ N: x46 R( p/ s, f7 M# S: H0 K8 S. U
5
( _ h" K# n# c! C/ [systemctl start ceph-mgr@ceph01* P& e- a+ f7 i0 B& I+ {9 l
systemctl enable ceph-mgr@ceph015 t2 f, h0 P/ f5 }
systemctl status ceph-mgr@ceph019 Z- ~" n: t: c4 g' I
11 L# e! a8 x8 X: n/ O
2
5 ~: z2 V/ w& h- V9 n3
/ n4 d. {' j$ a* w( k: [0 P' k初始化并启动从MGR服务(Ceph02执行)
( c0 d. M$ p/ S1 o0 xmkdir -p /var/lib/ceph/mgr/ceph-ceph02
! r: N# W# K% _chown ceph.ceph -R /var/lib/ceph
' b+ \6 ]0 D0 `) Gceph-authtool --create-keyring /etc/ceph/ceph.mgr.ceph02.keyring --gen-key -n mgr.ceph02 --cap mon 'allow profile mgr' --cap osd 'allow *' --cap mds 'allow *'$ ]' g5 u- |8 ^- P
ceph auth import -i /etc/ceph/ceph.mgr.ceph02.keyring6 g& O# p5 y3 y3 Y4 Q2 D. B
ceph auth get-or-create mgr.ceph02 -o /var/lib/ceph/mgr/ceph-ceph02/keyring6 B$ ^/ n4 U# B# T2 Y
1+ |9 r M# ^' C/ {
2. k9 Z/ }8 h* ]% |
3- _" _5 j& @; V. f" i
4$ X# C+ y3 Y6 S
5. _7 d; o/ p0 J
systemctl start ceph-mgr@ceph02" s9 H. w: ~4 Z. T @/ l
systemctl enable ceph-mgr@ceph029 \- `) q, D3 F# f+ Z
systemctl status ceph-mgr@ceph02
& H% U7 s D; Z. D1
# o: \" l$ L. g/ ~# M2
, ^! s+ B0 g8 ~$ O3 n8 \3
! C4 }1 ^+ y- @& {初始化并启动从MGR服务(Ceph03执行)& L& \5 O% s$ ~
mkdir -p /var/lib/ceph/mgr/ceph-ceph032 ^7 p6 `, J) i; S4 ?
chown ceph.ceph -R /var/lib/ceph- I4 L2 c: T( J5 Y
ceph-authtool --create-keyring /etc/ceph/ceph.mgr.ceph03.keyring --gen-key -n mgr.ceph03 --cap mon 'allow profile mgr' --cap osd 'allow *' --cap mds 'allow *'. }! i/ O# M5 G, y
ceph auth import -i /etc/ceph/ceph.mgr.ceph03.keyring. W' [4 ^8 |* ], d
ceph auth get-or-create mgr.ceph03 -o /var/lib/ceph/mgr/ceph-ceph03/keyring
( _& S- K( |' f8 D) o1; a; V$ i% G$ p% R2 C3 B
2
% j! K0 l0 {( L. I# p3+ K: j2 [/ @$ P4 t
4+ v9 L ^0 y t: B8 d
5
, r. p, h. p G4 }& c8 ^# z R4 Msystemctl start ceph-mgr@ceph032 U) u' C8 h6 u; ~; e0 b9 b! U% G
systemctl enable ceph-mgr@ceph030 _% j- m$ Z9 R, L
systemctl status ceph-mgr@ceph033 t4 F( a& P* }/ e
1
8 F( F. @; M) ?, Z8 ?2
, J/ |( O, h& c3 D" [+ b3
+ G9 Z! m7 }5 g查看当前集群状态(任意节点执行)
0 n/ ?" U9 A& p, m3 b7 U; T( H6 Y通过ceph -s命令查询集群状态,可见集群services中3个mgr服务已启动。5 m l. Y; i/ k
ceph -s
. }$ O% _6 z4 d1 V; ]> cluster: 2 x, U' c6 A4 V9 a; |2 D3 r
> id: cf3862c5-f8f6-423e-a03e-beb40fecb74a
. c+ g7 z" V- ]) g/ I, F> health: HEALTH_OK
! o% l3 g5 A' b8 F; c. s% A>
; Y u5 |& v. A) q> services: : t- ?1 l$ ]! N& z( d" [7 O, c
> mon: 3 daemons, quorum ceph03,ceph02,ceph01 (age 12d) - R' f( `$ K' L) G5 A
> mgr: ceph01(active, since 3w), standbys: ceph01、ceph02
& Z1 W1 n& _7 F" U) d4 e* z' H> osd: ! J: Z& Z# S, z% K8 [2 e
> 4 C1 A1 x& A( W3 |/ x
> data:
X5 A& a. e5 h! g7 J> pools: + D, {" R* Z: X4 C
> objects:
2 W# y: F! v7 ]8 t& {) |6 l7 {/ ~ G> usage:
1 r7 \" L! O7 Q z, u/ E) J* G> pgs:
/ E5 c8 S# w! s& Z$ O3 Q5 `12 H, i' t. J+ s$ u
2
5 ?6 E# {# _9 R# q3
) L, y) C% _ [, {8 \; X4) n0 s% z- M+ ?, T L: p; U
5' Z2 W" w2 L }$ G2 j
6
4 H3 L5 ~8 u, O0 m7
' t# K3 n3 ^# `( Q8 ]- W7 U* S7 n Z8
& G1 K2 m, I" O$ a9
7 i9 d8 Q6 e' L$ J1 u10
- @; H, B1 i! l ?6 }( ^11
& G) \4 F2 _0 f$ Y- @12+ f& O6 S9 O* l# ~, V: t. [
13
& Z- i+ ~* w$ W. Q _14
+ M+ _/ ^1 D- P7 C& X; R) q% Y15
7 s) D9 l: H- n" m4 `. e使能Dashboard访问功能(任意节点执行)
+ L% b" i0 j1 G9 C开启mgr dashboard功能. {+ |& ?4 ~1 y' y' _$ T% @
ceph mgr module enable dashboard
; b. D5 I9 b* z5 D |1
+ F3 a) b' x+ O% R* \0 Q% z! d生成并安装自签名的证书
' \% v0 y" ^0 P& A% E9 zceph dashboard create-self-signed-cert( I& P6 w7 b4 y- g# Z
1
`1 _. g* J2 d配置dashboard
* |' ~1 A% g& Q, ~5 uceph config set mgr mgr/dashboard/server_addr 10.40.65.148& U+ Z" ?' |, v# z
ceph config set mgr mgr/dashboard/server_port 8080
$ v$ G2 b/ {+ Qceph config set mgr mgr/dashboard/ssl_server_port 8443
! H5 I5 y5 }. r1 _( p* F$ n2 f1. ^/ u% b7 S G) `. {" k+ `$ o2 \( Q
2' V3 v/ k$ G2 Y4 |+ L
35 F, _3 ]" }4 m* S% _$ q5 Y
创建一个dashboard登录用户名密码' |1 N* d. e: ?4 O. {/ h" g
echo '123456' > password.txt
9 @! t8 ~" k/ o: {ceph dashboard ac-user-create admin administrator -i password.txt
# N# b6 [& y" o/ c1: l: l" O, W6 \; T' j& `" B* N
2 ~2 y3 _* d% j$ ? p- m, h
查看服务访问方式
( p0 p% w. U3 f, g% G K* Gceph mgr services2 Q _4 y- L# ~! }
1# Z# L2 j3 Y! F' |" }) D
通过web访问Ceph Dashboard,用户名密码为admin/123456
7 y7 P! Q2 N: S; t0 p n+ B; e+ dhttps://10.40.65.148:84439 Q5 h5 y4 Q+ R0 {- \9 U7 W
# U# Y8 G4 e& S9 J |
|