Score:0

Implementing mixture of thin- and fully-allocated LVs that change dynamically

tr flag

Using LVM, I need to have some logical volumes which are fully-allocated (reserved space) and others which are thin-provisioned. My challenge is that the balance between them will shift dynamically. How can this be achieved?

For example, I might want 20% of the VG to be fully-provisioned LVs and the remaining 80% allocated to a thin pool. But this balance might change to 40/60, and the thin pool cannot shrink from 80% to 60% after it is created.

It seems the only answer is to allocate 100% of the VG to the thin pool. Then either

  • Fully-allocate some LVs inside the thin pool. I found a comment that this was "planned", but couldn't find references on how to do it.
  • Create two LVs inside the thin pool with the appropriate split (e.g. 20/80), use btrfs on the 80% and apply quotas to subvolumes. This seems the most concrete option.
  • Use nested/stacked LVs, e.g. thin volumes are nested inside the 80% LV. I found an older document from RedHat about LVM stacking but it isn't clear to me whether this can be done with thin-provisioned LVs and there's no examples.

Can anyone explain how to achieve the goal? It doesn't have to be one of the above approaches (that's just my background investigation), could be something else I haven't considered.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.