docker-lvm-plugin
docker-lvm-plugin copied to clipboard
LVM Raid Support
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.
@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
?
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.