On 12/17/2018 6:23 PM, Alfredo Deza wrote:
On Mon, Dec 17, 2018 at 9:20 AM Igor Fedotov <ifedotov@xxxxxxx> wrote:
Hi All,
Got a question while playing with ceph-volume
Are --block.db and --block.wal options mandatory for 'ceph-volume lvm
prepare --bluestore' command?
These are not mandatory (per the bluestore spec). Bluestore has 4 ways
of deploying an OSD:
1) with a data (block) device only
2) with a data device and a block.db
3) with a data device and a wal.db
4) with a data device, block.db, and wal.db
There is no enforcement for a specific one, any of the above is valid.
No formal syntax error is provided if omitted but OSD isn't prepared
with the following output:
...
Would help here to see what the actual ceph-volume call was (can't
tell by looking at ceph-osd output)
Looks like you tried several times to deploy for the same OSD? Do you
think you can provide a way to replicate how you got here?
This is 100% reproducible for fresh "vstart" cluster:
../src/vstart -n
chmod 777 /tmp/<asok-file>
chmod 777 ./dev
chmod 777 ./out
ceph auth add client.bootstrap-osd mon 'allow profile bootstrap-osd'
ceph auth export -i ./keyring > /var/lib/ceph/bootstrap-osd/ceph.keyring
CEPH_CONF=ceph.conf /usr/local/bin/ceph-volume lvm prepare --data
nvme/data --bluestore
Thanks,
Igor