Browse Source

Ceph journal partitions automation

- Use whole disk /dev/sdc format.
- Don't specify partition and let ceph-osd util create
and manage partition.
- On an OSD disk failure, during manintanance window,
Journal partition for failed OSD should be deleted.
This will allow ceph-osd util to reuse space for new partition.
- Disk partition count num will continue to
increase as more OSD fails.

Change-Id: I6900898fb90bcbb1743cd6382c176ad24b6624d7
Chinasubbareddy M 3 months ago
parent
commit
ac41fb5961

+ 0
- 42
site/airship-seaworthy/profiles/host/cp_r720.yaml View File

@@ -76,27 +76,6 @@ data:
76 76
               fstype: 'ext4'
77 77
               mount_options: 'defaults'
78 78
 
79
-      cephjournal1:
80
-        partitions:
81
-          - name: 'ceph-j1'
82
-            size: '10g'
83
-          - name: 'ceph-j2'
84
-            size: '10g'
85
-          - name: 'ceph-j3'
86
-            size: '10g'
87
-          - name: 'ceph-j4'
88
-            size: '10g'
89
-      cephjournal2:
90
-        partitions:
91
-          - name: 'ceph-j5'
92
-            size: '10g'
93
-          - name: 'ceph-j6'
94
-            size: '10g'
95
-          - name: 'ceph-j7'
96
-            size: '10g'
97
-          - name: 'ceph-j8'
98
-            size: '10g'
99
-
100 79
   platform:
101 80
     kernel: 'hwe-16.04'
102 81
     kernel_params:
@@ -182,27 +161,6 @@ data:
182 161
               fstype: 'ext4'
183 162
               mount_options: 'defaults'
184 163
 
185
-      cephjournal1:
186
-        partitions:
187
-          - name: 'ceph-j1'
188
-            size: '10g'
189
-          - name: 'ceph-j2'
190
-            size: '10g'
191
-          - name: 'ceph-j3'
192
-            size: '10g'
193
-          - name: 'ceph-j4'
194
-            size: '10g'
195
-      cephjournal2:
196
-        partitions:
197
-          - name: 'ceph-j5'
198
-            size: '10g'
199
-          - name: 'ceph-j6'
200
-            size: '10g'
201
-          - name: 'ceph-j7'
202
-            size: '10g'
203
-          - name: 'ceph-j8'
204
-            size: '10g'
205
-
206 164
   platform:
207 165
     kernel: 'hwe-16.04'
208 166
     kernel_params:

+ 0
- 13
site/airship-seaworthy/profiles/host/dp_r720.yaml View File

@@ -75,19 +75,6 @@ data:
75 75
               fstype: 'ext4'
76 76
               mount_options: 'defaults'
77 77
 
78
-      cephjournal1:
79
-        partitions:
80
-          - name: 'ceph-j1'
81
-            size: '10g'
82
-          - name: 'ceph-j2'
83
-            size: '10g'
84
-      cephjournal2:
85
-        partitions:
86
-          - name: 'ceph-j3'
87
-            size: '10g'
88
-          - name: 'ceph-j4'
89
-            size: '10g'
90
-
91 78
       ephemeral:
92 79
         partitions:
93 80
           - name: 'nova'

+ 4
- 4
site/airship-seaworthy/software/charts/osh/openstack-tenant-ceph/ceph-osd.yaml View File

@@ -33,23 +33,23 @@ data:
33 33
               location: /dev/sde
34 34
             journal:
35 35
               type: block-logical
36
-              location: /dev/sdb1
36
+              location: /dev/sdb
37 37
           - data:
38 38
               type: block-logical
39 39
               location: /dev/sdf
40 40
             journal:
41 41
               type: block-logical
42
-              location: /dev/sdb2
42
+              location: /dev/sdb
43 43
           - data:
44 44
               type: block-logical
45 45
               location: /dev/sdg
46 46
             journal:
47 47
               type: block-logical
48
-              location: /dev/sdc1
48
+              location: /dev/sdc
49 49
           - data:
50 50
               type: block-logical
51 51
               location: /dev/sdh
52 52
             journal:
53 53
               type: block-logical
54
-              location: /dev/sdc2
54
+              location: /dev/sdc
55 55
 ...

+ 8
- 8
site/airship-seaworthy/software/charts/ucp/ceph/ceph-osd.yaml View File

@@ -29,47 +29,47 @@ data:
29 29
               location: /dev/sdd
30 30
             journal:
31 31
               type: block-logical
32
-              location: /dev/sdb1
32
+              location: /dev/sdb
33 33
           - data:
34 34
               type: block-logical
35 35
               location: /dev/sde
36 36
             journal:
37 37
               type: block-logical
38
-              location: /dev/sdb2
38
+              location: /dev/sdb
39 39
           - data:
40 40
               type: block-logical
41 41
               location: /dev/sdf
42 42
             journal:
43 43
               type: block-logical
44
-              location: /dev/sdb3
44
+              location: /dev/sdb
45 45
           - data:
46 46
               type: block-logical
47 47
               location: /dev/sdg
48 48
             journal:
49 49
               type: block-logical
50
-              location: /dev/sdb4
50
+              location: /dev/sdb
51 51
           - data:
52 52
               type: block-logical
53 53
               location: /dev/sdh
