lvm icon indicating copy to clipboard operation
lvm copied to clipboard

can't create swap volume

Open theundefined opened this issue 7 years ago • 4 comments

Currently there is no possibility to create a swap volume. Iw would be nice to add that

theundefined avatar Dec 05 '16 16:12 theundefined

@theundefined

Do you want the lvm cookbook to be able to add newly created volumes as swap space? I use a modified version of the swap cookbook to add volumes created by lvm as swap space. I don't mount the created volume with lvm.

Mark

MarkGibbons avatar Dec 05 '16 16:12 MarkGibbons

ideally - yes. But creating not mounted anywhere volume is enought :-)

theundefined avatar Dec 05 '16 21:12 theundefined

@theundefined This worked for me as of lvm 1.3.7.

lvm_logical_volume "name" do group 'someVG' size '100G' end

MarkGibbons avatar Dec 05 '16 21:12 MarkGibbons

I believe this request is already possible, as we do this by creating a logical volume without defining the filesystem, nor mount point. My company does this and attaches the volume directly into a VM.

ChrisAWalker avatar Oct 13 '18 01:10 ChrisAWalker