00:00hello everyone I need to remind you that the membership is enabled if you don't
00:05mind become a member I had to do so since YouTube recommends me to I am fond of
00:13network protocols and exploring them and there is a new network protocol for me
00:19that I never knew about except recently I thought of exploring it and showing you
00:26the way it works I thought of doing it together in this video the protocol is
00:32called ATA over Ethernet the good thing about this protocol if we can say is
00:38that it is totally layer 2 doesn't depend on IP addresses it doesn't depend on
00:44routing it doesn't depend on anything related to TCP IP it's fully layer 2
00:51and fully depends on MAC addresses you can look online more for details about
00:59this protocol we have a similar topology to server client it's almost that one
01:09except that the naming differs here the server becomes called target and the
01:17product the the client becomes called initiator we're gonna export here on the
01:25server something called block device it can be a partition it can be a hard drive
01:35or it can be an image for partition something like a virtual partition which
01:41is what we're gonna do here and then on the client we're gonna mount that through
01:50layer 2 as I said I prepared the server and the client or the target and the
01:56initiator for the target it is Ubuntu here it is UBN SRV virtual machine we can see
02:06its details like this and for the client or the initiator it's Arch Linux like this
02:20there are two pieces of software that need to be installed in order to use this
02:24protocol one on the target or the server which is vBlade and one on the client or
02:34the initiator which is AOE tools for us our server is gonna be Ubuntu distribution you
02:46may not find these pieces of software on some of the repositories of some distributions there
02:54is a way to compile them from source I may do it in a future video I look for these
03:00pieces
03:00of software in the repositories of Void Linux I cannot find any look at also in Alma Linux
03:10repositories still can't find them etc there you may find them and you may not so make
03:17sure you find them in order to install them so let's install the first piece of
03:23software for our server the command should be like this sudo apt install vBlade this is for
03:33the server enter password in the meanwhile we install the piece of software for our
03:47client it's in the AUR I will show you the commands I always like to give two options for the
03:57installation
03:58from the AUR you know what which is which you know which is which whenever you see them so apply
04:09the one that you like in order to use it
04:29or the second method
04:39enter enter I thought that this piece of software is not installed on my server or target I installed it
04:51before it has a service you may need to enable it in case it is needed
05:03so let's explore it together and know what it is it's not any different from the package when
05:11it comes to its name it is like this
05:25and we can check it it was enabled and started during the installation so we have it running as you
05:36can see here let's clear out the screen here and here as well
05:44I'm gonna depend on the arch wiki I have it on my phone here so the arch wiki says that
05:54the ethernet interface needs to be on I have that already I can ping the client and the server from
06:07each I have their IP address
06:13this one's IP address this one's IP address is dot 10 and the at the end so I can ping
06:20it here
06:23and they both work I will run a command this command every time run needs to be run carefully so
06:35be careful when you run it I'm not sure if
06:41yes let's try to run it without sudo privileges if equals slash dev slash 0 of equals v blade 0
06:56which is what we're gonna use later bs equals 1 m this is the size of the file to be
07:05exported
07:06it's a file since everything in unix is file this replaces the block device it's gonna be considered later a
07:14block device and whenever you hear block device remember partitions volumes hard drives etc they are mostly block devices
07:25so count 256 I'm taking this from the wiki of arch linux you may need to double check it and
07:36it is correct this name remember it this size you change it the way you like you may make it
07:4210 megabytes if you want or 1 gigabyte or 10 gigabytes if it is a partition you don't need to
07:49run this command we may do it in a future video export in a particular partitions
08:13the next command is the command that will export this to be able to
08:22attach it to attach it to our initiator or client we export it on the target or the server target
08:31means server for this protocol so we run v blade
08:37one one before that we need to see the network protocol in my case it's enp0s3 this one paste it
08:49here
08:49we make it v blade one space one space the network interface and then v blade 0 in case you
09:05chose a different name make sure you type it correctly enter yes we need to do it with pseudo privileges
09:12like this like this and all right now it's time to attach it to the client I mean the partition
09:23or the block device which we use it for it here file it's an image is gonna appear for us
09:33in our client and that's the magic of this protocol it helps later
09:42transfer transfer transfer transfer transfer transfer transfer transfer transfer transfer files and whatnot so we run sudo mod probe aoe
09:54okay ls mod grab aoe and we have it run we have it loaded it's kernel module so we run
10:06ipa to know what is our network interface in my case it's wlan0 it's not the same as the other
10:15one enp0s3
10:22s25 this is the wired one and this is the wireless this one i use the wired one this one
10:28i use the wireless one so we run sudo let me clear the first sudo aoe interfaces
10:43wlan0 you replace wlan0 you replace wlan0 with your interface name enter and then sudo aoe discover enter and then
11:05sudo aoe-stat
11:08wlan0
11:13so we have this here i guess that's the one
11:19and then sudo mkfs.ext4 i believe this command can be skipped in case you don't want to format the
11:32partition since it may be formatted on the server itself
11:38so you can simply skip this and in case you can simply skip this and in case you run this
11:43command on a partition that you didn't format everything will disappear so be careful when you run it
11:54we kill it
11:55cc
11:55cc
11:56cc
11:56dc
11:58cc
12:01cc
12:12cc
12:17Enter. Of course you can choose whichever file system you want here. If you ever wondered whether
12:24you can mount simultaneously the block device on the server and on the client, I mean on the
12:31target and the initiator, I asked the AI about this. He said it's not possible because you are
12:39using plain file systems and not cluster file systems like ext4. If you do it, later the
12:47file system will be corrupted, that's why it is never recommended to do so. So we run
12:53sudo mount slash dev slash ether d. Let me clear out the screen, it would be better. So we run
13:04sudo
13:04mount slash dev slash ether d slash e1 mnt e. We need to make the directory first. So we
13:18run sudo mkdir slash mnt slash e1.1. This is what the ArchWiki suggests and it would be good
13:28since it's the same name as the created device. There is something like a device that was created
13:36since we have it under slash dev and then we run sudo slash dev amount slash dev slash ether d
13:48mnt slash e1.1 mnt e1.1 and then we run lsblk. This is the way to list all the
14:03block devices on your
14:04Linux system and we can see that the newly added device is here. The size is 2.5 gigabytes and
14:14we have
14:16it here. If you wonder whether I can mount it here or not, the answer is yes, I can. But
14:23since it is
14:24a plain, not a cluster file system, it will be corrupted later and it's not recommended to do so.
14:32So we can make a file sudo touch slash mnt slash e slash test ls mnt e. There it is.
14:53Lost and found
14:54is usually created in ext file systems, the extended file systems. We can run sudo on the text editor
15:03mnt e1 test. This works. Save and exit. And then sudo umount slash dev slash ether d. This one
15:23e1 test. Alright, let's go back to our server to see the file how it resides in the virtual image.
15:39We have it
15:40here. So we run sudo. We run sudo mount. Let's make a directory ls. Uh, sudo mkdir slash mnt. We
15:58call
15:58it img, like this. And then sudo mount vblade 0 mnt img.
16:10and then ls mnt img and we have the file that we just created it means we can transfer files
16:20if we want to see the content we can run cat mnt img test and we have this works so
16:30that was the
16:31initial and simple setup of AOE ATA over Ethernet please don't forget to subscribe like share and
16:41comment and comment I'm signing out and peace