docker-lvm-plugin icon indicating copy to clipboard operation
docker-lvm-plugin copied to clipboard

LVM Raid Support

Open darthShadow opened this issue 3 years ago • 2 comments

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 avatar Mar 17 '21 13:03 darthShadow

@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?

shishir-a412ed avatar Apr 08 '21 02:04 shishir-a412ed

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.

darthShadow avatar Apr 08 '21 04:04 darthShadow