Superfluous RAID1 Member

2011-09-21 Diskussionsfäden n43w79

Hi,
Testing FAI v3.4.7 install for Debian Squeeze.
I am seeing the following on everything start up just before grub menu:
error: superfluous RAID member (2 found).
Google search suggests that this seems to be a Debian bug. I moved swap 
partition to the end but that didn't help! Is there a workaround for FAI?

Many thanks! Kwon

/srv/fai/config/disk_config/FAIRAID:
# 
disk_config disk1
primary  -  128- -
primary  -  5G - -
primary  -  5G - -
logical  -  1024   - -

disk_config disk2
primary  -  128- -
primary  -  5G - -
primary  -  5G  - -
logical  -  1024   - -

disk_config disk3
primary  -  128- -
primary  -  5G - -
primary  -  5G  - -
logical  -  1024   - -

#Software raid1
disk_config raid
raid1  /boot  disk1.1,disk2.1,disk3.1:spare ext2 rw,errors=remount-ro
raid1  /  disk1.3,disk2.3,disk3.3:spare ext4 rw,errors=remount-ro
raid1  /home  disk1.5,disk2.5,disk3.5:spare ext4 rw,nosuid 
createopts="-m 1" tuneopts="-c 0 -i 0"

raid1  swap   disk1.2,disk2.2,disk3.2:spare swap rw


Re: Superfluous RAID1 Member

2011-09-24 Diskussionsfäden n43w79

Still, it might be useful to try another install of the same host
using a disk configuration without spares. Would that work?

Yep! Installing with only two disks without the spare was successful. 
However, as soon as I add a hot spare partition and the error message 
came back. So, this problem is not FAI's problem. Thanks!


Unable to Set $DNSSRVS

2011-11-06 Diskussionsfäden n43w79

Hi, FAT version 3.4.7,
For testing, I have a file in /srv/fai/config/class/DEMO.var:
DNSSRVS='192.168.1.254 206.248.154.22 206.248.154.170'

And expect 
/srv/fai/nfsroot/live/filesystem.dir/usr/lib/fai/create_resolv_conf(Quote):


  for dnshost in $DNSSRVS ; do
echo "nameserver $dnshost" >>/etc/resolv.conf
  done

to create /etc/resolv.conf like this:

nameserver 192.168.1.254
nameserver 206.248.154.22
nameserver 206.248.154.170

Q1. What am I doing wrong?
Q2. Also, how do I set DNSSRVS_1?
Thanks!
Kwon


Re: Unable to Set $DNSSRVS

2011-11-07 Diskussionsfäden n43w79

Instead of echo ...>>  use ainsl(1).
You must also use $target/etc/resolv.conf instead of /etc/resolv.conf


Hi, Thomas, thanks!
But the echo command is part of the file "create_resolv_conf" which came 
with FAI v3.4.7? I thought that is the file generates /etc/resolv.conf? No?

Cheers!


Fai 4.0.1 Compatible with Debian Lenny?

2012-05-23 Diskussionsfäden n43w79

Hi,
Found the latest fai .deb packages here:
http://cdn.debian.net/debian/pool/main/f/fai/fai-server_4.0.1_all.deb
http://cdn.debian.net/debian/pool/main/f/fai/fai-doc_4.0.1_all.deb
Our internal pxe/samba/nfs/dhcp server is still running lenny.
Q1. Is the .deb packages above compatible with lenny?
Q2. If so, what are the gotchas installing the above packages into 
debian lenny?

Q3. Are there any documentation or howto on this subject?
Thanks!
Kwon


Re: Fai 4.0.1 Compatible with Debian Lenny?

2012-05-25 Diskussionsfäden n43w79

On 5/25/2012 11:17, Toomas Tamm wrote:

On Fri, 2012-05-25 at 15:44 +0200, Thomas Lange wrote:

On Wed, 23 May 2012 23:28:46 -0400, n43w79  said:


 >  Found the latest fai .deb packages here:
 >  http://cdn.debian.net/debian/pool/main/f/fai/fai-server_4.0.1_all.deb
 >  http://cdn.debian.net/debian/pool/main/f/fai/fai-doc_4.0.1_all.deb
 >  Our internal pxe/samba/nfs/dhcp server is still running lenny.
 >  Q1. Is the .deb packages above compatible with lenny?
