{"id":669,"date":"2010-01-01T12:09:02","date_gmt":"2010-01-01T20:09:02","guid":{"rendered":"http:\/\/wp.colliertech.org\/cj\/?p=669"},"modified":"2010-01-01T12:09:02","modified_gmt":"2010-01-01T20:09:02","slug":"san-configuration-aoe","status":"publish","type":"post","link":"https:\/\/wp.c9h.org\/cj\/?p=669","title":{"rendered":"SAN configuration (AoE)"},"content":{"rendered":"<p>With the help of a couple of friends, we&#8217;ve put a 4.5T RAID-5 machine on our network and I&#8217;m trying to figure out how to share the storage with the rest of the hosts.  In the past, I have used NFS and CIFS\/Samba to provide access to remote hosts.  This has generally worked okay so long as the server stays online.<\/p>\n<p>I don&#8217;t know if the results are going to be much different, but I am now trying a different approach.  I plan to run an iSCSI server, and I&#8217;ve already configured AoE (ATA over Ethernet).  I&#8217;ve exported a block device on the network segment and mounted it on a remote host.  This was pretty easy to configure.  There is a bit of documentation on the internet already, but I&#8217;ll give another quick overview.<\/p>\n<p>I gave the storage server the unoriginal name &#8216;san0&#8217;.  This host is running debian lenny.  I am testing the configuration from my debian sid development host, which has the similarly unoriginal name &#8216;dev0&#8217;.  So, think server when you see &#8216;san0&#8217; and client when you see &#8216;dev0&#8217;.<\/p>\n<p>I assume that you&#8217;ve already got an LVM volume group set up.  Mine is called &#8216;vg0&#8217;.  Correct the following examples to account for any differences.  You can use disk partitions instead of LVM logical volumes.<\/p>\n<hr\/>\n<p>Create a logical volume to be exported:<\/p>\n<p><code>cjac@san0:~$ sudo lvcreate \/dev\/vg0 -n e0.1 -L 5G<\/code><\/p>\n<p>Load the AoE kernel module:<\/p>\n<p><code>cjac@san0:~$ sudo modprobe aoe<\/code><\/p>\n<p>Install the package containing the vblade block device export server:<\/p>\n<p><code>cjac@san0:~$ sudo apt-get install vblade<\/code><\/p>\n<p>Export the block device.  Note that the ethernet bridge on which I export the device is called &#8216;loc&#8217;:<\/p>\n<p><code>cjac@san0:~$ sudo vbladed 0 1 loc \/dev\/vg0\/e0.1<\/code><\/p>\n<p>Install the AoE discovery tools on the client:<\/p>\n<p><code>cjac@dev0:~$ sudo apt-get install aoetools<\/code><\/p>\n<p>Load the AoE kernel module:<\/p>\n<p><code>cjac@dev0:~$ sudo modprobe aoe<\/code><\/p>\n<p>Probe for exported AoE devices:<\/p>\n<p><code>cjac@dev0:~$ sudo aoe-discover<\/code><\/p>\n<p>Verify that our exported device was discovered:<\/p>\n<p><code>cjac@dev0:~$ test -e \/dev\/etherd\/e0.1 && echo \"yep\"<br \/>\nyep<\/code><\/p>\n<hr\/>\n<p>You can now treat \/dev\/etherd\/e0.1 as you would any other block device.  You can format it directly, or partition it and format a partition, use it as a device in your software RAID array, use it as swap space (ha), or something completely different.<\/p>\n<p>Now to figure out this iSCSI stuff&#8230;<\/p>\n\n<div class=\"twitter-share\"><a href=\"https:\/\/twitter.com\/intent\/tweet?via=cjamescollier\" class=\"twitter-share-button\">Tweet<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>With the help of a couple of friends, we&#8217;ve put a 4.5T RAID-5 machine on our network and I&#8217;m trying to figure out how to share the storage with the rest of the hosts. In the past, I have used NFS and CIFS\/Samba to provide access to remote hosts. This has generally worked okay so [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[60,17,79,47,163,166,210],"tags":[],"class_list":["post-669","post","type-post","status-publish","format-standard","hentry","category-colliertech","category-debian","category-free-software","category-linux","category-networking","category-software","category-ubuntu-us-wa"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1YDIB-aN","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=669"}],"version-history":[{"count":4,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/669\/revisions"}],"predecessor-version":[{"id":673,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/669\/revisions\/673"}],"wp:attachment":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}