NAME

sdaoe, addaoe – ATA–over–Ethernet (AoE) storage device interface

SYNOPSIS

bind –a #S /dev
echo config switch on spec
l type aoe//dev/aoe/shelf.slot >/dev/sdctl
echo config switch off spec
l >/dev/sdctl
/dev/sd
l0/ctl
/dev/sd
l0/raw
/dev/sd
l0/data
...
addaoe letter unit

DESCRIPTION

Sdaoe has a few quirks because network–attached storage can't be enumerated as directly–attached storage can. The default first controller letter for AoE devices is e. Each sdaoe device must be configured explicitly.
Addaoe packages up the switch on invocation as an rc script.
To boot from an AoE root, the sd device must be configured on boot by either PXE booting or booting from directly–attached storage and adding two configuration lines to plan9.ini(8) for aoeif, listing the names of the Ethernet interface(s) to use, and aoedev=letter!#æ/aoe/lun.

EXAMPLES

To configure target (LUN) 42.0 on #S/sde0,
echo config switch on spec e type aoe//dev/aoe/42.0 >/dev/sdctl
To turn this device off,
echo config switch off spec e >/dev/sdctl
To boot from an AoE root, the sd device must be configured on boot. To accomplish this, one must either PXE boot or boot from direct–attached storage and add two configuration lines to plan9.ini(8). For example, to boot using target 42.0 as #S/sde0 and as root, over Ethernet interfaces 0 and 1,
aoeif=ether0 ether1
aoedev=e!#æ/aoe/42.0
The script addaoe automates the process of adding aoe targets. To replace the example above,
addlaoe e 42.0

SOURCE

/sys/src/9/port/sdaoe.c
/rc/bin/addaoe

SEE ALSO

aoe(3), sd(3), 9load(8), snoopy(8) vblade(8),

BUGS

It is not currently possible to boot from an AoE target without an external bootstrap like PXE.