[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Partage de devices




Bonjour,

Le 28 Mai, Nicolas Ronayette a écrit :
> Salut everybody,
> 
> Voici ma question : Est-il possible de partager un device de type
> "partition de disque IDE" entre 2 linux. Je cherche a rendre visible
> un
> /dev/hdaX par un autre Linux. Bien sur, ce /dev/hdaX n'est pas monté
> au niveau du systeme (ce serait trop simple avec NFS ;-). Est-ce
> quelqu'un aurait une idée, un lien vers une doc quelconque, un patch
> noyau pour le 2.4 ?
> 
> Parce que la, moi je seche....
> 
> Merci par avance pour toute les bonnes remarques...
Il me semble que la fonctionnalite network_block_device du noyaux est
tout ce dont tu as besoin.
Le module s'appelle nbd.o. Il est present depuis pas mal de temps dans
les noyaux. Si il n'est pas compile par defaut dans les noyaux debian,
tu devras recompiler un kernel. on trouve l'option dans le menu "block
device"
Voila ce que dit l'aide de cette option :

  x Saying Y here will allow your computer to be a client for network       x   
  x block devices, i.e. it will be able to use block devices exported by    x   
  x servers (mount file systems on them etc.). Communication between        x   
  x client and server works over TCP/IP networking, but to the client       x   
  x program this is hidden: it looks like a regular local file access to    x   
  x a block device special file such as /dev/nd0.                           x   
  x                                                                         x   
  x Network block devices also allows you to run a block-device in          x   
  x userland (making server and client physically the same computer,        x   
  x communicating using the loopback network device).                       x   
  x                                                                         x   
  x Read Documentation/nbd.txt for more information, especially about       x   
  x where to find the server code, which runs in user space and does not    x   
  x need special kernel support.                                            x   

Amicalement,
	Christophe
-- 
char*p="[)1++++++11+(QI1)9191991)9)1)(II1)919Y91)9)1)(AK+9;991+3*(9I1*IY991)Q1\
)(1I1))A91991)Q1)(+)1)1++9;)Q1+(";main(_){while(*p){for(_=*p-32>>3;_;--_)
putchar(' ');if(!(_=*p++-32&7))putchar('\n');else while(_--)printf("_/");}}



Reply to: