Actions
Feature #39057
closedorchestrator_cli should check minimum device size
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Description
Otherwise we might get an error like this:
2019-04-01 08:01:11.465649 I | --> RuntimeError: Unable to use device 4.00 GB /dev/vdb, LVs would be smaller than 5GB
[root@kubic-1 /]# k get CephCluster -o yaml apiVersion: v1 items: - apiVersion: ceph.rook.io/v1 kind: CephCluster metadata: ... spec: cephVersion: allowUnsupported: true image: 192.168.122.1:443/ceph/ceph:latest dashboard: enabled: true dataDirHostPath: /var/lib/rook mon: allowMultiplePerNode: true count: 3 preferredCount: 0 network: hostNetwork: false rbdMirroring: workers: 0 storage: config: databaseSizeMB: "1024" journalSizeMB: "1024" osdsPerDevice: "1" directories: - config: null path: /var/lib/rook nodes: - config: null devices: - FullPath: "" config: null name: vdb name: kubic-1 resources: {} useAllDevices: false status: state: Updating kind: List metadata: resourceVersion: "" selfLink: ""
[root@kubic-1 /]# ceph orchestrator device ls Host kubic-1: Device Path Type Size Rotates Available Model vdb hdd 5120M False False vda hdd 24.0G False False Host kubic-2: Device Path Type Size Rotates Available Model vdb hdd 5120M False False vda hdd 24.0G False False
Actions