Re: Partition siizes in percent (without using LVM)
Angus Clarke <[email protected]> Mon, 1 Aug 2016 14:48:00 +0200
| Newsgroups | gmane.linux.redhat.kickstart.general |
|---|---|
| Message-ID | <CAHAi=oX7OQu2eDJUxrnFsavoajHp6q_7y1UXtb-zwuVpWWnZ7Q@mail.gmail.com> |
--===============3736894447166782141== Content-Type: multipart/alternative; boundary=001a114dfa34a08a8a053902024d --001a114dfa34a08a8a053902024d Content-Type: text/plain; charset=UTF-8 If I understand your problem correctly, you must label the disk as "gpt" which will allow you to specify larger (>2TB) filesystems. Other gotchas: don't use fdisk (doesn't support gpt style partition tables) - use parted instead (not sure if you need to do this in a %pre section or if the default "part" parameter supports gpt in rhel6+) I used the following once: %pre # Partition alignment dd if=/dev/zero of=/dev/sda bs=512 count=1 parted -s /dev/sda mklabel gpt parted -s /dev/sda mkpart primary 2048s 1050624s parted -s /dev/sda mkpart primary 1052672s 100% Note the firs partition starts at 2048 (required for gpt) Hope that helps Angus On 1 August 2016 at 14:08, Felix von Leitner <[email protected]> wrote: > Hi! > > I need to make a kickstart configuration for Redhat 6.8. It is to form > the basis for installing a commercial product on it later, and that > product has some peculiar constraints on what they support and what not. > That is the reason why this is Redhat 6.8 in the first place. > > The system installation is supposed to go on sda, and this works fine, > but there is an sdb, too, and it is comparatively huge (> 20 TB). The > constraints of the product say that there should be two partitions on > sdb, one about 10% of it and one the rest of the space. > > The only way I could make this work is with LVM. It now turns out the > product utterly fails if installed on LVM. > > Please note that I'm not blaming anyone for anything here. I just want > to get this done. > > How do you make a partition 10% of the total size without using LVM in > kickstarter? I found no way, surely I must be missing something obvious. > > Would it help if I made a custom DVD with a newer Anaconda binary, say > from Fedora? > > Thanks, > > Felix > > _______________________________________________ > Kickstart-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/kickstart-list > --001a114dfa34a08a8a053902024d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div>If I understand your problem correctly, you must= label the disk as "gpt" which will allow you to specify larger (= >2TB) filesystems. Other gotchas: don't use fdisk (doesn't suppo= rt gpt style partition tables) - use parted instead (not sure if you need t= o do this in a %pre section or if the default "part" parameter su= pports gpt in rhel6+)<br><br></div><div>I used the following once:<br><br>%= pre<br># Partition alignment<br>dd if=3D/dev/zero of=3D/dev/sda bs=3D512 co= unt=3D1<br>parted -s /dev/sda mklabel gpt<br>parted -s /dev/sda mkpart prim= ary 2048s 1050624s<br>parted -s /dev/sda mkpart primary 1052672s 100%<br><b= r></div><div>Note the firs partition starts at 2048 (required for gpt)<br><= /div><div><br></div>Hope that helps<br></div>Angus<br><div class=3D"gmail_e= xtra"><br><div class=3D"gmail_quote">On 1 August 2016 at 14:08, Felix von L= eitner <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" targ= et=3D"_blank">[email protected]</a>></span> wrote:<br><blockquote c= lass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;= padding-left:1ex">Hi!<br> <br> I need to make a kickstart configuration for Redhat 6.8. It is to form<br> the basis for installing a commercial product on it later, and that<br> product has some peculiar constraints on what they support and what not.<br= > That is the reason why this is Redhat 6.8 in the first place.<br> <br> The system installation is supposed to go on sda, and this works fine,<br> but there is an sdb, too, and it is comparatively huge (> 20 TB). The<br= > constraints of the product say that there should be two partitions on<br> sdb, one about 10% of it and one the rest of the space.<br> <br> The only way I could make this work is with LVM. It now turns out the<br> product utterly fails if installed on LVM.<br> <br> Please note that I'm not blaming anyone for anything here. I just want<= br> to get this done.<br> <br> How do you make a partition 10% of the total size without using LVM in<br> kickstarter? I found no way, surely I must be missing something obvious.<br= > <br> Would it help if I made a custom DVD with a newer Anaconda binary, say<br> from Fedora?<br> <br> Thanks,<br> <br> Felix<br> <br> _______________________________________________<br> Kickstart-list mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">Kickstart-li= [email protected]</a><br> <a href=3D"https://www.redhat.com/mailman/listinfo/kickstart-list" rel=3D"n= oreferrer" target=3D"_blank">https://www.redhat.com/mailman/listinfo/kickst= art-list</a><br> </blockquote></div><br></div></div> --001a114dfa34a08a8a053902024d-- --===============3736894447166782141== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kickstart-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/kickstart-list --===============3736894447166782141==--