Greg Chavez | 1 Sep 2011 21:12
Picon

Re: repo management and snapshots

On Tue, Aug 30, 2011 at 9:25 AM, Gerhardus Geldenhuis
<gerhardus.geldenhuis <at> gmail.com> wrote:
> Thanks for the response.
> I was also thinking about a sym link or hard link approach to save disk
> space. There is a cobbler hard link command mentioned on some of the online
> docs but this is not mentioned in the man page that I was reading but might
> be due to the version I am using.

Hardlink is a separate package that cobbler uses to minimize disk
usage.  I don't recall exactly, but I believe this is optional.  That
is, cobbler uses it if it's installed.  Hardlink is just a binary
utility that traverses one or more directory structures for identical
files; when it finds duplicates it sets one as the original and
replaces the duplicates with hard links.  So if you follow Christian's
advice, you could simply run the command on your repo directories.

> See this hard link flag made me wonder if
> there were already a solution in place. If I put some more thought into
> this... would this be something that is useful other people and could
> potentially be implemented more generically?
> Regards
>
> On Tue, Aug 30, 2011 at 12:17 PM, Christian Horn <chorn <at> fluxcoil.net> wrote:
>>
>> Hi,
>>
>> On Tue, Aug 30, 2011 at 12:08:44PM +0100, Gerhardus Geldenhuis wrote:
>> > I looked around through the documentation but could not get a
>> > description of
>> > how to do "repo" snapshots. I might have missed it or not have a full
(Continue reading)

mad | 2 Sep 2011 09:23
Picon
Favicon

Installing from NFS?

Hi!

Is it possible to replace the http repositories in the kickstart file
from cobbler with nfs or other sources?

In my case Cobbler does all the work. Import of distros, local mirroring
of repositories and so on. But everything is saved on a NAS.

The NAS is much faster when accessed via nfs directly instead of http
via the cobbler server.

So is it possible to turn this:

url --url=http://cobbler.server/cblr/ks_mirror/os1
repo --name=repo1 --baseurl=http://cobbler.server/cblr/repo_mirror/repo1

Into something like this:

url --url=nfs://nas.server:/ks_mirror/os1
repo --name=repo1 --baseurl=nfs://nas.server:/repo_mirror/repo1

Thank you for any help in advance.

Best regards
mad
Maria Lees | 2 Sep 2011 11:37

Specifying a driver module parameter in a cobbler / koan configuration

I would like to be able to specify a module parameter (specifically 'rss=0' for an Intel 10GBe NIC) for a
system that I am trying to PXE boot. I've not found anything in the documentation specific to module
parameters, but have tried "ixgbe.rss=0" as a kernel parameter. I didn't really expect that to work (and
it didn't) since the driver is a module rather than compiled into the kernel. Is there a solution that only
involves cobbler / kickstart or do I need to build a kernel with the driver compiled in?

Thanks,
Maria
Jörgen Maas | 2 Sep 2011 11:56
Picon

Re: Specifying a driver module parameter in a cobbler / koan configuration

On Fri, Sep 2, 2011 at 11:37 AM, Maria Lees <maria_lees <at> virtensys.com> wrote:
> I would like to be able to specify a module parameter (specifically 'rss=0' for an Intel 10GBe NIC) for a
system that I am trying to PXE boot. I've not found anything in the documentation specific to module
parameters, but have tried "ixgbe.rss=0" as a kernel parameter. I didn't really expect that to work (and
it didn't) since the driver is a module rather than compiled into the kernel. Is there a solution that only
involves cobbler / kickstart or do I need to build a kernel with the driver compiled in?
>

you could write a snippet that populates /etc/modprobe.d with the
appropiate information.
this can be done in your kickstart/autoyast/preseed file.

--

-- 
Grtz,
Jörgen Maas
Christian Horn | 2 Sep 2011 15:26
Favicon

Re: repo management and snapshots

I thought a bit more on this..

