Re: how to create lvm partion by kickstart
Tim Mooney <[email protected]> Fri, 16 Aug 2013 14:43:15 -0500 (CDT)
| Newsgroups | gmane.linux.redhat.kickstart.general |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] Enterprise Computing & Infrastructure 701-231-1076 (Voice) Room 242-J6, IACC Building 701-231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164