Re: SW_RAID in 3.x

2007-08-22 Diskussionsfäden Holger Levsen
Hi,

On Wednesday 22 August 2007 18:57, martin f krafft wrote:
> > 1. Just copy the configuration from 2.10 (minus the mkinitrd script),
> > 2. download new versions from the wiki, or
> > 3. avoid software raid?
> 4. Use the hook on the wiki to create the arrays, make sure to
>install mdadm, a Debian kernel image and initramfs-tools on the
>clients, and it should all work.

5. in case of success: split the wiki page in two: once for sarge and new, for 
etch :-)


regards & thanks to whoever does this,
Holger


pgp2WZ4ytSCgN.pgp
Description: PGP signature


long-time missing FAI questionnaire finally added

2007-08-22 Diskussionsfäden Thomas Lange
Hi,

a new FAI questionnaire which was missing since the very beginning of
FAI was now filled out and added to
http://www.informatik.uni-koeln.de/fai/q-answers.html#mrfai

It may be interesting for you.
-- 
regards Thomas


Re: SW_RAID in 3.x

2007-08-22 Diskussionsfäden martin f krafft
also sprach Per Foreby <[EMAIL PROTECTED]> [2007.08.22.1819 +0200]:
> 1. Just copy the configuration from 2.10 (minus the mkinitrd script),
> 2. download new versions from the wiki, or
> 3. avoid software raid?

4. Use the hook on the wiki to create the arrays, make sure to
   install mdadm, a Debian kernel image and initramfs-tools on the
   clients, and it should all work.

-- 
martin;  (greetings from the heart of the sun.)
  \ echo mailto: !#^."<*>"|tr "<*> mailto:"; [EMAIL PROTECTED]
 
"it isn't pollution that's harming the environment.
 it's the impurities in our air and water that are doing it." 
  - dan quayle
 
spamtraps: [EMAIL PROTECTED]


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


SW_RAID in 3.x

2007-08-22 Diskussionsfäden Per Foreby

I have a few computers using raid1, and in 2.10 I used the tricks at
http://faiwiki.informatik.uni-koeln.de/index.php/User:Svamberg/Software_RAID.
In addition to this, I had to run mkinitrd and create mdadm.conf in a 
script.


Since sarge there has been some changes in software raid, making 
mdadm.conf mandatory, which makes me wonder about the status of the wiki 
page:


1. Just copy the configuration from 2.10 (minus the mkinitrd script),
2. download new versions from the wiki, or
3. avoid software raid?

/Per


Re: FAI 3.2 released

2007-08-22 Diskussionsfäden Per Foreby

On Wed, 22 Aug 2007, Thomas Lange wrote:


Then root-path is not needed in dhcpd.conf.


Not needed, but conveniant since make-fai-bootfloppy doesn't add 
the nfsroot parameter by default.



   > By the way, why does burniso() in fai-cd use cdrecord? Shouldn't it be
   > wodim these days?
As long as cdrecord is a link to wodim, I prefer to call cdrecord,
since more people know what this program will do.


The link is the transition cdrecord package. For users who have caught 
up with the name change and install the wodim package, the is no 
/usr/bin/cdrecord. So IMHO it would be better if scripts and 
documentation used wodim.


/Per


Re: FAI 3.2 released

2007-08-22 Diskussionsfäden Thomas Lange
> On Wed, 22 Aug 2007 17:41:17 +0200 (CEST), Per Foreby <[EMAIL PROTECTED]> 
> said:

> Having the config space and the nfsroot on the CD is no problem as long 
> as it isn't used. But if I use this in menu.lst:
>...  root=/dev/nfs ip=::dhcp  FAI_ACTION=install 
FAI_FLAGS=verbose,sshd

> together with my current dhcp configuration:

>option root-path "/srv/fai/nfsroot,rsize=8192,...";
> or maybe use nfsroot as a kernel parameter, the configuration on the CD 
> should be ignored.
Yep. You can also add this:

ip=dhcp root=/dev/nfs nfsroot=/srv/fai/nfsroot

Then root-path is not needed in dhcpd.conf.

> By the way, why does burniso() in fai-cd use cdrecord? Shouldn't it be 
> wodim these days?
As long as cdrecord is a link to wodim, I prefer to call cdrecord,
since more people know what this program will do.

-- 
regards Thomas


Re: FAI 3.2 released