On Thu, Sep 01, 2011 at 03:12:32PM -0400, Greg Chavez wrote:
> On Tue, Aug 30, 2011 at 9:25 AM, Gerhardus Geldenhuis
> <gerhardus.geldenhuis <at> gmail.com> wrote:
> > Thanks for the response.
> > I was also thinking about a sym link or hard link approach to save disk
> > space. There is a cobbler hard link command mentioned on some of the online
> > docs but this is not mentioned in the man page that I was reading but might
> > be due to the version I am using.

The link things I have seen so far were all to be applied afterwards, so
one makes a copy and in cycles runs the job for hardlinking.  Actually
having the links created directly would be nice, this would need fewer
ressources.

symlinks as well as hardlinks could be used.

symlinks:
pro: could also point to different filesystems
con: you can not freely remove the original tree that got 'snapshotted'
     as symlinks could point here

hardlinks:
con: work only in one filesystem
pro: you can also remove the original tree, the rpm files stay until the 
     last reference is removed.

The repodata inside the repository that is beeing snapshotted would have
to be copied into the snapshot from what i see (or removed in the snapshot
(Continue reading)

Christian Horn | 2 Sep 2011 15:29
Favicon

deployments with multiple stages, WAS: Re: cobbler Digest, Vol 38, Issue 24

On Wed, Aug 31, 2011 at 04:07:00PM +0200, schuurma wrote:
> 
> I'm/we are using hardlinks to create snapshots van rpm downloads...
> We pull daily the rpm's from the internet.
> 
> For deploying Fedora we use 3 stages:
> 
> 1) incoming     (repo_mirror) # from the internet, changes daily
> 2) testing         (knmi_test)    # copy'd once from incoming to testing
> and then frozen !!! this is hardlink'd
> 3) production   (knmi_all)     # after acceptance the testing mirror is
> copied once to the production repo.
> 
> I think cobbler needs some kind of system to make it possible to deploy
> "OTAP" --- *Ontwikkeling Test Acceptatie en Productie*,
> or *Development, Testing, Acceptance and Production*, (*DTAP*)
> 
> For that we must be able to revert back from Production tot
> Acceptance/Testing fase...

You might want to have a look at http://katello.org/ .

Christian
Ed Deloye | 2 Sep 2011 15:33

Installing from NFS?

Hi Mad,

 

We use NFS for the install path. In our case we do the following:

 

1.     Edit the Distro and change the Kickstart metadata.

a.     I replace the entire string with this: ksdistro=distro_name

2.     In the profile add another Kicstart Metadata

a.     loccode=locx

3.     Create a snippet that sets the server name and directory path and then specifies the nfs line

4.     Include that snippet in the kickstart template.

 

Here is a sample of the snippet:

 

#set $loccode = $getVar('loccode', 'loc1')

#if $loccode == 'loc1'

#set $server = 'loc1_server'

#set $path = '/loc1_path'

#else if $loccode == 'loc2'

#set $server = 'loc2_server'

#set $path = '/loc2_path'

#else if $loccode == 'loc3'

#set $server = 'loc3_server'

#set $path = '/loc3_path'

#end if

 

# Network install

nfs --server $server --dir $path/$ksdistro

 

Ed

There are basically two types of people. People who accomplish things, and people who claim to have accomplished things. The first group is less crowded.
Mark Twain

 

_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
McEvoy, James | 2 Sep 2011 15:43
Picon
Favicon

RE: Installing from NFS?

There is an example of using "cobbler import" to do what you are looking for in the getting started page
https://fedorahosted.org/cobbler/wiki/UsingCobblerImport
Quote
What if you don't want to mirror the install content on your install server? Say you already have the trees
from all your DVDs and/or CDs extracted on a Filer mounted over NFS somewhere. This works too, with the
addition of one more argument:

    cobbler import --path=/path/where/filer/is/mounted --name=filer
--available-as=nfs://nfsserver.example.org:/is/mounted/here 

endQuote

 "cobbler import" is a wrapper for other cobbler commands so if  does not do exactly as you want you will need to
