Create LVM Volume on Blockdevice

Kerim Gueney kgueney at uni-koeln.de
Thu Jul 9 17:10:25 CEST 2015


Hey Stefan,

> When i try the remove the whole "disk_config sdb" part then
> setup-storage tries to resize the existing vg and is failing doing that.
That's odd behavior, don't think that should happen.
> Here is the main question, is it possible to create a pv directly on a
> block device without having a partition?
I am not entirely sure but I think that's possible, yes. I just ran 
pvcreate /dev/sda in a test environment and created a VG and LV on top 
of it just fine.
> Additional question where i failed before: Is it possible to do the
> same for the rootvg and boot from an "bootlv"? For the root disk i
> currently use one /boot partition and the rest in an LVM.
That, too, should be possible. I think you need (at least) the lvm grub 
module.

it appears that everything you want is possible but setup-storage 
doesn't support it, yet. I'll try and implement a solution for your 
usecase in the upcoming days.

Best regards
Kerim



More information about the linux-fai mailing list