Wednesday, May 30, 2007

Diskless tips - Part 2

1) In order to enable services like NFS mount and ypbind on the diskless clients edit the rc.local file in the image tree on the server like this:
[root@grid02]# more /diskless/centos44_diskless_ver_03/root/etc/rc.local
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

#--------added manually by Guy, 30/5/2007:
mount -t nfs /home

2) In order to document the installation procedure, here is the files & directory structure on the server which is relevant for the pxe-boot & tftp stage:
[root@grid02 ~]# ls /tftpboot/

[root@grid02 ~]# ls /tftpboot/linux-install/
centos44_diskless_ver_01 centos44_diskless_ver_03 pxelinux.0
centos44_diskless_ver_02 msgs pxelinux.cfg

[root@grid02 ~]# ls /tftpboot/linux-install/centos44_diskless_ver_03
initrd.img vmlinuz

[root@grid01 ~]# ls /tftpboot/linux-install/pxelinux.cfg/
C0A80101 C0A80106 C0A80109 C0A8010C C0A8010F C0A80112 default
C0A80103 C0A80107 C0A8010A C0A8010D C0A80110 C0A80113 pxeos.xml
C0A80104 C0A80108 C0A8010B C0A8010E C0A80111 C0A80114

Typical content of a C0A.... file:
telzur@grid02 pxelinux.cfg]$ more C0A80101
default centos44_diskless_ver_03

label centos44_diskless_ver_03
kernel centos44_diskless_ver_03/vmlinuz
append initrd=centos44_diskless_ver_03/initrd.img root=/dev/ram0 init=disklessrc NFSROOT= ramdisk_size=16254

[telzur@grid02 pxelinux.cfg]$ more pxeos.xml

No comments: