Pras maquinas diskless que presisam manter algum servico (normalmente
impressao), eh necessaria mais memoria que normalmente ha numa estacao
diskless. Resolve-se isso colocando mais RAM ou colocando um HD para
swap. Existe uma solucao que dispensa o HD: swap por NFS ou NBD (Network
Block Device).

Basta habilitar no Kernel o cliente NBD e compilar o servidro NBD (que
roda no user space, nao atrelado ao kernel).

eNBD:   ftp://oboe.it.uc3m.es/pub/Programs/nbd-2.4-current.tgz

Contudo, na versao 2.4.29 (que funciona nas series 2.2. e 2.4 do kernel)
ha um bug, que pode ser resolvido conforme dica de Peter T. Breuer:

        http://lists.community.tummy.com/pipermail/enbd/2002/001076.html

----------
Maybe it was something peculiar here. I don't think my addition
should have made anything worse, so you wouldn't have noticed
anyway ...

I think I had to do the following in nbd/ioctl.c

 +#include <asm/posix_types.h>
 +#include <linux/types.h>
  #include <linux/ioctl.h>
  #include <linux/fs.h>
  #include <linux/fd.h>
 +#ifndef _CADDR_T
 +#define caddr_t char*
 +#endif
  #include <linux/cdrom.h>
  #include <linux/nbd.h>

because some struct in cdrom.h turned out to need things that aren't
normally available in user space. In particular the _CADDR_T. It
seems that somebody had the bright idea of converting char* to
that in the structs in the 2.4.18 kernel's cdrom.h, but forgot to
export the typedef.
----------

E o tro�o vai... :)

Espero que essa dica possa ser util para mais alguem como foi pra mim.

-- 
------------------------    __ o     mailto:[EMAIL PROTECTED]
 P@ulo Roberto Bagatini    _`\<,     http://www.ceat.net/~arkanon/
  -=---=---==---=---=-    ( )/( )    UIN# 3478930 -- LinuxUser# 102514
 Lajeado - RS - Brasil  -----------  Phone# +55 51 3714 4123
----------------------------------------------------------------------

Assinantes em 27/09/2002: 2261
Mensagens recebidas desde 07/01/1999: 184839
Historico e [des]cadastramento: http://linux-br.conectiva.com.br
Assuntos administrativos e problemas com a lista:
            mailto:[EMAIL PROTECTED]

Responder a