Sudev Barar kirjoitti:
> It seems that the second server is not setup properly. What is the
> dhcpd.conf of second server?

Sudev, thanks for answering.

Here we go.

1. DHCP3-SERVER

Master - 172.23.24.21/255.255.255.0

# dhcpd.conf - Ubuntu - Master

###

failover peer "ubuntu" {
    primary;
    address 172.23.24.21;
    port 519;
    peer address 172.23.24.22;
    peer port 520;
    max-response-delay 30;
    max-unacked-updates 10;
    mclt 3600;
    split 128;
    load balance max seconds 3;
}

###

authoritative;

ddns-update-style             none;

default-lease-time          21600;
max-lease-time              21600;

option subnet-mask            255.255.255.0;
option broadcast-address      172.23.255.255;
option routers                172.23.24.21;
option domain-name-servers    193.184.122.21;
option domain-name            "ubuntu";
option option-128 code 128 = string;
option option-129 code 129 = text;

get-lease-hostnames           true;

next-server                   172.23.24.22;
option root-path              "172.23.24.21:/opt/ltsp/i386";

subnet 172.23.24.0 netmask 255.255.255.0 {

  pool {

    failover peer "ubuntu";
    range 172.23.24.0 172.23.24.254;
    deny dynamic bootp clients;

        }

    use-host-decl-names      on;
        option log-servers       172.23.24.21;

}

---

Slave - 172.23.24.22/255.255.255.0

# dhcpd.conf - Ubuntu - Slave

###

failover peer "ubuntu" {
    secondary;
    address 172.23.24.22;
    port 520;
    peer address 172.23.24.21;
    peer port 519;
    mclt 3600;
    max-response-delay 30;
    max-unacked-updates 10;
}

###

authoritative;

ddns-update-style             none;

default-lease-time          21600;
max-lease-time              21600;

option subnet-mask            255.255.255.0;
option broadcast-address      172.23.255.255;
option routers                172.23.24.22;
option domain-name-servers    193.184.122.21;
option domain-name            "ubuntu";
option option-128 code 128 = string;
option option-129 code 129 = text;

get-lease-hostnames           true;

next-server                   172.23.24.21;
option root-path              "172.23.24.22:/opt/ltsp/i386";

subnet 172.23.24.0 netmask 255.255.255.0 {

  pool {

        failover peer "ubuntu";
    range 172.23.24.0 172.23.24.254;
    deny dynamic bootp clients;

        }

    use-host-decl-names      on;
        option log-servers       172.23.24.22;

}

--

After these everything is same, like this way:

host eduwks24-25 {

    hardware ethernet         00:1A:4B:4C:1A:3E;
    fixed-address             172.23.24.25;
    filename                  "/lts/2.6.16.1-ltsp-2/pxelinux.0";
    }

2. LTS.CONF

And lts.conf looks like this.

Master:

[Default]
        SERVER             = 172.23.24.21
        XSERVER            = auto
        X_MOUSE_PROTOCOL   = "IMPS/2"
        X_MOUSE_DEVICE     = "/dev/psaux"
        X_MOUSE_RESOLUTION = 400
        X_MOUSE_BUTTONS    = 3
        USE_XFS            = N
        SCREEN_01          = startx
        SCREEN_02       = shell
   
    XkbSymbols       = fi(pc104)
    XkbModel       = pc104
    XkbLayout       = fi
   
    X_VIDEORAM        = 16384
    X_MODE_0           = 1280x1024
    X_COLOR_DEPTH       = 24
    X_HORZSYNC         = "60-70"
   
    SOUND           = Y
    SOUND_DAEMON       = esd
    SMODULE_01       = soundcore
    SMODULE_02       = ac97_codec
    SMODULE_03       = via82cxxx_audio

    LOCAL_STORAGE       = Y
   
[eduwks24-25]

    XSERVER              = via

Slave:

[Default]
        SERVER             = 172.23.24.22
        XSERVER            = auto

3. TFTPD-HPA

I use tftpd-hpa with these options:

a. /etc/default/tftpd-hpa

#Defaults for tftpd-hpa
RUN_DAEMON="yes"
OPTIONS="-l -s /tftpboot"

prompt 0
label linux
  kernel bzImage-2.6.16.1-ltsp-2
  append rw root=/dev/ram0 initrd=initramfs.gz 
MOPTS=nolock,ro,wsize=2048,rsize=2048

4. EXPORTS

And one more.

Master, Slave is same:

/opt/ltsp                 172.23.24.0/255.255.255.0(ro,no_root_squash,sync)
/var/opt/ltsp/swapfiles   172.23.24.0/255.255.255.0(rw,no_root_squash,async)

--

Best regards Asmo Koskinen.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to