Learning Library

← Back to Library

ODROID H2 NAS: LACP Link Aggregation & RAID1

Key Points

  • The creator needed more storage for video editing and chose to build a NAS using an ODROID‑H2 single‑board computer.
  • They installed network‑attached storage software (TrueNAS/FreeNAS) on the device, accessed it via the router‑assigned DHCP IP, and logged in as root after setting a custom password.
  • To boost network bandwidth, they configured LACP link aggregation across the H2’s two Gigabit Ethernet ports, assigning a static IP (192.168.10.222) outside the router’s DHCP range and matching the settings on a managed switch.
  • They then created a new storage pool on two SATA SSDs, selecting a RAID‑1 (mirror) layout for data redundancy, while keeping the existing eMMC boot pool untouched.

Full Transcript

# ODROID H2 NAS: LACP Link Aggregation & RAID1 **Source:** [https://www.youtube.com/watch?v=wLA0b_v05Js](https://www.youtube.com/watch?v=wLA0b_v05Js) **Duration:** 00:06:17 ## Summary - The creator needed more storage for video editing and chose to build a NAS using an ODROID‑H2 single‑board computer. - They installed network‑attached storage software (TrueNAS/FreeNAS) on the device, accessed it via the router‑assigned DHCP IP, and logged in as root after setting a custom password. - To boost network bandwidth, they configured LACP link aggregation across the H2’s two Gigabit Ethernet ports, assigning a static IP (192.168.10.222) outside the router’s DHCP range and matching the settings on a managed switch. - They then created a new storage pool on two SATA SSDs, selecting a RAID‑1 (mirror) layout for data redundancy, while keeping the existing eMMC boot pool untouched. ## Sections - [00:00:00](https://www.youtube.com/watch?v=wLA0b_v05Js&t=0s) **Configuring NAS with Link Aggregation** - The speaker walks through building an ODROID‑H2 NAS, installing Frass, assigning an IP via DHCP, and setting up link aggregation across two Gigabit interfaces together with a RAID‑1 mirror configuration. ## Full Transcript
0:00so recently I was coming across an issue 0:02running out of storage on my laptop 0:05especially as I started to do more video 0:08editing so I figured why not build a Nas 0:10or a network attached storage device 0:13using one of these guys so this is an OD 0:16Droid H2 basically what the build is 0:18going to consist of is network attached 0:21storage software that you can put onto 0:25different Hardware boxes the other thing 0:27I'm going to do is I'm going to set up a 0:28link aggregation between the two gbit 0:30ethernet interfaces back to a manage 0:33switch and then what I'm going to be 0:34doing is setting up a raid one 0:37configuration or a mirror configuration 0:39between the twoa drives so the Fraz 0:43system that I set up once I went through 0:45the installation on the ooid H2 it'll 0:48and you plug it into your network you 0:50will get an IP address via the console 0:53via DHCP so my home router assigned a DP 0:56address of 1921 0:5868138 so we'll go ahead and log in with 1:00the root account and I've already 1:03updated the password during the 1:05installation all right so the first 1:06thing you can be presented with is the 1:09the dashboard page so you can see just 1:11some statistics of the device here the 1:13version of fras you're running CPU 1:16memory and also I have my two ethernet 1:20interfaces here and so the first thing 1:22we're going to do is set up the link ha 1:23so in order to do the link aggregation 1:25go under Network go to 1:27interfaces we're going to go ahead and 1:29add an new interface let's select the 1:32type link aggregation let's go ahead and 1:35call it 1:36lg1 there is a special naming format you 1:39have to use if you hit the question mark 1:41here you can read The Help that'll show 1:43you that and then as we scroll down 1:45we're going to select 1:47lacp and then we're going to select re 1:50e0 and one to be part of that lag and 1:53then I'm also going to create a static 1:56IP address of 1921 16810 222 this static 2:00IP address that I've given it it's 2:02outside of the DHCP scope of my home 2:05router so we won't have any issues there 2:07so we're going to go ahead and hit apply 2:10and it's going to go ahead and ask you 2:12do you want to go ahead and apply them 2:13now and we'll go ahead and say yes and 2:17we're going to confirm and we're going 2:19to lose intermittent internet 2:21connectivity while those changes are 2:24being applied however while that's being 2:26done we'll go into our switch and set up 2:28the lacp on the switch side so the next 2:31thing we're going to do is go ahead and 2:32set up a new storage pool so the way you 2:35do that is you go to storage and go to 2:37pools and I have a poll created here 2:40already that's actually on the mvme 2:43drive so I actually decided to install 2:45another Drive um via an emmc module on 2:49the ooid H2 so that's my solo pool so 2:52I'm going to go ahead and create another 2:54Pool so we're going to hit create new 2:56pool we're going to go ahead and just 2:58call it let's call it mirror pool use 3:01case sensive we're not going to do any 3:03encryption and then we could go ahead 3:05and select the two 3:08SSD uh SATA 3:10drives and we're going to go ahead and 3:12use those and we're going to go ahead 3:15and make sure that it's up to mirror so 3:17the data is going to be when we copy the 3:19data to the share it's going to actually 3:22recreate a copy of that data to the 3:24other SSD drive so if one of these fails 3:26I'll be able to still access my data 3:29with just just one drive so go ahead and 3:31select that and we'll go ahead and hit 3:34create and yep all the data on there is 3:37going to be erased which is fine go 3:39ahead and create that pool so what I'm 3:41going to do now is I'm actually going to 3:43go ahead and create a new data set on 3:47that particular 3:48pool so the data set is going to be tied 3:51back to the share the NFS share that 3:53we're going to create so I'll go ahead 3:55and give it a new name so I'm going to 3:57go ahead and call it um here share so I 4:00have a mirror pool I'm creating a data 4:02set mirror 4:03share and let's go to advance mode 4:07really quick and make sure there's no 4:09other settings or options that we want 4:11to 4:12change looks good we'll go ahead and hit 4:15save all right so there we go we have 4:18the the pool created and then we have 4:21the data set and then we can go ahead 4:23and look at the 4:24permissions so I went ahead and created 4:27a a user account that matches the user 4:30that I'm using within my uh on my 4:33MacBook here and so that user account is 4:36just called Macbook so we're going to go 4:37ahead and assign this data set rights to 4:40that particular account we're going to 4:42go ahead and give read write and we'll 4:44have execute as well and we want to set 4:48permissions recursively see Traverse 4:52there we'll also have that so this is 4:54going to Pro apply permissions to all 4:56child data sets as well and go ahead and 4:59hit save 5:00all right so now that we have that new 5:02share created we're going to go ahead 5:04and scroll 5:06down to 5:08sharing and we're going to go to NFS and 5:11we're going to create a new NFS share so 5:13we currently have one tied to the mvme 5:15drive that's tied back to the data set 5:18and the pool for the mvme drive now 5:20we're going to go ahead and reference 5:22our new pool that we created and our 5:26share so we're going to go ahead and 5:28select that 5:30and let's just look at Advance mode 5:32really quick and so let's go ahead and 5:35map again to the MacBook user and we're 5:38going to want to allow the client to 5:40mount to any 5:41subdirectory we don't want to do read 5:43only because we actually want to read 5:44and write delete everything with this 5:47share and we'll go ahead and hit save so 5:50now what we should be able to do is 5:52let's go to go connect to server and 5:55we're going to go ahead and change this 5:58to our mirror port pool and we're going 6:00to say mirr share and there we go so we 6:04now are connected to our NFS share if 6:08you have any questions feel free to 6:10leave them in the comments below and I 6:11hope you have fun building your own 6:13freance system