54 54
             journal:
55 55
               type: block-logical
56
-              location: /dev/sdc1
56
+              location: /dev/sdc
57 57
           - data:
58 58
               type: block-logical
59 59
               location: /dev/sdi
60 60
             journal:
61 61
               type: block-logical
62
-              location: /dev/sdc2
62
+              location: /dev/sdc
63 63
           - data:
64 64
               type: block-logical
65 65
               location: /dev/sdj
66 66
             journal:
67 67
               type: block-logical
68
-              location: /dev/sdc3
68
+              location: /dev/sdc
69 69
           - data:
70 70
               type: block-logical
71 71
               location: /dev/sdk
72 72
             journal:
73 73
               type: block-logical
74
-              location: /dev/sdc4
74
+              location: /dev/sdc
75 75
 ...

+ 0
- 40
site/airskiff/profiles/host/cp_r720.yaml View File

@@ -78,26 +78,6 @@ data:
78 78
               fstype: 'ext4'
79 79
               mount_options: 'defaults'
80 80
 
81
-      cephjournal1:
82
-        partitions:
83
-          - name: 'ceph-j1'
84
-            size: '10g'
85
-          - name: 'ceph-j2'
86
-            size: '10g'
87
-          - name: 'ceph-j3'
88
-            size: '10g'
89
-          - name: 'ceph-j4'
90
-            size: '10g'
91
-      cephjournal2:
92
-        partitions:
93
-          - name: 'ceph-j5'
94
-            size: '10g'
95
-          - name: 'ceph-j6'
96
-            size: '10g'
97
-          - name: 'ceph-j7'
98
-            size: '10g'
99
-          - name: 'ceph-j8'
100
-            size: '10g'
101 81
 
102 82
   platform:
103 83
     kernel: 'hwe-16.04'
@@ -184,26 +164,6 @@ data:
184 164
               fstype: 'ext4'
185 165
               mount_options: 'defaults'
186 166
 
187
-      cephjournal1:
188
-        partitions:
189
-          - name: 'ceph-j1'
190
-            size: '10g'
191
-          - name: 'ceph-j2'
192
-            size: '10g'
193
-          - name: 'ceph-j3'
194
-            size: '10g'
195
-          - name: 'ceph-j4'
196
-            size: '10g'
197
-      cephjournal2:
198
-        partitions:
199
-          - name: 'ceph-j5'
200
-            size: '10g'
201
-          - name: 'ceph-j6'
202
-            size: '10g'
203
-          - name: 'ceph-j7'
204
-            size: '10g'
205
-          - name: 'ceph-j8'
206
-            size: '10g'
207 167
 
208 168
   platform:
209 169
     kernel: 'hwe-16.04'

+ 0
- 12
site/airskiff/profiles/host/dp_r720.yaml View File

@@ -77,18 +77,6 @@ data:
77 77
               fstype: 'ext4'
78 78
               mount_options: 'defaults'
79 79
 
80
-      cephjournal1:
81
-        partitions:
82
-          - name: 'ceph-j1'
83
-            size: '10g'
84
-          - name: 'ceph-j2'
85
-            size: '10g'
86
-      cephjournal2:
87
-        partitions:
88
-          - name: 'ceph-j3'
89
-            size: '10g'
90
-          - name: 'ceph-j4'
91
-            size: '10g'
92 80
 
93 81
       ephemeral:
94 82
         partitions:

+ 8
- 8
site/airskiff/software/charts/ucp/ceph/ceph-osd.yaml View File

@@ -31,47 +31,47 @@ data:
31 31
               location: /dev/sdd
32 32
             journal:
33 33
               type: block-logical
34
-              location: /dev/sdb1
34
+              location: /dev/sdb
35 35
           - data:
36 36
               type: block-logical
37 37
               location: /dev/sde
38 38
             journal:
39 39
               type: block-logical
40
-              location: /dev/sdb2
40
+              location: /dev/sdb
41 41
           - data:
42 42
               type: block-logical
43 43
               location: /dev/sdf
44 44
             journal:
45 45
               type: block-logical
46
-              location: /dev/sdb3
46
+              location: /dev/sdb
47 47
           - data:
48 48
               type: block-logical
49 49
               location: /dev/sdg
50 50
             journal:
51 51
               type: block-logical
52
-              location: /dev/sdb4
52
+              location: /dev/sdb
53 53
           - data:
54 54
               type: block-logical
55 55
               location: /dev/sdh
56 56
             journal:
57 57
               type: block-logical
58
-              location: /dev/sdc1
58
+              location: /dev/sdc
59 59
           - data:
60 60
               type: block-logical
61 61
               location: /dev/sdi
62 62
             journal:
63 63
               type: block-logical
64
-              location: /dev/sdc2
64
+              location: /dev/sdc
65 65
           - data:
66 66
               type: block-logical
67 67
               location: /dev/sdj
68 68
             journal:
69 69
               type: block-logical
70
-              location: /dev/sdc3
70
+              location: /dev/sdc
71 71
           - data:
72 72
               type: block-logical
73 73
               location: /dev/sdk
74 74
             journal:
75 75
               type: block-logical
76
-              location: /dev/sdc4
76
+              location: /dev/sdc
77 77
 ...

Loading…
Cancel
Save