dig into the details of "cobbler distro", etc. to customize it.

  --jim

________________________________________
From: cobbler-bounces <at> lists.fedorahosted.org [cobbler-bounces <at> lists.fedorahosted.org] on
behalf of mad [mad <at> comsoft.de]
Sent: Friday, September 02, 2011 12:23 AM
To: cobbler <at> lists.fedorahosted.org
Subject: Installing from NFS?

Hi!

Is it possible to replace the http repositories in the kickstart file
from cobbler with nfs or other sources?

In my case Cobbler does all the work. Import of distros, local mirroring
of repositories and so on. But everything is saved on a NAS.

The NAS is much faster when accessed via nfs directly instead of http
via the cobbler server.

So is it possible to turn this:

url --url=http://cobbler.server/cblr/ks_mirror/os1
repo --name=repo1 --baseurl=http://cobbler.server/cblr/repo_mirror/repo1

Into something like this:

url --url=nfs://nas.server:/ks_mirror/os1
repo --name=repo1 --baseurl=nfs://nas.server:/repo_mirror/repo1

Thank you for any help in advance.

Best regards
mad
_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
marek.dohojda | 2 Sep 2011 17:00
Favicon

Re: Specifying a driver module parameter in a cobbler / koan configuration

How are you normally specifying this?  You can use meta keys to specify the options and then use that to create
file during kickstart.

----- Original Message -----
From: Maria Lees [mailto:maria_lees <at> virtensys.com]
Sent: Friday, September 02, 2011 04:37 AM
To: cobbler <at> lists.fedorahosted.org <cobbler <at> lists.fedorahosted.org>
Subject: Specifying a driver module parameter in a cobbler / koan configuration

I would like to be able to specify a module parameter (specifically 'rss=0' for an Intel 10GBe NIC) for a
system that I am trying to PXE boot. I've not found anything in the documentation specific to module
parameters, but have tried "ixgbe.rss=0" as a kernel parameter. I didn't really expect that to work (and
it didn't) since the driver is a module rather than compiled into the kernel. Is there a solution that only
involves cobbler / kickstart or do I need to build a kernel with the driver compiled in?

Thanks,
Maria
_______________________________________________
cobbler mailing list
cobbler <at> lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
maillists0 | 4 Sep 2011 16:57
Picon

Startup errors

I just installed cobbler-2.0.11-2.el5 on CentOS 5.6 using the rpm from
fedora.redhat.com. I get these errors when I run cobblerd -F:

Traceback (most recent call last):
  File "/usr/bin/cobblerd", line 91, in main
    app.core(api)
  File "/usr/lib/python2.4/site-packages/cobbler/cobblerd.py", line 50, in core
    do_xmlrpc_tasks(bootapi, settings, xmlrpc_port)
  File "/usr/lib/python2.4/site-packages/cobbler/cobblerd.py", line
76, in do_xmlrpc_tasks
    do_xmlrpc_rw(bootapi, settings, xmlrpc_port)
  File "/usr/lib/python2.4/site-packages/cobbler/cobblerd.py", line
115, in do_xmlrpc_rw
    server = remote.CobblerXMLRPCServer(('127.0.0.1', port))
  File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line
1742, in __init__
    SimpleXMLRPCServer.SimpleXMLRPCServer.__init__(self,args)
  File "/usr/lib64/python2.4/SimpleXMLRPCServer.py", line 473, in __init__
    SocketServer.TCPServer.__init__(self, addr, requestHandler)
  File "/usr/lib64/python2.4/SocketServer.py", line 330, in __init__
    self.server_bind()
  File "/usr/lib64/python2.4/SocketServer.py", line 341, in server_bind
    self.socket.bind(self.server_address)
  File "<string>", line 1, in bind
error: (99, 'Cannot assign requested address')

Sorta looks like it can't use port 25151 for  xml rpc, but lsof says
nothing is listening there. This is a fresh base-only install with
almost nothing running. No selinux. I'm stumped. Suggestions about
where to look next? What the heck is it complaining about?

Gmane