No.


I have deleted the original question, thus may miss the target, but I
think the newest FAI can co-operate with the lenny pxe, nfs and dhcp
servers just fine. As long as the FAIhost itself is running a newer
Debian release, you should not have a need to upgrade the rest of your
infrastructure yet.

Toomas

Thomas and Toomas: Thanks! Will try it out with lenny with a test 
machine. Also received the following from  to 
 but didn't get posted? Quote:


"If you know what you're doing then it's totally possible to have for 
instance an outdated SuSE Linux as the pxe/samba/nfs/dhcp server, which 
tells the clients to boot a Debian Sid nfsroot, which happily installs 
Ubuntu or RedHat distributions. Yes, it's that flexible. Why would 
someone do such an insane thing? Don't look at me to closely or I might 
have to hurt you. :p


"A1: I don't know.
A2: If you decide to run with differing versions between fai-server, 
fai-nfsroot and install client then you need to get familiar with the 
fai configspace hooks. At least in fai 3.x there was a strong assumption 
that all three software components run on the same OS and some files 
(e.g. /etc/apt/sources.list) were copied from the nfsroot to the install 
client and could wreak havok if this assumptions was violated. A3: I 
don't know, since I don't try to cross-install."




Re: LVM is "inactive" on first reboot after installation

2012-06-12 Diskussionsfäden n43w79

I'm trying to set up LVM with FAI 3.4.7 on Debian 6. The various
partitions are created, and things install fine, but on reboot all the
volume groups except the the one that has the root file system ("/") are
'inactive'.


Please try:
-   disk_config cciss/c0d0 disklabel:msdos fstabkey:uuid
+   disk_config disk1 disklabel:msdos fstabkey:uuid

-   vg  vgsys   cciss/c0d0p2
+   vg  vgsys   disk1


Re: LVM is "inactive" on first reboot after installation

2012-06-12 Diskussionsfäden n43w79

"disk1" didn't work with the "vg" line; the correct value is "disk1.2".


Sorry! Here is my working version:
disk_config disk1 fstabkey:uuid
primary  /boot  128   ext2  rw,errors=remount-ro
primary  swap   1024  swap  rw
primary  -  0-- -

disk_config lvm
vgvg0   disk1.3
vg0-root  / 10Gext3  rw,errors=remount-ro
vg0-tmp   /tmp  1024   ext3  rw
vg0-home  /home 20G-   ext3  rw,nosuid  createopts="-m 1" 
tuneopts="-c 0 -i 0"

vg0-var   /var  10Gext3  rw
vg0-www   /var/www  10Gext3  rw
vg0-usr   /usr  10Gext3  rw
vg0-srv   /srv  10Gext3  rw
vg0-tftp  /tftpboot 10Gext3  rw

Hope the above helps?


Re: LVM is "inactive" on first reboot after installation

2012-06-12 Diskussionsfäden n43w79

What release of Debian, and what version of "lvm2" are you using?


My FAI server:
# cat /etc/debian_version
6.0.3
# dpkg --list | grep lvm2
ii  lvm2  2.02.66-5  The Linux Logical Volume Manager
# uname -a
Linux fai0 2.6.32-5-686 #1 SMP Thu Nov 3 04:23:54 UTC 2011 i686 GNU/Linux
# dpkg --list | grep fai
ii  fai-client  3.4.8  Fully Automatic Installation client package
ii  fai-doc  3.4.8  Documentation for FAI
ii  fai-quickstart  3.4.8  Fully Automatic Installation quickstart package
ii  fai-server  3.4.8  Fully Automatic Installation server package
ii  fai-setup-storage  3.4.8  automatically prepare storage devices

System installed by FAI:
# cat /etc/debian_version
6.0.5
# dpkg --list | grep lvm2
ii  lvm2  2.02.66-5  The Linux Logical Volume Manager
# uname -a
Linux opsi1 2.6.32-5-686 #1 SMP Sun May 6 04:01:19 UTC 2012 i686 GNU/Linux


