Project

General

Profile

Actions

Bug #56626

closed

"ceph fs volume create" fails with error ERANGE

Added by Victoria Martinez de la Cruz almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Correctness/Safety
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
quincy,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
fs
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Trying to create a CephFS filesystem within a cluster deployed with cephadm fails

Steps followed

1. sudo cephadm --image "quincy" bootstrap --fsid <fsid> --config <bootstrap-config> --output-config <ceph-config> --output-keyring <keyring> --output-pub-ssh-key <pub-key> --allow-overwrite --allow-fqdn-hostname --skip-monitoring-stack --skip-dashboard --single-host-defaults --skip-firewalld --skip-mon-network --mon-ip <host-ip>

bootstrap.config

[global]
log to file = true
osd crush chooseleaf type = 0
osd_pool_default_pg_num = 8
osd_pool_default_pgp_num = 8
osd_pool_default_size = 1
[mon]
mon_warn_on_pool_no_redundancy = False
[osd]
osd_memory_target_autotune = true
osd_numa_auto_affinity = true
[mgr]
mgr/cephadm/autotune_memory_target_ratio = 0.2

2. sudo cephadm shell --fsid <fsid> --config <ceph_config> --keyring <keyring> -- ceph orch daemon add osd "<hostname>:<osd>"

3. sudo cephadm shell --fsid <fsid> --config <ceph_config> --keyring <keyring> -- ceph fs volume create <my-fs>

Expected output: new filesystem is created successfully, with the data and metadata pools

Actual output: Error ERANGE: 'pgp_num' must be greater than 0 and lower or equal than 'pg_num', which in this case is 1

Environment status:

root@quincy-cephadm:/# ceph -s
cluster:
id: 4cbcbb65-3109-47ee-bd9a-2aab3f4debe7
health: HEALTH_OK

services:
mon: 1 daemons, quorum quincy-cephadm (age 19m)
mgr: quincy-cephadm.jbzzql(active, since 18m), standbys: quincy-cephadm.telyok
osd: 1 osds: 1 up (since 17m), 1 in (since 18m)
data:
pools: 1 pools, 1 pgs
objects: 2 objects, 449 KiB
usage: 20 MiB used, 30 GiB / 30 GiB avail
pgs: 1 active+clean

Image used: v17.2.1 in Quay

Actions

Also available in: Atom PDF