特殊:Badtitle/NS100:ATAOverEthernet
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/ATAOverEthernet }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/af | • {{#if: UbuntuHelp:ATAOverEthernet|Afrikaans| [[::ATAOverEthernet/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/ar | • {{#if: UbuntuHelp:ATAOverEthernet|العربية| [[::ATAOverEthernet/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/az | • {{#if: UbuntuHelp:ATAOverEthernet|azərbaycanca| [[::ATAOverEthernet/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/bcc | • {{#if: UbuntuHelp:ATAOverEthernet|جهلسری بلوچی| [[::ATAOverEthernet/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/bg | • {{#if: UbuntuHelp:ATAOverEthernet|български| [[::ATAOverEthernet/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/br | • {{#if: UbuntuHelp:ATAOverEthernet|brezhoneg| [[::ATAOverEthernet/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/ca | • {{#if: UbuntuHelp:ATAOverEthernet|català| [[::ATAOverEthernet/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/cs | • {{#if: UbuntuHelp:ATAOverEthernet|čeština| [[::ATAOverEthernet/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/de | • {{#if: UbuntuHelp:ATAOverEthernet|Deutsch| [[::ATAOverEthernet/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/el | • {{#if: UbuntuHelp:ATAOverEthernet|Ελληνικά| [[::ATAOverEthernet/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/es | • {{#if: UbuntuHelp:ATAOverEthernet|español| [[::ATAOverEthernet/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/fa | • {{#if: UbuntuHelp:ATAOverEthernet|فارسی| [[::ATAOverEthernet/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/fi | • {{#if: UbuntuHelp:ATAOverEthernet|suomi| [[::ATAOverEthernet/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/fr | • {{#if: UbuntuHelp:ATAOverEthernet|français| [[::ATAOverEthernet/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/gu | • {{#if: UbuntuHelp:ATAOverEthernet|ગુજરાતી| [[::ATAOverEthernet/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/he | • {{#if: UbuntuHelp:ATAOverEthernet|עברית| [[::ATAOverEthernet/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/hu | • {{#if: UbuntuHelp:ATAOverEthernet|magyar| [[::ATAOverEthernet/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/id | • {{#if: UbuntuHelp:ATAOverEthernet|Bahasa Indonesia| [[::ATAOverEthernet/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/it | • {{#if: UbuntuHelp:ATAOverEthernet|italiano| [[::ATAOverEthernet/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/ja | • {{#if: UbuntuHelp:ATAOverEthernet|日本語| [[::ATAOverEthernet/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/ko | • {{#if: UbuntuHelp:ATAOverEthernet|한국어| [[::ATAOverEthernet/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/ksh | • {{#if: UbuntuHelp:ATAOverEthernet|Ripoarisch| [[::ATAOverEthernet/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/mr | • {{#if: UbuntuHelp:ATAOverEthernet|मराठी| [[::ATAOverEthernet/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/ms | • {{#if: UbuntuHelp:ATAOverEthernet|Bahasa Melayu| [[::ATAOverEthernet/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/nl | • {{#if: UbuntuHelp:ATAOverEthernet|Nederlands| [[::ATAOverEthernet/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/no | • {{#if: UbuntuHelp:ATAOverEthernet|norsk| [[::ATAOverEthernet/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/oc | • {{#if: UbuntuHelp:ATAOverEthernet|occitan| [[::ATAOverEthernet/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/pl | • {{#if: UbuntuHelp:ATAOverEthernet|polski| [[::ATAOverEthernet/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/pt | • {{#if: UbuntuHelp:ATAOverEthernet|português| [[::ATAOverEthernet/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/ro | • {{#if: UbuntuHelp:ATAOverEthernet|română| [[::ATAOverEthernet/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/ru | • {{#if: UbuntuHelp:ATAOverEthernet|русский| [[::ATAOverEthernet/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/si | • {{#if: UbuntuHelp:ATAOverEthernet|සිංහල| [[::ATAOverEthernet/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/sq | • {{#if: UbuntuHelp:ATAOverEthernet|shqip| [[::ATAOverEthernet/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/sr | • {{#if: UbuntuHelp:ATAOverEthernet|српски / srpski| [[::ATAOverEthernet/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/sv | • {{#if: UbuntuHelp:ATAOverEthernet|svenska| [[::ATAOverEthernet/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/th | • {{#if: UbuntuHelp:ATAOverEthernet|ไทย| [[::ATAOverEthernet/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/tr | • {{#if: UbuntuHelp:ATAOverEthernet|Türkçe| [[::ATAOverEthernet/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/vi | • {{#if: UbuntuHelp:ATAOverEthernet|Tiếng Việt| [[::ATAOverEthernet/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/yue | • {{#if: UbuntuHelp:ATAOverEthernet|粵語| [[::ATAOverEthernet/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/zh | • {{#if: UbuntuHelp:ATAOverEthernet|中文| [[::ATAOverEthernet/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/zh-hans | • {{#if: UbuntuHelp:ATAOverEthernet|中文(简体)| [[::ATAOverEthernet/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:ATAOverEthernet | UbuntuHelp:ATAOverEthernet | {{#if: | :}}ATAOverEthernet}}/zh-hant | • {{#if: UbuntuHelp:ATAOverEthernet|中文(繁體)| [[::ATAOverEthernet/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:ATAOverEthernet|:ATAOverEthernet|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :ATAOverEthernet/zh | | {{#ifexist: ATAOverEthernet/zh | | {{#ifeq: {{#titleparts:ATAOverEthernet|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:ATAOverEthernet|1|-1|}} | zh | | }}
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.
WARNING: Don't mount the target from more than one client or filesystem corruption will occur. To do this something like GFS is needed.
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 set the interface up
It's important to note that no IP address is needed to get this working.
# ip link set eth0 up
To create an AoE device
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.
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
optionally the list of interfaces can be specified while loading the module
(client)# modprobe aoe aoe_iflist="eth0 eth1"
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).
References
- http://www.coraid.com/support/linux/EtherDrive-2.6-HOWTO.html
- http://en.wikipedia.org/wiki/ATA_over_Ethernet
- http://en.wikipedia.org/wiki/Global_File_System