how to create lvm partion by kickstart
Tim Mooney
Tim.Mooney at ndsu.edu
Fri Aug 16 19:43:15 UTC 2013
In regard to: how to create lvm partion by kickstart, ZHANG Jiaqiang A said...:
> Here is the ks snippet I used to setup lvm:
>
> ####################################################################
> # LD0 300G
> # LD1 300G
> # LD2 1.39T
> clearpart --drives=$LD0,$LD1,$LD2 --all --initlabel
> #------------------------------------------------------------------------#
> #-------------------------------------------------------------------------#
> # /boot
> # /, /usr, /var, swap
> # /opt, /home
>
> part raid.00 --size 204 --ondrive=$LD0 --asprimary
> part raid.10 --size 204 --ondrive=$LD1 --asprimary
> part raid.01 --size 122880 --ondrive=$LD0 --asprimary
> part raid.11 --size 122880 --ondrive=$LD1 --asprimary
> part raid.02 --size 1 --grow --ondrive=$LD0
> part raid.12 --size 1 --grow --ondrive=$LD1
>
> part pv.10 --size=1 --grow --ondisk=$LD2
Are you certain that LD0, LD1 and LD2 are being set correctly before
partitioning happens?
> raid /boot --fstype ext3 --device md0 --level=RAID1 raid.00 raid.10
> raid pv.1 --fstype ext4 --device md1 --level=RAID1 raid.01 raid.11
> raid pv.2 --fstype ext4 --device md2 --level=RAID1 raid.02 raid.12
If you want pv.1 and pv.2 to be LVM, why are you setting --fstype ext4?
Our kickstart uses:
raid pv.01 --fstype "physical volume (LVM)" --level=RAID1 --device=md3 raid.13 raid.23
Tim
--
Tim Mooney Tim.Mooney at ndsu.edu
Enterprise Computing & Infrastructure 701-231-1076 (Voice)
Room 242-J6, IACC Building 701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
More information about the Kickstart-list
mailing list