Hi Brett,

most probably your device is reported as hdd by the kernel, please check by running the following:

 cat /sys/block/sdf/queue/rotational

It should be 0 for SSD.


But as far as I know BlueFS (i.e. DB+WAL stuff) doesn't have any specific behavior which depends on this flag so most probably you shouldn't worry.

The above is false for 'slow' device and BlueStore core though.


Thanks,

Igor



On 9/22/2018 2:24 AM, Brett Chancellor wrote:
Hi all. Quick question about osd metadata information. I have several OSDs setup with the data dir on HDD and the db going to a partition on ssd. But when I look at the metadata for all the OSDs, it's showing the db as "hdd". Does this effect anything? And is there anyway to change it?

$ sudo ceph osd metadata 1
{
    "id": 1,
    "arch": "x86_64",
    "back_addr": "<removed>:6805/2053608",
    "back_iface": "eth0",
    "bluefs": "1",
    "bluefs_db_access_mode": "blk",
    "bluefs_db_block_size": "4096",
    "bluefs_db_dev": "8:80",
    "bluefs_db_dev_node": "sdf",
    "bluefs_db_driver": "KernelDevice",
    "bluefs_db_model": "PERC H730 Mini  ",
    "bluefs_db_partition_path": "/dev/sdf2",
    "bluefs_db_rotational": "1",
    "bluefs_db_size": "266287972352",
*    "bluefs_db_type": "hdd",*
    "bluefs_single_shared_device": "0",
    "bluefs_slow_access_mode": "blk",
    "bluefs_slow_block_size": "4096",
    "bluefs_slow_dev": "253:1",
    "bluefs_slow_dev_node": "dm-1",
    "bluefs_slow_driver": "KernelDevice",
    "bluefs_slow_model": "",
    "bluefs_slow_partition_path": "/dev/dm-1",
    "bluefs_slow_rotational": "1",
    "bluefs_slow_size": "6000601989120",
    "bluefs_slow_type": "hdd",
    "bluestore_bdev_access_mode": "blk",
    "bluestore_bdev_block_size": "4096",
    "bluestore_bdev_dev": "253:1",
    "bluestore_bdev_dev_node": "dm-1",
    "bluestore_bdev_driver": "KernelDevice",
    "bluestore_bdev_model": "",
    "bluestore_bdev_partition_path": "/dev/dm-1",
    "bluestore_bdev_rotational": "1",
    "bluestore_bdev_size": "6000601989120",
    "bluestore_bdev_type": "hdd",
    "ceph_version": "ceph version 12.2.4 (52085d5249a80c5f5121a76d6288429f35e4e77b) luminous (stable)",
    "cpu": "Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz",
    "default_device_class": "hdd",
    "distro": "centos",
    "distro_description": "CentOS Linux 7 (Core)",
    "distro_version": "7",
    "front_addr": "<removed>:6804/2053608",
    "front_iface": "eth0",
    "hb_back_addr": "<removed>.78:6806/2053608",
    "hb_front_addr": "<removed>.78:6807/2053608",
    "hostname": "ceph0rdi-osd2-1-xrd.eng.sfdc.net <http://ceph0rdi-osd2-1-xrd.eng.sfdc.net>",
    "journal_rotational": "1",
    "kernel_description": "#1 SMP Tue Jun 26 16:32:21 UTC 2018",
    "kernel_version": "3.10.0-862.6.3.el7.x86_64",
    "mem_swap_kb": "0",
    "mem_total_kb": "131743604",
    "os": "Linux",
    "osd_data": "/var/lib/ceph/osd/ceph-1",
    "osd_objectstore": "bluestore",
    "rotational": "1"
}



_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to