Actions
Feature #58515
opensupport LV devices as block device for raw osd preparation
% Done:
0%
Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Description
RFE in order to make ceph-volume support LV devices when preparing osds with "method=raw".
The idea is to allow `ceph-volume raw prepare` to treat any LV as if it was a raw device.
expected result:
# CEPH_VOLUME_DEBUG=1 ceph-volume raw prepare --bluestore --data /dev/vdd --block.db /dev/vg_test/db2
Running command: /usr/bin/ceph-authtool --gen-print-key
Running command: /usr/bin/ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring -i - osd new b62d231f-2554-4176-9a8b-377e73650134
Running command: /usr/bin/ceph-authtool --gen-print-key
Running command: /usr/bin/mount -t tmpfs tmpfs /var/lib/ceph/osd/ceph-1
Running command: /usr/bin/chown -R ceph:ceph /dev/vdd
Running command: /usr/bin/ln -s /dev/vdd /var/lib/ceph/osd/ceph-1/block
Running command: /usr/bin/ceph --cluster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring mon getmap -o /var/lib/ceph/osd/ceph-1/activate.monmap
stderr: got monmap epoch 1
--> Creating keyring file for osd.1
Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/osd/ceph-1/keyring
Running command: /usr/bin/chown -R ceph:ceph /var/lib/ceph/osd/ceph-1/
Running command: /usr/bin/chown -h ceph:ceph /dev/vg_test/db2
Running command: /usr/bin/chown -R ceph:ceph /dev/dm-1
Running command: /usr/bin/ceph-osd --cluster ceph --osd-objectstore bluestore --mkfs -i 1 --monmap /var/lib/ceph/osd/ceph-1/activate.monmap --keyfile - --bluestore-block-db-path /dev/vg_test/db2 --osd-data /var/lib/ceph/osd/ceph-1/ --osd-uuid b62d231f-2554-4176-9a8b-377e73650134 --setuser ceph --setgroup ceph
stderr: 2023-01-19T19:44:39.891+0000 7f4875d135c0 -1 bluestore(/var/lib/ceph/osd/ceph-1//block) _read_bdev_label unable to decode label at offset 102: void bluestore_bdev_label_t::decode(ceph::buffer::v15_2_0::list::const_iterator&) decode past end of struct encoding: Malformed input [buffer:3]
stderr: 2023-01-19T19:44:39.891+0000 7f4875d135c0 -1 bluestore(/var/lib/ceph/osd/ceph-1//block) _read_bdev_label unable to decode label at offset 102: void bluestore_bdev_label_t::decode(ceph::buffer::v15_2_0::list::const_iterator&) decode past end of struct encoding: Malformed input [buffer:3]
stderr: 2023-01-19T19:44:39.891+0000 7f4875d135c0 -1 bluestore(/var/lib/ceph/osd/ceph-1//block) _read_bdev_label unable to decode label at offset 102: void bluestore_bdev_label_t::decode(ceph::buffer::v15_2_0::list::const_iterator&) decode past end of struct encoding: Malformed input [buffer:3]
stderr: 2023-01-19T19:44:39.891+0000 7f4875d135c0 -1 bluestore(/var/lib/ceph/osd/ceph-1/) _read_fsid unparsable uuid
--> ceph-volume raw clear prepare successful for: /dev/vdd
[root@8e5551f71537 /]# ceph-volume raw list
{
"35836984-3b06-466d-8c33-e86df68a7857": {
"ceph_fsid": "e1823e46-982b-11ed-95e0-5254004ea5b2",
"device": "/dev/vdc",
"device_db": "/dev/mapper/vg_test-db1",
"osd_id": 0,
"osd_uuid": "35836984-3b06-466d-8c33-e86df68a7857",
"type": "bluestore"
},
"b62d231f-2554-4176-9a8b-377e73650134": {
"ceph_fsid": "e1823e46-982b-11ed-95e0-5254004ea5b2",
"device": "/dev/vdd",
"device_db": "/dev/mapper/vg_test-db2",
"osd_id": 1,
"osd_uuid": "b62d231f-2554-4176-9a8b-377e73650134",
"type": "bluestore"
}
}
No data to display
Actions