sysfu
Explorer
- Joined
- Jun 16, 2011
- Messages
- 73
Install the plugins jail if you haven't already.
Open a root shell prompt, and enter the jail.
Install vblade from packages.
Create a vblade device file. This one is ~20GB
Find out the name of the plugin jail's virtual network adapter
The above command yielded "epair0b:" on my jail setup. (Don't forget to drop the colon in the next command.)
Start vblade on the FreeNAS jail;
You should see some output like this:
Keep the vblade command running in the shell for now. Later on, you'll probably want to kill and restart it as a daemon.
Note: The following client side steps are for an Arch linux workstation with aoetools and the aoe kernel module already loaded
This client command should show the recently created vblade AoE device:
Now the AoE device should be available at /dev/etherd/e1.1.
You can partition and create filesystems on this device just like you would any other block device, for example:
Now you're ready to start using the AoE disk.
Open a root shell prompt, and enter the jail.
Code:
jexec `jls jid` tcsh
Install vblade from packages.
Code:
pkg_add -vr vblade
Create a vblade device file. This one is ~20GB
Code:
dd if=/dev/zero of=/vblade0 count=20000 bs=1M
Find out the name of the plugin jail's virtual network adapter
Code:
ifconfig | grep BROADCAST | awk '{print $1}'
Start vblade on the FreeNAS jail;
Code:
vblade 1 1 epair0b /vblade0
You should see some output like this:
Code:
ioctl returned -1 20971520000 bytes pid 30146: e1.1, 40960000 sectors O_RDWR
Keep the vblade command running in the shell for now. Later on, you'll probably want to kill and restart it as a daemon.
Code:
vbladed 1 1 epair0b /vblade0
Note: The following client side steps are for an Arch linux workstation with aoetools and the aoe kernel module already loaded
This client command should show the recently created vblade AoE device:
Code:
aoe-discover; aoe-stat e1.1 20.971GB eth0 up
Now the AoE device should be available at /dev/etherd/e1.1.
You can partition and create filesystems on this device just like you would any other block device, for example:
Code:
sgdisk -n 1:2048:0 -c 1:"FreeNAS AoE Data Disk" /dev/etherd/e1.1 mkfs.ext4 /dev/etherd/e1.1p1 mount /dev/etherd/e1.1p1 /mnt
Now you're ready to start using the AoE disk.