Okay, I was wrong.  It lists all four drives.  I didn't realize it was a scrollable list.


On Tue, Sep 11, 2012 at 11:04 AM, Bai Shen <baishen.lists@gmail.com> wrote:
Okay, so I changed the snippet to be after the %pre instead of before.  Now it's giving me an interactive prompt asking if I want to use the entire drive or just the free space.  It also only lists sdb and sdc.

However, when I did autopart, all four drives showed up.


On Tue, Sep 11, 2012 at 10:12 AM, Corey Kovacs <corey.kovacs@gmail.com> wrote:
install anaconda on a running machine....

/usr/share/anaconda/list-harddrives-stub

The "set" in the partitioning snippet is not a cheetah macro command, it's a shell command. The partitioning snippet gets executed as a %pre section in the kickstart.

-C


On Tue, Sep 11, 2012 at 8:07 AM, Bai Shen <baishen.lists@gmail.com> wrote:
I tried doing that and it says that set is not a recognized command.  I put a # in front like I did for the other set and now it can't find the kickstart file.  Not sure if it's related or not.

Also, how do you run list-harddrives-stub manually?  It doesn't show up as a command on my system.


On Tue, Sep 11, 2012 at 8:12 AM, Corey Kovacs <corey.kovacs@gmail.com> wrote:
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.lists@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.Iranzo@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.Mann@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.mann@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-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@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.clendenan@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.lists@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.Iranzo@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



_______________________________________________
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