containers / docker-lvm-plugin

Docker volume plugin for LVM volumes
GNU Lesser General Public License v3.0
155 stars 64 forks source link

LVM Raid Support #100

Open darthShadow opened 3 years ago

darthShadow commented 3 years ago

Hi,

Would you be open to a PR adding support for raid options while creating the logical volumes?

Reference: https://man7.org/linux/man-pages/man7/lvmraid.7.html

We will need to add support for 3 additional options:

--type raid[X]
--stripes Number
--stripesize Size

Thanks for the consideration.

shishir-a412ed commented 3 years ago

@darthShadow Yeah this would be very interesting :) Feel free to open a PR, if you wanna take a stab at it.

There is only --opt for setting driver specific options, I am thinking we can add something like

--opt raid-type
--opt raid-stripes
--opt raid-stripesize

Also, do we need to support --mirrors for raid1 and raid10?

darthShadow commented 3 years ago

I don't have an immediate need for raid1 and raid10, so hadn't considered the mirrors option but it looks simple enough to add to the same set of changes.