RE: Kickstart - Partitioning....possible to use whole disk for LVM without creating a LVM partition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux