Size: 2340
Comment:
|
Size: 2562
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 7: | Line 7: |
storage network... it is very easy to do in Ubuntu (currently Dapper 6.06 LTS). |
storage network... it is very easy to do in Ubuntu. This software was available in Dapper 6.06 LTS, but has also been tested in Feisty (beta). |
Line 47: | Line 48: |
Insert the module into the linux kernel. | The 'aoe' module should already be automatically loaded when the 'aoetools' package is installed. If this hasn't occured, insert the module into the linux kernel. |
Line 54: | Line 58: |
The device and directory automatially get created when the aoe module is inserted into the kernel. |
Create the 'etherd' directory {{{ (client)# mkdir /dev/etherd }}} |
Line 59: | Line 66: |
(client)# aoe-stat e1.1 0.001GB eth0 up |
|
Line 69: | Line 78: |
(client)# mkdir /var/tmp/mnt (client)# mount /dev/etherd/e1.1 /var/tmp/mnt |
(client)# mkdir /mnt/e1.1 (client)# mount /dev/etherd/e1.1 /mnt/e1.1 |
ContentsBRTableOfContents |
Introduction
There is now a kernel module (aoe), tools (aoetools) and server software (vblade) which allows anyone to set up an ATA over Ethernet storage network... it is very easy to do in Ubuntu.
This software was available in Dapper 6.06 LTS, but has also been tested in Feisty (beta).
WARNING: These commands need to be run with root privileges (sudo -i). Do this at your own risk.
Required Packages
With the Universe repository enabled..
On the Ubuntu host that you wish to be the disk server:
(server)# apt-get install vblade
On the Ubuntu host that you wish to mount the disk on:
(client)# apt-get install aoetools
To Configure
To test that everything is working correctly, we created and used a 1 Mbyte file (vblade0). Any other block device or file could be used.
On the server:
(server)# dd if=/dev/zero of=vblade0 count=1 bs=1M (server)# vblade 1 1 eth0 vblade0 ioctl returned 0 1048576 bytes pid 25000: e1.1, 2048 sectors
The deamon ('vbladed') could be used instead of 'vblade', which detaches the process from the console and send log messages to the system logs.
On the client:
(client)# sys_dir=/sys aoe-stat e1.1 0.001GB eth0 up
Using AoE
The 'aoe' module should already be automatically loaded when the 'aoetools' package is installed.
If this hasn't occured, insert the module into the linux kernel.
(client)# modprobe aoe
This can automatically be performed at startup, by entering a line into the /etc/modules file.
Create the 'etherd' directory
(client)# mkdir /dev/etherd
(client)# aoe-interfaces eth0 (client)# aoe-discover (client)# aoe-stat e1.1 0.001GB eth0 up
The block device is then located in /dev/etherd/e1.1 and can be treated like any other block device.
Create a filesystem:
(client)# mke2fs /dev/etherd/e1.1
Create a mount point and mount the file system:
(client)# mkdir /mnt/e1.1 (client)# mount /dev/etherd/e1.1 /mnt/e1.1
This can be made to automatically mount on reboot, by entering a configuration line in /etc/fstab (untested).