Terminaux linux day 6

  • Passage en cable gigabit

Modifications de /etc/hosts

# via 100 mb/s
127.0.0.1       localhost
172.16.0.160    debian-160
172.16.0.170    debian-170
172.16.0.200    debian-ha
# via gigabit

10.0.0.160      drdb-160
10.0.0.170      drbd-170
10.0.0.160      nfs-160
10.0.0.170      nfs-170
10.0.0.200      nfs-ha

#172.16.0.160   drdb-160
#172.16.0.170   drbd-170
#172.16.0.160   nfs-160
#172.16.0.170   nfs-170
#172.16.0.200   nfs-ha
# via 100 mb/s
172.16.0.230    master
172.16.0.231    terminal-1
172.16.0.232    terminal-2
172.16.0.233    terminal-3
172.16.0.234    terminal-4
172.16.0.235    terminal-5
172.16.0.236    terminal-6
172.16.0.237    terminal-7
172.16.0.238    terminal-8
172.16.0.239    terminal-9
172.16.0.240    terminal-10
172.16.0.241    terminal-11
172.16.0.242    terminal-12
172.16.0.243    terminal-13
172.16.0.244    terminal-14
172.16.0.245    terminal-15
172.16.0.246    terminal-16
172.16.0.247    terminal-17
172.16.0.248    terminal-18
172.16.0.249    terminal-19
172.16.0.250    terminal-20
172.16.0.251    terminal-21
172.16.0.252    terminal-22
  • /etc/exports

Il faut bien regarder que l'exports fasse référence à /etc/hosts

exemple :  10.0.0.160      drdb-160
  • drbd.conf

vi /etc/drbd.conf

:%s/172.16.0./10.0.0./g  
:wq
  • /etc/network/interfaces
auto lo
iface lo inet loopback
# This entry was created during the Debian installation
#
#
#auto eth0
auto eth0 eth1
iface eth0 inet static
       address         10.0.0.160
       netmask         255.0.0.0
       broadcast       10.255.255.255
       mtu                10000
iface eth1 inet static
       address         172.16.0.160
       netmask         255.255.0.0
       broadcast       172.16.255.255
       gateway         172.16.0.1
  • /etc/heartbeat/haressources
debian-160 172.16.0.200 10.0.0.200 drbddisk::drbd0 drbddisk::drbd1 drbddisk::drbd2   Filesystem::/dev/drbd0::/exports/shared-disk::reiserfs::rw,usrquota,grpquota Filesystem::/dev/drbd1::/exports/debian-mirror::reiserfs::rw   Filesystem::/dev/drbd2::/exports/clients::reiserfs::rw nfs-common nfs-kernel-server quota slapd dhcp3-server
  • dpkg-reconfigure dhcp3-server

pour mettre l'interface eth1 (3com 100 mb/s) en écoute du dhcp

  • Kiosk

ln -s /shared-disk/data/kiosk/kde-profile/ kde-profile