2007-08-22 Diskussionsfäden Per Foreby

On Wed, 22 Aug 2007, Thomas Lange wrote:


On Wed, 22 Aug 2007 16:23:37 +0200 (CEST), Per Foreby <[EMAIL PROTECTED]> said:


   > But make-fai-bootfloppy uses $NFSROOT/boot/vnlinu?-*. If that is a
   > standard debian kernel it won't work without initramfs.
Yes, and both won't fit onto a 1.4M floppy.


Thats true for the fai kernel as well. I have to use 
"make-fai-bootfloppy -B". But by increasing $size further, it should be 
possible to make initrd.img* fit, or am I wrong?




   >> You can create a fai-cd that only includes the kernel and initrd and
   >> modify the grub menu, to get the nfsroot via NFS.
   > Do you meen that I should use -g to supply a menu.lst like the one
   > make-fai-boot creates, and then use "-m /empty/dir"?
Yes, give it a try. It will also put the config space and the nfsroot
into this image.


Having the config space and the nfsroot on the CD is no problem as long 
as it isn't used. But if I use this in menu.lst:


  ...  root=/dev/nfs ip=::dhcp  FAI_ACTION=install FAI_FLAGS=verbose,sshd

together with my current dhcp configuration:

  option root-path "/srv/fai/nfsroot,rsize=8192,...";

or maybe use nfsroot as a kernel parameter, the configuration on the CD 
should be ignored.


The reason why I want this minimal boot-CD is to be able to change the 
configuration without creating a new CD every time.


By the way, why does burniso() in fai-cd use cdrecord? Shouldn't it be 
wodim these days?


/Per



Re: FAI 3.2 released

2007-08-22 Diskussionsfäden Thomas Lange
> On Wed, 22 Aug 2007 16:23:37 +0200 (CEST), Per Foreby <[EMAIL PROTECTED]> 
> said:

> But make-fai-bootfloppy uses $NFSROOT/boot/vnlinu?-*. If that is a 
> standard debian kernel it won't work without initramfs.
Yes, and both won't fit onto a 1.4M floppy.

>> You can create a fai-cd that only includes the kernel and initrd and
>> modify the grub menu, to get the nfsroot via NFS.
> Do you meen that I should use -g to supply a menu.lst like the one 
> make-fai-boot creates, and then use "-m /empty/dir"?
Yes, give it a try. It will also put the config space and the nfsroot
into this image.

-- 
regards Thomas


Re: FAI 3.2 released

2007-08-22 Diskussionsfäden Per Foreby

On Wed, 22 Aug 2007, Holger Levsen wrote:


Hi,

On Wednesday 22 August 2007 15:04, Per Foreby wrote:

Will softupdate work if a use fai-client 3.2 against a 3.1.8 server?


With softupdates you don't use a server - except one to hold the configuration
files.


But the configuration from 3.1.8 might be missing something that the 3.2 
client expects. And the configuartion path might be changed.


However, I gave it a try, and everything looks fine. When it comes to 
the recently discussed bugs, fai 3.2 finds the old list of classes, so 
-N is not mandatory any more, but /var/lib/fai/config is still not 
unmounted.


/Per


Re: FAI 3.2 released

2007-08-22 Diskussionsfäden Per Foreby



On Wed, 22 Aug 2007, Thomas Lange wrote:


On Wed, 22 Aug 2007 15:04:52 +0200 (CEST), Per Foreby <[EMAIL PROTECTED]> said:


   > Will softupdate work if a use fai-client 3.2 against a 3.1.8 server?
I'm not sure, but I guess it should work.


Ok, I'll give it a try an report any success. Since I used your 
repository in sources.list, and is in the middle of a major upgrade, 
about half of the clients have fai-client 3.1.8 and the rest 3.2, so I 
have a perfect test environment.



   > What happens to the small boot cd (make-fai-bootfloppy -B -i ...). Is
   > that option still available now that fai uses initramfs?
It's still available and was not modified, so it does not support
the initrd.


But make-fai-bootfloppy uses $NFSROOT/boot/vnlinu?-*. If that is a 
standard debian kernel it won't work without initramfs.


I can of course edit make-fai-bootfloppy to make is use the kernel from 
fai-kernels, but I presume that this package won't be updated in the 
future.



   > (I use that method for older PXE bios versions that don't honour
   > next-server.)
