ceph-cookbook icon indicating copy to clipboard operation
ceph-cookbook copied to clipboard

Automated OSD HDD setup

Open odyssey4me opened this issue 11 years ago • 2 comments

There should be an optional attribute that allows you to specify that you want the osd's prepared automatically.

It should then allow you to specify a regex for the drives that should be automatically allocated (wholly) for OSD's. eg: [hvs]d[^a]

Based on this regex, the node's attributes should automatically be populated with the required structure as per the recipe:

"ceph": {
  "osd_devices": [
    { "device": "/dev/sdb" },
    { "device": "/dev/sdc" },
    { "device": "/dev/sdd" },
    { "device": "/dev/sde" },
    { "device": "/dev/sdf" }
  ]
}

This will be a good starting point - later it can be extended to allow automation for the way journaling is done and special attributes like dmcrypt.

odyssey4me avatar Aug 01 '13 14:08 odyssey4me

Sounds like a good idea. It's very painful to write the JSON, and everything that aims at simplifying the process is very welcome.

alram avatar Aug 01 '13 18:08 alram

This functionality should probably be best located in a policy wrapper cookbook. I'll work on describing how to do this in the documentation.

hufman avatar Oct 20 '14 15:10 hufman