openebs / lvm-localpv

Dynamically provision Stateful Persistent Node-Local Volumes & Filesystems for Kubernetes that is integrated with a backend LVM2 data storage stack.
Apache License 2.0
245 stars 92 forks source link

Is it safe to have manual created LVs on localpv-managed VGs? #209

Closed psi-4ward closed 11 months ago

psi-4ward commented 1 year ago

Hi, I've some VGs where lvm-localpv acquires LVs. Is it safe to have some LVs which in the same VG which are generated manually (ie lvcreate -L1G my-lv vg0)?

Does lvm-localpv leave these LVs at it is? Does it have impact to capacity calculation?

Thx ;)

mnlipp commented 1 year ago

My question exactly! (Shouldn't be that hard to answer.)

avishnu commented 1 year ago

Shouldn't be a problem IMO, but this needs to be tested. @mnlipp @psi-4ward Have you been able to try the scenario and check if there were any issues? Thanks in advance.

mnlipp commented 1 year ago

Wrong assumption. I have a VG with "precious" LVs and I'd like to use this VG for localpv as well. There's no room for testing if localpv leaves these existing LVs intact.

Abhinandan-Purkait commented 11 months ago

@mnlipp LocalPV leaves those existing LVs intact and it's safe to have them. However that would be considered as part of capacity calculation as expected.

Abhinandan-Purkait commented 11 months ago

Closing this issue, @mnlipp please feel free to reopen it if you have any more queries. Thank you.