Re: Stuck before first fai-client install is done

2013-02-18 Diskussionsfäden n43w79

On 2/15/2013 20:20, George VerDuin wrote:

If not -- I'll slog away until I have joy in holding my first
fai-built client.

Hi, Geo,
Sorry to here that you are having so much trouble. I have installed a few HDDs with the 
following home-brew script with a fresh net install of Debian Squeeze 6.0.6 (using FAI of 
course) but without DHCP. Perhaps you may want to try? It takes a long time because of 
the command "/usr/sbin/fai-setup -v". It should provide you with a functional 
install of FAI. Good luck!
=Cut=
#!/bin/bash
# Licensed under GNU GPL version 2.0 or above
# Install fai-server script for Debian Squeeze
tftpDir=/srv/tftp

cp_pxe_env(){
tftpDir=/srv/tftp
[ ! -d ${tftpDir}/pxelinux.cfg ] && \
cd ${tftpDir} && mkdir ${tftpDir}/pxelinux.cfg && ln -s ./fai/pxelinux.0 .
}

create_boot_txt(){
[ ! -f ${tftpDir}/pxelinux.cfg/boot.txt ] && \
cd ${tftpDir}/pxelinux.cfg && \
cat > boot.txt < default < password/' 
/etc/fai/make-fai-nfsroot.conf
sed -i 's/^FAI_ROOTPW=/#FAI_ROOTPW=/' /etc/fai/make-fai-nfsroot.conf
sed -i '/^#FAI_ROOTPW=/ a\FAI_ROOTPW='\'\$1\$3Xjc11\$dFOfK6h.hJ9FXwT5owjX61\''
' /etc/fai/make-fai-nfsroot.conf
/usr/sbin/fai-setup -v
cp_pxe_env
create_boot_txt && create_default
! grep -q ^/srv/fai/config /etc/exports && \
sed -i 's|^/srv/fai/nfsroot\(.*\)$|&\
/srv/fai/config\1|' /etc/exports
[ ! -d /srv/fai/config ] && mkdir -p /srv/fai/config && \
cp -a /usr/share/doc/fai-doc/examples/simple/* /srv/fai/config
/etc/init.d/nfs-kernel-server restart
/etc/init.d/tftpd-hpa restart
}

#Function calls
install_fai
End-Cut=


Broken Links at

2013-05-04 Diskussionsfäden n43w79

The following links are broken:
http://linux-adm.de/2011/09/06/howto-setup-a-fai-install-server-on-debian-squeeze
http://linux-adm.de/2011/09/how-to-add-debian-squeeze-to-your-debian-lenny-fai-install-server/
Can anyone provides a solution?
Cheers!


Installing fai-server Without isc-dhcp-server

2013-07-10 Diskussionsfäden n43w79

Trying to install fai-server 4.0.6 and apt-get or aptitude shall install the 
following (quote):
The following NEW packages will be installed:
  debconf-utils{a} debootstrap{a} fai-client{a} fai-server file{a}
  isc-dhcp-server{a} libapt-pkg-perl{a} libevent-2.0-5{a}
  libfile-copy-recursive-perl{a} libgraph-perl{a} libgssglue1{a}
  libheap-perl{a} libmagic1{a} libnfsidmap2{a} libproc-daemon-perl{a}
  libproc-processtable-perl{a} libtirpc1{a} mime-support{a} nfs-common{a}
  nfs-kernel-server{a} openbsd-inetd{a} python{a} python-minimal{a}
  python2.7{a} python2.7-minimal{a} rpcbind{a} tftpd-hpa{a} update-inetd{a}
0 packages upgraded, 28 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,464 kB of archives. After unpacking 24.8 MB will be used.
Q. Is there a way NOT to install isc-dhcp-server as I already have dnsmasq on 
our network.
Cheers!
Kwon


Re: Installing fai-server Without isc-dhcp-server

2013-07-11 Diskussionsfäden n43w79

Install it, but leave it unconfigured if there's a dnsmasq running
somewhere else?


Thank you all for replying! I am trying to reduce the size of the install on 
disk. A base install so far had taken up 700MB!


Re: How to turn the FAI nfsroot into a file system for diskless clients

2014-02-25 Diskussionsfäden n43w79

On 2/14/2014 07:45, Thomas Lange wrote:

Yesterday, I got a question about using the FAI nfsroot for a
diskless client setup. I knew, this should be possible, since the FAI
nfsroot is used for diskless client booting. So, I just tried it
myself. It'v really very, very easy! Here's how I've done that:

http://wiki.fai-project.org/wiki/Use_nfsroot_for_diskless_clients


That's cool! Thank you.


Re: fai.conf changes

2014-02-28 Diskussionsfäden n43w79

On 6/4/2012 07:36, Thomas Lange wrote:

You should read the NEWS file. This describes important things that
have changed.


Hello, to an old thread
I had read the NEWS files at:
/usr/share/doc/fai-client/NEWS.Debian and
/usr/share/doc/fai-server/NEWS.Debian

but cannot find anything about fai.conf except for "the variable $FAI does not need 
to be set in fai.conf"
My problem is that I have in my /etc/fai/fai.conf:
FAI_CONFIG_SRC=nfs://fai0.qc.ca/srv/fai/config

But the above line was not copied over to /srv/fai/nfsroot/etc/fai/fai.conf by 
fai-setup?
I am using this as a guide for a wheezy 4.x install:
http://wiki.fai-project.org/wiki/Installation_walkthrough
Thanks!


Re: fai.conf changes

2014-02-28 Diskussionsfäden n43w79

On 2/28/2014 14:41, Thomas Lange wrote:

FAI_CONFIG_SRC in fai.conf is not copied into the nfsroot any more.
Use fai-chboot -u instead.


I have tried (as root):
# fai-chboot -u nfs://fai0.qc.ca/srv/fai/config
It says (quote): "No host specified."
Q. What's the syntax?
I need: FAI_CONFIG_SRC=nfs://fai0.qc.ca/srv/fai/config
Many thanks!


Re: fai.conf changes

2014-02-28 Diskussionsfäden n43w79

On 2/28/2014 22:15, Thomas Lange wrote:

# fai-chboot -u nfs://fai0.qc.ca/srv/fai/config It says (quote):
"No host specified."



Q. What's the syntax?

Please read the man page of fai-chboot. It's:

fai-chboot -u nfs://fai0.qc.ca/srv/fai/config clientname

Hi, I read the man page and I had tried the following first two commands before 
posting:
# fai-chboot -u nfs://fai0.qc.ca/srv/fai/config fai0.qc.ca
# fai-chboot -u nfs://fai0.qc.ca/srv/fai/config fai0
# fai-chboot -u nfs://fai0.qc.ca/srv/fai/config default
# fai-chboot -u nfs://fai0.qc.ca/srv/fai/config demohost
All four above getting the same message "No host specified."? :(


Re: [Solved] fai.conf changes

2014-03-02 Diskussionsfäden n43w79

On 2/28/2014 22:49, n43w79 wrote:

Hi, I read the man page and I had tried the following first two
commands before posting: # fai-chboot -u
nfs://fai0.qc.ca/srv/fai/config fai0.qc.ca # fai-chboot -u
nfs://fai0.qc.ca/srv/fai/config fai0 # fai-chboot -u
nfs://fai0.qc.ca/srv/fai/config default # fai-chboot -u
nfs://fai0.qc.ca/srv/fai/config demohost All four above getting the
same message "No host specified."? :(


Hello again,
It appears that the command:
# /usr/sbin/fai-chboot -v -u nfs://host/srv/fai/config host
is broken!? My solution is the following bash-script-one-liner:

#!/bin/bash
Dir=${Dir:=/srv/fai/nfsroot/etc/fai} && \
$(! grep -q '^FAI_CONFIG_SRC=' ${Dir}/fai.conf) && \
cd ${Dir} && sed -i "/^#FAI_CONFIG_SRC/ a\
FAI_CONFIG_SRC=nfs://$(hostname -f)/srv/fai/config
" ./fai.conf || \
( [[ ! $? ]] && echo "Error: Exec ${FUNCNAME}")

Note: Broken into multiple lines for readability, if any? :)
Cheers!


Re: Framebuffer, Fai client image logo

2014-03-04 Diskussionsfäden n43w79

On 12/11/2013 08:09, Bugra Cakmak wrote:

Hi Guys, I want to put background image on FAI client installation.
Is there anyway to do that kind of system not like ubiquinty or
debian installer, just raw image in here


Hello, assuming you are using grub2; please try:

#!/bin/bash
grub2_framebuffer(){
echo "Executing: ${FUNCNAME}"
echo "## ./$(basename $0):${FUNCNAME} by root at $(date +"%m/%d/%Y:%H:%M:%N")" 
>> /root/install_history.log
GrubURL=${GrubURL:=http://www.mach82.ca/insecure/13}
GrubJpg=${GrubJpg:=abstract_butterfly_1280x1024.jpg}
[ ! -f /boot/${GrubJpg} ] && cd /boot && wget ${GrubURL}/${GrubJpg} && \
sed -i '/^GRUB_CMDLINE_LINUX=/ c\GRUB_CMDLINE_LINUX="vga=0x31a"' /etc/default/grub 
&& \
sed -i '/^#GRUB_GFXMODE=/ a\GRUB_GFXMODE=1280x1024\
GRUB_BACKGROUND=\/boot\/abstract_butterfly_1280x1024.jpg' /etc/default/grub && 
update-grub
}
# Function calls
grub2_framebuffer

Note1: Must change GrubURL and GrubJpg;
Note2: Be careful with long-lines;
Note3: Place the above at $FAI_CONFIGDIR/scripts/LAST/99-last; and
Note4: Need more information, feel free to contact me off-list.
Cheers,
Q.


Re: linux-image-3.12-0.bpo.1-amd64 dracut: FATAL: Don`t know how to handle root=/srv/fai/nfsroot

2014-04-25 Diskussionsfäden n43w79

On 4/25/2014 07:38, René Bleisch wrote:

I just tried a test installation with NFSROOT=/srv/fai/nfsroot and
indeed the installation stops with "mount.nfs: access denied by
server while mounting 130.92.143.225:/srv/fai/nfsroot"


I have a similar issue and fixed by placing the following in /etc/fai/fai.conf:
FAI_CONFIG_SRC=nfs:///srv/fai/config
Cheers!


Failed to Fetch binary-armhf/Packages?

2014-05-08 Diskussionsfäden n43w79

Hi,
Trying to install FAI to a CubieBoard:
And received the following error message:
W: Failed to fetch 
http://fai-project.org/download/dists/wheezy/koeln/binary-armhf/Packages
404 Not Found.
Any help would be much appreciated.
Cheers!
Kwon


Preserve Existing RAID1 HDDs with LVM2

2015-12-08 Diskussionsfäden n43w79
Hello,
I am trying to re-install but to preserve the existing /dev/sd{a,b} as follows 
with fatal error:
# 

disk_config disk1 preserve_always:all
primary  -  128- -
primary  -  1024   - -
primary  -  0- - -

disk_config disk2 sameas:disk1

#Software raid1
disk_config raid preserve_always:all
raid1/boot  disk1.1,disk2.1  ext2  rw,errors=remount-ro
raid1swap   disk1.2,disk2.2  swap  rw
raid1-  disk1.3,disk2.3  - -

# define volume groups
disk_config lvm preserve_always:all
vgvg0   md2
vg0-root  / 20Gext3  rw,errors=remount-ro
vg0-tmp   /tmp  1024   ext3  rw
vg0-home  /home 190G   ext3  rw,nosuid createopts="-m 1" tuneopts="-c 0 -i 
0"
vg0-var   /var  20Gext3  rw
vg0-www   /var/www  20Gext3  rw
vg0-usr   /usr  20Gext3  rw
vg0-srv   /srv  20Gext3  rw
===End===
Can anyone help?
Kwon


Re: Preserve Existing RAID1 HDDs with LVM2

2015-12-09 Diskussionsfäden n43w79
> Which FAI version are you using? What's the exact error message?
> 
Was using an old version 3.4.8. Using 4.1 has a different error message but 
didn't keep track. Ended up reformatting the two drives. Please consider the 
issue closed. Thanks again for your prompt reply.