If you install anaconda and run list-harddrives-stub manually, you'll see what it's doing.
Basically, it returns something like this. sda 1907729.08594 sdb 1907729.08594 sdc 1907729.08594 the set $(list-harddrives) bit of code, assigns these values to the $1 $2 $3 ... variables. So when you need to refer to the drives in the partitioning snippet code, you can just refer to the first drive and $d1, then second as $d2 etc. Remember to escape the "$" in the snippet tho.. for example the snippet code would look like this.... set \$(list-harddrives) let numd=\$#/2 # Number of harddrives d1=\$1 # Device for first drive d2=\$3 # Device for first drive d3=\$5 # Device for first drive etc... Nice thing about this is it lets you make some decisions based on the existence of the "d" variables. So if "$d3" exists on a certain machine, add it to the config, otherwise, don't include it's partitioning info etc. Quite handy Hope this helps -C On Tue, Sep 11, 2012 at 5:45 AM, Bai Shen <baishen.li...@gmail.com> wrote: > Can you explain that in more detail? I'm not quite sure I follow what > it's supposed to do. Do I continue with $3 for the second drive and $4 for > the second drives size? > > Thanks. > > > On Mon, Sep 10, 2012 at 12:04 PM, Pablo Iranzo Gómez < > pablo.ira...@redhat.com> wrote: > >> Why don't you use: >> >> set $(list-harddrives) >> let numd=$#/2 # Number of harddrives >> d1=$1 # Device for first drive >> S1=$2 # size for first drive >> >> and then "--ondisk=$d1" ?? >> >> Regards >> Pablo >> >> >> ------------------------------ >> >> *De: *"Owen Mann" <owen.m...@interactivedata.com> >> *Para: *"cobbler mailing list" <cobbler@lists.fedorahosted.org> >> *Enviados: *Lunes, 10 de Septiembre 2012 18:02:11 >> *Asunto: *Re: [cobbler] Different partitioning requirements >> for identical blades >> >> >> Are you sure there /is/ a /dev/sda? If it’s an HP, try "cciss/c0d0". >> >> >> >> Owen Mann, Interactive Data Real Time Services >> 60 Codman Hill Rd, Boxborough, MA 01719 >> 978-795-3758 owen.m...@interactivedata.com >> >> “We have to remember that what we observe is not nature in itself, but >> nature exposed to our method of questioning.” -Werner Heisenberg >> >> >> >> *From:* cobbler-boun...@lists.fedorahosted.org [mailto: >> cobbler-boun...@lists.fedorahosted.org] *On Behalf Of *Bai Shen >> *Sent:* Monday, September 10, 2012 11:38 AM >> *To:* cobbler mailing list >> *Subject:* Re: [cobbler] Different partitioning requirements for >> identical blades >> >> >> >> How do you configure multiple disks when not using raid? I'm trying to >> specify --ondisk=sda and cobbler keeps giving me an error saying bad >> keyword '/dev/sda' >> >> Any suggestions? >> >> On Thu, Sep 6, 2012 at 1:15 PM, James Clendenan < >> james.clende...@gmail.com> wrote: >> >> Personally I would just use a tag and in the partitioning section test if >> that tag is set or not. It gets a bit more interesting when you start >> merging roles so keeping each of the tags as atomic as possible is useful. >> But I have had to do this when doing bake offs with different raid >> configurations in the past and it works well. >> >> James >> >> -- >> Sent from my phone. >> >> >> On 2012-09-06, at 7:11 PM, Bai Shen <baishen.li...@gmail.com> wrote: >> >> > I have a blade server that I'm building using cobbler to be a hadoop >> cluster. Since the data nodes like seeing the individual drives, I'm going >> to partition those differently than the other nodes. >> > >> > Is there a recommended method to handling the parititions? Everything >> else about the kickstart will be the same. >> > >> > Thanks. >> >> > _______________________________________________ >> > cobbler mailing list >> > cobbler@lists.fedorahosted.org >> > https://lists.fedorahosted.org/mailman/listinfo/cobbler >> _______________________________________________ >> cobbler mailing list >> cobbler@lists.fedorahosted.org >> https://lists.fedorahosted.org/mailman/listinfo/cobbler >> >> >> >> >> ******************************************************* >> This message (including any files transmitted with it) may contain >> confidential and/or proprietary information, is the property of Interactive >> Data Corporation and/or its subsidiaries, and is directed only to the >> addressee(s). If you are not the designated recipient or have reason to >> believe you received this message in error, please delete this message from >> your system and notify the sender immediately. An unintended recipient's >> disclosure, copying, distribution, or use of this message or any >> attachments is prohibited and may be unlawful. >> ******************************************************* >> _______________________________________________ >> cobbler mailing list >> cobbler@lists.fedorahosted.org >> https://lists.fedorahosted.org/mailman/listinfo/cobbler >> >> >> >> >> -- >> >> Pablo Iranzo Gómez (pablo.ira...@redhat.com) >> Senior Global Profesional Services Consultant (RHCA, RHCSS, RHCDS, RHCVA, >> RHCE, RHCSA, RHCSP) #110-215-852 >> Phone: +34 645 01 01 49 (CET/CEST) >> GnuPG KeyID: 0x5BD8E1E4 >> >> >> _______________________________________________ >> cobbler mailing list >> cobbler@lists.fedorahosted.org >> https://lists.fedorahosted.org/mailman/listinfo/cobbler >> >> > > _______________________________________________ > cobbler mailing list > cobbler@lists.fedorahosted.org > https://lists.fedorahosted.org/mailman/listinfo/cobbler > >
_______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler