Kickstart - Partitioning....possible to use whole disk for LVM without creating a LVM partition
Jacob Evans
lists at jacobdevans.com
Tue Jan 10 15:47:02 UTC 2017
Hey All,
A while back someone was looking for a way to kickstart lvm volumes without partitions, here's how I accomplished it.
# Expects 2 vm disks
# Disk 1 = 1GB
# Disk 2 = DATA (5GB or larger)
# Disk Layout
clearpart --all --initlabel --drives=sda
part biosboot --fstype=biosboot --size=1 --ondisk=sda
part /boot --fstype=xfs --size=512 --grow --ondisk=sda
logvol swap --fstype=swap --name=swap --vgname=vg01 --size=512
logvol /tmp --fstype xfs --name=tmp --vgname=vg01 --size=1024
logvol / --fstype xfs --name=lv01 --vgname=vg01 --size=2048 --grow
%pre
pvcreate /dev/sdb
vgcreate vg01 /dev/sdb
vgscan
%end
if there are any updates, I'll update this gist, https://gist.github.com/JakeDEvans/908d9a75aa5fc24c9eee24f4912af9aa
Thanks,
- Jake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20170110/e8bdb80a/attachment.htm>
More information about the Kickstart-list
mailing list