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
This commit is contained in:
parent
6e7dc091a1
commit
ac41fb5961
@ -76,27 +76,6 @@ data:
|
||||
fstype: 'ext4'
|
||||
mount_options: 'defaults'
|
||||
|
||||
cephjournal1:
|
||||
partitions:
|
||||
- name: 'ceph-j1'
|
||||
size: '10g'
|
||||
- name: 'ceph-j2'
|
||||
size: '10g'
|
||||
- name: 'ceph-j3'
|
||||
size: '10g'
|
||||
- name: 'ceph-j4'
|
||||
size: '10g'
|
||||
cephjournal2:
|
||||
partitions:
|
||||
- name: 'ceph-j5'
|
||||
size: '10g'
|
||||
- name: 'ceph-j6'
|
||||
size: '10g'
|
||||
- name: 'ceph-j7'
|
||||
size: '10g'
|
||||
- name: 'ceph-j8'
|
||||
size: '10g'
|
||||
|
||||
platform:
|
||||
kernel: 'hwe-16.04'
|
||||
kernel_params:
|
||||
@ -182,27 +161,6 @@ data:
|
||||
fstype: 'ext4'
|
||||
mount_options: 'defaults'
|
||||
|
||||
cephjournal1:
|
||||
partitions:
|
||||
- name: 'ceph-j1'
|
||||
size: '10g'
|
||||
- name: 'ceph-j2'
|
||||
size: '10g'
|
||||
- name: 'ceph-j3'
|
||||
size: '10g'
|
||||
- name: 'ceph-j4'
|
||||
size: '10g'
|
||||
cephjournal2:
|
||||
partitions:
|
||||
- name: 'ceph-j5'
|
||||
size: '10g'
|
||||
- name: 'ceph-j6'
|
||||
size: '10g'
|
||||
- name: 'ceph-j7'
|
||||
size: '10g'
|
||||
- name: 'ceph-j8'
|
||||
size: '10g'
|
||||
|
||||
platform:
|
||||
kernel: 'hwe-16.04'
|
||||
kernel_params:
|
||||
|
@ -75,19 +75,6 @@ data:
|
||||
fstype: 'ext4'
|
||||
mount_options: 'defaults'
|
||||
|
||||
cephjournal1:
|
||||
partitions:
|
||||
- name: 'ceph-j1'
|
||||
size: '10g'
|
||||
- name: 'ceph-j2'
|
||||
size: '10g'
|
||||
cephjournal2:
|
||||
partitions:
|
||||
- name: 'ceph-j3'
|
||||
size: '10g'
|
||||
- name: 'ceph-j4'
|
||||
size: '10g'
|
||||
|
||||
ephemeral:
|
||||
partitions:
|
||||
- name: 'nova'
|
||||
|
@ -33,23 +33,23 @@ data:
|
||||
location: /dev/sde
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdb1
|
||||
location: /dev/sdb
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdf
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdb2
|
||||
location: /dev/sdb
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdg
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdc1
|
||||
location: /dev/sdc
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdh
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdc2
|
||||
location: /dev/sdc
|
||||
...
|
||||
|
@ -29,47 +29,47 @@ data:
|
||||
location: /dev/sdd
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdb1
|
||||
location: /dev/sdb
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sde
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdb2
|
||||
location: /dev/sdb
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdf
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdb3
|
||||
location: /dev/sdb
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdg
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdb4
|
||||
location: /dev/sdb
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdh
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdc1
|
||||
location: /dev/sdc
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdi
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdc2
|
||||
location: /dev/sdc
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdj
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdc3
|
||||
location: /dev/sdc
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdk
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdc4
|
||||
location: /dev/sdc
|
||||
...
|
||||
|
@ -78,26 +78,6 @@ data:
|
||||
fstype: 'ext4'
|
||||
mount_options: 'defaults'
|
||||
|
||||
cephjournal1:
|
||||
partitions:
|
||||
- name: 'ceph-j1'
|
||||
size: '10g'
|
||||
- name: 'ceph-j2'
|
||||
size: '10g'
|
||||
- name: 'ceph-j3'
|
||||
size: '10g'
|
||||
- name: 'ceph-j4'
|
||||
size: '10g'
|
||||
cephjournal2:
|
||||
partitions:
|
||||
- name: 'ceph-j5'
|
||||
size: '10g'
|
||||
- name: 'ceph-j6'
|
||||
size: '10g'
|
||||
- name: 'ceph-j7'
|
||||
size: '10g'
|
||||
- name: 'ceph-j8'
|
||||
size: '10g'
|
||||
|
||||
platform:
|
||||
kernel: 'hwe-16.04'
|
||||
@ -184,26 +164,6 @@ data:
|
||||
fstype: 'ext4'
|
||||
mount_options: 'defaults'
|
||||
|
||||
cephjournal1:
|
||||
partitions:
|
||||
- name: 'ceph-j1'
|
||||
size: '10g'
|
||||
- name: 'ceph-j2'
|
||||
size: '10g'
|
||||
- name: 'ceph-j3'
|
||||
size: '10g'
|
||||
- name: 'ceph-j4'
|
||||
size: '10g'
|
||||
cephjournal2:
|
||||
partitions:
|
||||
- name: 'ceph-j5'
|
||||
size: '10g'
|
||||
- name: 'ceph-j6'
|
||||
size: '10g'
|
||||
- name: 'ceph-j7'
|
||||
size: '10g'
|
||||
- name: 'ceph-j8'
|
||||
size: '10g'
|
||||
|
||||
platform:
|
||||
kernel: 'hwe-16.04'
|
||||
|
@ -77,18 +77,6 @@ data:
|
||||
fstype: 'ext4'
|
||||
mount_options: 'defaults'
|
||||
|
||||
cephjournal1:
|
||||
partitions:
|
||||
- name: 'ceph-j1'
|
||||
size: '10g'
|
||||
- name: 'ceph-j2'
|
||||
size: '10g'
|
||||
cephjournal2:
|
||||
partitions:
|
||||
- name: 'ceph-j3'
|
||||
size: '10g'
|
||||
- name: 'ceph-j4'
|
||||
size: '10g'
|
||||
|
||||
ephemeral:
|
||||
partitions:
|
||||
|
@ -31,47 +31,47 @@ data:
|
||||
location: /dev/sdd
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdb1
|
||||
location: /dev/sdb
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sde
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdb2
|
||||
location: /dev/sdb
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdf
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdb3
|
||||
location: /dev/sdb
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdg
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdb4
|
||||
location: /dev/sdb
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdh
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdc1
|
||||
location: /dev/sdc
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdi
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdc2
|
||||
location: /dev/sdc
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdj
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdc3
|
||||
location: /dev/sdc
|
||||
- data:
|
||||
type: block-logical
|
||||
location: /dev/sdk
|
||||
journal:
|
||||
type: block-logical
|
||||
location: /dev/sdc4
|
||||
location: /dev/sdc
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user