Filed under Uncategorized on April 23 | 0 comments
We started testing some NIC bonding on our RHEL 5 VM and we will be testing on real hardware soon. The ultimate goal is to add this setup in our kickstart file.
We created these files for testing:
/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=dhcp
ONBOOT=yes
USERCTL=no
IPV6INIT=no
Added these lines to /etc/sysconfig/network-scripts/ifcfg-eth0 and ifcfg-eth1:
MASTER=bond0
SLAVE=yes
in /etc/modprobe.conf we added these lines:
alias bond0 bonding
options bond0 miimon=100 mode=1
We just need to test on some physical servers and see how all this works now.
Reference:
Filed under Linux, software on April 14 | 0 comments
I found a few documents on the Internet about what I needed to do to rebuild the DVD to integrate my kickstart file. Unfortunately none of the solution had all the needed command in one place for my setup to work so here is my cookbook from the different sources.
First I mounted the dvdrom with the CentOS DVD to /mnt/cdrom:
mount /dev/cdrom /mnt/cdrom
Then I copied a few files:
- cd /tmp
- cp -R /mnt/cdrom/isolinux ./
- cp -R /mnt/cdrom/CentOS ./isolinux/
- cp -R /mnt/cdrom/* ./isolinux/ [say yes to overwrite the TRANS.TBL]
- cp -R /mnt/cdrom/.discinfo ./isolinux/
- cp ks.cfg /tmp/isolinux/
For my RHEL5.1 rebuild I did similar commands but the paths are a bit different:
- cd /tmp
- cp -R /mnt/cdrom/isolinux ./
- cp -R /mnt/cdrom/Server ./isolinux/
- cp -R /mnt/cdrom/VT ./isolinux/
- cp -R /mnt/cdrom/images ./isolinux/
- cp -R /mnt/cdrom/Cluster ./isolinux/
- cp -R /mnt/cdrom/ClusterStorage ./isolinux/
- cp /mnt/cdrom/* ./isolinux/ [say yes to overwrite the TRANS.TBL]
- cp -R /mnt/cdrom/.discinfo ./isolinux/
- cp ks.cfg /tmp/isolinux/
I had to change permissions on 2 files:
- chmod 664 ./isolinux/isolinux.bin
- chmod 664 ./isolinux/isolinux.cfg
I had to edit the isolinux.cfg (in the isolinux directory) to change a couple of lines:
- the “default linux” line became “default ks“
- The 2 line after “label ks” went from “append ks initrd=initrd.img” to “append ks=cdrom:/ks.cfg initrd=initrd.img“
The isolinux.cfg file now looks like:
default ks
prompt 1
timeout 600
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label linux
kernel vmlinuz
append initrd=initrd.img
label text
kernel vmlinuz
append initrd=initrd.img text
label ks
kernel vmlinuz
append ks=cdrom:/ks.cfg initrd=initrd.img
label local
localboot 1
label memtest86
kernel memtest
append -
To build the ISO (all this on one line):
mkisofs -o centos5-dvd1.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -R -J -V “CentOS 5.1 (CentOS) Disk1″ -A “CentOS 5.1 (CentOS) Disk1″ -p “Cinq” -T isolinux/
For Red Hat Entreprise Linux 5.1 I had to change the label for the DVD from “CentOS 5.1 (CentOS) Disk1″ to “RHEL_5.1 x86_64 DVD” (obviously I am using the x64 version for RHEL5) so the command became:
mkisofs -o centos5-dvd1.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -r -R -J -V “RHEL_5.1 x86_64 DVD” -A “RHEL_5.1 x86_64 DVD” -p “Cinq” -T isolinux/
Reference sites:
Filed under general on April 8 | 0 comments
It was time for an update. New presentation, new tools to post the content I wanted to put in this site.