You can create a fai-cd that only includes the kernel and initrd and
modify the grub menu, to get the nfsroot via NFS.


Do you meen that I should use -g to supply a menu.lst like the one 
make-fai-boot creates, and then use "-m /empty/dir"?


/Per


Re: FAI 3.2 released

2007-08-22 Diskussionsfäden Holger Levsen
Hi,

On Wednesday 22 August 2007 15:04, Per Foreby wrote:
> Will softupdate work if a use fai-client 3.2 against a 3.1.8 server?

With softupdates you don't use a server - except one to hold the configuration 
files.


regards,
Holger


pgpJ44sRxiyRz.pgp
Description: PGP signature


Success with root on LVM using the Gervai Raid and LVM hook

2007-08-22 Diskussionsfäden Terry Burton
Hi.

Just a quick report to say that I have successfully used the Gervai
RAID and LVM hook[1] to FAI install a bunch of new hosts with root on
LVM, using FAI as shipped with Debian Etch.

Note: I have no need for RAID but it should be easy to generalise the
following steps to work with the Root on LVM on RAID approach.

Besides installing the SW_RAID script as described by its
documentation, it was also necessary to:

* Append dm_mod to the kernelmodules in class/20-hwdetect.source, so
that the booted install system becomes LVM capable.

* Create a configuration script (included below) that that adds the
device mapper modules to /etc/initramfs-tools/modules and rebuilds the
initramfs at the end of installation. (The presence of these modules
causes update-initramfs to include the relevant libraries and binaries
for the initrd to support LVM.)

Irrespective of whether or not LVM/RAID support will be included
within vanilla FAI anytime soon, it could be immediately useful to
amend the default FAI tasklist somehow so that at a stage after
installing the packages it will check the contents of a variable, say
INITRD_MODULES, which unless empty it appends to
$target/etc/initramfs-tools/modules and invokes $ROOTCMD
update-initramfs -u. This would give you some simple control of what
lands in your initrd, avoiding the need for my fixup script.

However, I think that is would be very valuable to support Root on LVM
(on RAID) since this is a supported option by the "new" Debian
Installer and nowadays the BusyBox-based initramfs makes debugging of
boot problems much easier that with the previous system.


Hope this helps,

Tez


[1] 
http://faiwiki.informatik.uni-koeln.de/index.php/User:Gervai/Raid_and_LVM_hook



Contents of scripts/SW_RAID/10-misc:

#! /bin/bash

error=0 ; trap "error=$((error|1))" ERR

cat <> $target/etc/initramfs-tools/modules
dm_mod
dm_mirror
dm_snapshot
EOF

$ROOTCMD update-initramfs -u

# Fix the incorrect /dev/ entry that the SW_RAID helper makes in fstab
with root on LVM
# - Obviously it would be better to fix the Gervai RAID and LVM hook
in the first place
sed -ie '/^\/dev\/ /d' /tmp/target/etc/fstab


Re: FAI 3.2 released

2007-08-22 Diskussionsfäden Thomas Lange
> On Wed, 22 Aug 2007 15:04:52 +0200 (CEST), Per Foreby <[EMAIL PROTECTED]> 
> said:

> Will softupdate work if a use fai-client 3.2 against a 3.1.8 server?
I'm not sure, but I guess it should work.

> What happens to the small boot cd (make-fai-bootfloppy -B -i ...). Is 
> that option still available now that fai uses initramfs?
It's still available and was not modified, so it does not support
the initrd.

> (I use that method for older PXE bios versions that don't honour 
> next-server.)
You can create a fai-cd that only includes the kernel and initrd and
modify the grub menu, to get the nfsroot via NFS.
-- 
regards Thomas


Re: FAI 3.2 released

2007-08-22 Diskussionsfäden Per Foreby

Two questions:

Will softupdate work if a use fai-client 3.2 against a 3.1.8 server?

What happens to the small boot cd (make-fai-bootfloppy -B -i ...). Is 
that option still available now that fai uses initramfs?
(I use that method for older PXE bios versions that don't honour 
next-server.)


/Per


FAI-CD 3.2 ISO image available

2007-08-22 Diskussionsfäden Thomas Lange
The new FAI-CD 3.2 ISO image for i386 is available. Get it from:

  http://www.informatik.uni-koeln.de/fai/fai-cd/
-- 
regards Thomas