Difference between revisions of "ATA over Ethernet"

From ArchWiki
Jump to navigation Jump to search
m (add ja link)
Line 4: Line 4:
 
ATA over Ethernet (AoE) is a network protocol developed by the Brantley Coile Company, designed for simple, high-performance access of SATA storage devices over Ethernet networks. It is used to build storage area networks (SANs) with low-cost, standard technologies.
 
ATA over Ethernet (AoE) is a network protocol developed by the Brantley Coile Company, designed for simple, high-performance access of SATA storage devices over Ethernet networks. It is used to build storage area networks (SANs) with low-cost, standard technologies.
  
== Prequisites to AOE ==
+
== Prequisites to AE ==
  
 
To use AOE you need the [[AUR]] packages {{AUR|vblade}} and {{AUR|aoetools}}.
 
To use AOE you need the [[AUR]] packages {{AUR|vblade}} and {{AUR|aoetools}}.
  
# ip set link eth0 up
+
AoE does not use IPv4/IPv6; it works directly on top of Ethernet and is limited to the local subnet. It is enough to make sure that the interface is up. (For best performance, the subnet should use jumbo frames.)
  
{{Note|AOE is working without IP Adress}}
+
# ip link set eth0 up
  
Create a Disk with dd:
+
== Target: Export a disk ==
# dd if=/dev/zero of=vblade0 count=1 bs=1M
 
  
== Start Vblade ==
+
You can export block devices or image files using {{ic|vblade}} or the {{ic|vbladed}} daemon.
 +
 
 +
Create an empty disk image:
 +
 
 +
# dd if=/dev/zero of=vblade0 bs=1M count=256
 +
 
 +
Start {{ic|vblade}} to export the disk over eth0:
 
   
 
   
  # vblade 1 1 eth0 vblade0  
+
  # vblade 1 1 eth0 vblade0
 +
 
 +
Exported disks are identified by their "shelf ID" and "slot ID" (within that shelf), in this case {{ic|1.1}}; the combination must be unique across the SAN.
 +
 
 +
== Initiator: Attach to a disk ==
  
{{Note | You can use the vbladed Daemon instead of vblade}}
+
Ensure the kernel module is loaded:
Now a Client should be able to see the ATA-Drive
 
  
=== Testing Local ===
 
 
To test the setup localy you have to assign vblade to lo
 
 
  # modprobe aoe
 
  # modprobe aoe
# vblade 1 1 lo vblade0 &
+
 
 +
By default all interfaces are used, but you can specify a whitelist either as {{ic|aoe}} module parameter, or using the {{ic|aoe-interfaces}} command:
 +
 
 
  # aoe-interfaces eth0
 
  # aoe-interfaces eth0
 +
 +
The kernel module performs periodic discovery; to do it immediately (e.g. after changing interfaces) use {{ic|aoe-discover}}. Afterwards use {{ic|aoe-stat}} to list "visible" disks.
 +
 
  # aoe-discover
 
  # aoe-discover
 
  # aoe-stat
 
  # aoe-stat
 
       e1.1        0.001GB  eth0 up
 
       e1.1        0.001GB  eth0 up
  
== Using AOE ==
+
The first column shows a device name which also can be found under {{ic|/dev/etherd}} as a regular block device. You can partition it with fdisk, or just create a file system:
# modprobe aoe
 
# aoe-interfaces eth0
 
# aoe-discover
 
# aoe-stat
 
    e1.1        0.001GB  eth0 up
 
 
 
  
Now the device can be used as a normal device. It will also show up in fdisk!
+
  # mkfs.ext4 /dev/ethere/e1.1
So first make a file system:
 
  # mkfs.ext4 /dev/ethered/e1.1
 
 
  # mkdir /mnt/e1.1
 
  # mkdir /mnt/e1.1
 
  # mount /dev/etherd/e1.1 /mnt/e1.1
 
  # mount /dev/etherd/e1.1 /mnt/e1.1

Revision as of 11:41, 7 November 2017

ATA over Ethernet (AoE) is a network protocol developed by the Brantley Coile Company, designed for simple, high-performance access of SATA storage devices over Ethernet networks. It is used to build storage area networks (SANs) with low-cost, standard technologies.

Prequisites to AE

To use AOE you need the AUR packages vbladeAUR and aoetoolsAUR.

AoE does not use IPv4/IPv6; it works directly on top of Ethernet and is limited to the local subnet. It is enough to make sure that the interface is up. (For best performance, the subnet should use jumbo frames.)

# ip link set eth0 up

Target: Export a disk

You can export block devices or image files using vblade or the vbladed daemon.

Create an empty disk image:

# dd if=/dev/zero of=vblade0 bs=1M count=256

Start vblade to export the disk over eth0:

# vblade 1 1 eth0 vblade0

Exported disks are identified by their "shelf ID" and "slot ID" (within that shelf), in this case 1.1; the combination must be unique across the SAN.

Initiator: Attach to a disk

Ensure the kernel module is loaded:

# modprobe aoe

By default all interfaces are used, but you can specify a whitelist either as aoe module parameter, or using the aoe-interfaces command:

# aoe-interfaces eth0

The kernel module performs periodic discovery; to do it immediately (e.g. after changing interfaces) use aoe-discover. Afterwards use aoe-stat to list "visible" disks.

# aoe-discover
# aoe-stat
     e1.1         0.001GB   eth0 up

The first column shows a device name which also can be found under /dev/etherd as a regular block device. You can partition it with fdisk, or just create a file system:

# mkfs.ext4 /dev/ethere/e1.1
# mkdir /mnt/e1.1
# mount /dev/etherd/e1.1 /mnt/e1.1