biolocal:Diskless
From Wiki CEINGE
Revision as of 13:00, 27 February 2009 (edit) Gianluca (Talk | contribs) ← Previous diff |
Revision as of 17:23, 27 February 2009 (edit) (undo) Gianluca (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
- | |||
'''Create a new diskless OS''' | '''Create a new diskless OS''' | ||
- | *'' | + | *''NFS server configuration'' |
On 143.225.151.72 (storagesrv2) there are 2 LUNs available for diskless OSes: | On 143.225.151.72 (storagesrv2) there are 2 LUNs available for diskless OSes: | ||
Line 33: | Line 32: | ||
- | *'' | + | *''OS creation'' |
Rsync the installed os from an existing disk to /diskless/i386/$oslabel/root | Rsync the installed os from an existing disk to /diskless/i386/$oslabel/root | ||
Line 48: | Line 47: | ||
**Create a rootfs | **Create a rootfs | ||
**Create the OS; the OS should be linked to the created rootfs selecting the corresponding checkbox in the new os interface. | **Create the OS; the OS should be linked to the created rootfs selecting the corresponding checkbox in the new os interface. | ||
+ | |||
+ | |||
+ | *''Clustermanager setup'' | ||
+ | |||
+ | **DHCP | ||
+ | Edit the file /etc/dhcpd.conf and insert a new network configuration: | ||
+ | <pre> | ||
+ | pool { | ||
+ | include "dhcpd.d/centos5sge/dhcpd.inc"; | ||
+ | filename "centos5sge/pxelinux.0"; | ||
+ | range 192.168.129.1 192.168.129.254; | ||
+ | } | ||
+ | </pre> | ||
+ | |||
+ | In /etc/dhcpd.d create a new directory and the include file: | ||
+ | <pre> | ||
+ | mkdir /etc/dhcpd.d/centos5sge | ||
+ | touch /etc/dhcpd.d/centos5sge/dhcpd.inc | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | **tftserver | ||
+ | |||
+ | |||
+ | **pxe | ||
+ | config_newos.sh centos5grid 192.168.151.125 |
Revision as of 17:23, 27 February 2009
Create a new diskless OS
- NFS server configuration
On 143.225.151.72 (storagesrv2) there are 2 LUNs available for diskless OSes:
/dev/emcpowerk for os roots /dev/emcpowerl for snapshots
Create filesystems:
mkdir -t ext3 /dev/emcpowerk{partition_number} mkdir -t ext3 /dev/emcpowerl{partition_number}
and run the command:
/root/config_os_partitions.sh oslabel dev_for_root dev_for_snapshots ex: /root/config_os_partitions.sh centos5sge /dev/emcpowerk7 /dev/emcpowerl7
It makes the directories
/diskless/i386/$oslabel/root /diskless/i386/$oslabel/snapshot
and mount the devices on them.
- OS creation
Rsync the installed os from an existing disk to /diskless/i386/$oslabel/root
Export the root and snapshot directories to a new network.
echo "/diskless/i386/centos5sge/root 192.168.151.43(rw,sync,no_root_squash)" >> /etc/exports echo "/diskless/i386/centos5sge/root 192.168.129.0/24(ro,sync,no_root_squash)" >> /etc/exports echo "/diskless/i386/centos5sge/snapshot 192.168.129.0/18(rw,sync,no_root_squash)" >> /etc/exports exportfs -r
Register the new rootfs and the Os by using the web interface (http://mac-web.ceinge.unina.it/servers):
- Create a rootfs
- Create the OS; the OS should be linked to the created rootfs selecting the corresponding checkbox in the new os interface.
- Clustermanager setup
- DHCP
Edit the file /etc/dhcpd.conf and insert a new network configuration:
pool { include "dhcpd.d/centos5sge/dhcpd.inc"; filename "centos5sge/pxelinux.0"; range 192.168.129.1 192.168.129.254; }
In /etc/dhcpd.d create a new directory and the include file:
mkdir /etc/dhcpd.d/centos5sge touch /etc/dhcpd.d/centos5sge/dhcpd.inc
- tftserver
- pxe
config_newos.sh centos5grid 192.168.151.125