个人工具
登录
查看“UbuntuHelp:ATAOverEthernet”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:ATAOverEthernet”的源代码
来自Ubuntu中文
←
UbuntuHelp:ATAOverEthernet
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/ATAOverEthernet}} {{Languages|UbuntuHelp:ATAOverEthernet}} == 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 [http://en.wikipedia.org/wiki/Global_File_System GFS] is needed. == Required Packages == With the Universe repository enabled.. On the Ubuntu host that you wish to be the disk server: <pre><nowiki> (server)# apt-get install vblade </nowiki></pre> On the Ubuntu host that you wish to mount the disk on: <pre><nowiki> (client)# apt-get install aoetools </nowiki></pre> == To set the interface up == It's important to note that no IP address is needed to get this working. <pre><nowiki> # ip link set eth0 up </nowiki></pre> == 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: <pre><nowiki> (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 </nowiki></pre> 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. <pre><nowiki> (client)# modprobe aoe </nowiki></pre> optionally the list of interfaces can be specified while loading the module <pre><nowiki> (client)# modprobe aoe aoe_iflist="eth0 eth1" </nowiki></pre> This can automatically be performed at startup, by entering a line into the /etc/modules file. Create the 'etherd' directory <pre><nowiki> (client)# mkdir /dev/etherd </nowiki></pre> <pre><nowiki> (client)# aoe-interfaces eth0 (client)# aoe-discover (client)# aoe-stat e1.1 0.001GB eth0 up </nowiki></pre> The block device is then located in /dev/etherd/e1.1 and can be treated like any other block device. Create a filesystem: <pre><nowiki> (client)# mke2fs /dev/etherd/e1.1 </nowiki></pre> Create a mount point and mount the file system: <pre><nowiki> (client)# mkdir /mnt/e1.1 (client)# mount /dev/etherd/e1.1 /mnt/e1.1 </nowiki></pre> 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 ---- [[category:CategoryDocumentation]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:ATAOverEthernet
。