Hi, in the previous video I showed how to create a free NAS server with OpenMediaVault
In this video I will create a cloud storage with that NAS server
This is my NAS server, it has all 4 hard drives
Solid state drive for installing OpenMediaVault operating system
The remaining three hard drives will store data
We will merger 3 traditional hard drives into one to have a large capacity cloud storage
You need to do 6 steps to create your own storage cloud
First you install OMV Extras for the OpenMediaVault NAS server
You connect to the NAS server using ssh
You open the Windows command window enter the command ssh root @ ip address
My NAS server ip address is 10.11.32.226
To install omv extras just copy and paste this command
It takes about 30 seconds to complete the installation
Then you refresh the management page of OpenMediaVault and you will find omv extras in the System menu
After installing omv extra we install mergerfs to merge traditional hard drives into one
You can also create a storage cloud on an individual hard drive and skip this step
But I would recommend you this way to increase your cloud storage
Also this way you can add hard drives to your cloud in the future
After installing mergerfs you will find it in the Storage menu
Next, you merge the traditional hard drives into one
My NAS server currently has 2 1TB hard drives and 1 500GB hard drive
You name and select all the hard drives you want to merge them together
Let's wait until the end of the video to see how much our cloud storage is
It will take about 5 to 10 minutes to complete so please wait patiently
After merging the hard drives into one, we install Docker and Portainer
System omv extras Docker
Thanks to the installation of omv extra in the previous step I was able to install Docker very easily
You just need to click Install and wait
After a while you should see Docker installed successfully
To manage and use Docker containers you will need Portainer
So next you install Portainer
You just need to click Install and wait
Next, you open the Portainer management page
You will be asked to create a new admin password
Password must be at least 12 characters
So we have installed Docker and Portainer
We will deploy the first container which is File Browser
File Browser helps you to browse NAS server folders
Also you can create new, download, upload files with it
Default username and password are both admin
I set the port to 82 and you need to make sure it doesn't match the one you're using
Bind
Set the host to /srv
With volume mapping you configure as I am configuring to be able to access the data hard drives of the NAS server
Deploy the container
Wait a while for the new container to start
Next, you open the management page of File Browser
As set in the previous step, the port is 82
Default username and password are both admin
Here you can browse up to 3 traditional NAS hard drives
But the folder we need to care about is called mergerfs
This folder gives us the combined storage capacity of 3 traditional hard drives
In the folder mergerfs you create a new folder named appdata
This folder will store your cloud data
This is the path to the appdata folder and we will use it in the next step
Because my NAS server is behind the router so I have to forward the port
Port forwarding makes it possible for me to access my cloud storage from anywhere
I open my router's management page
nas server is using port 80 so i will forward port 81
I will create two new port forwards, 81 and 443
The ip address I will forward to it is the nas server's ip address
My nas ip address is 10.11.32.226
First port forwarding is port 81
Second port forwarding is port 443
If port 443 is already in use you can use another port, for example port 444
So I have finished forwarding port 81 and 443 to ip address 10.11.32.226
If port 80 is not in use you can forward this port
We have reached the final step of the video which is also the main step to create a private cloud storage server
You go to openmediavault's forum and copy the text file as above
I will put the link in the description of the video for your reference
You open the NotePad software available on Windows and paste the text
Next we edit to fit our NAS server
First of all, I will delete all the comment
Next you set up the time zone, each person is in a different time zone, so set it up accordingly
I set the time zone as Asia/Ho_Chi_Minh
You update in three different lines
Time zone for nextcloud
Time zone for the database
And finally time zone for domain configuration
Next is to set up where to install and store data
In the previous step of this video we created a folder called appdata to store the data of the cloud
So you copy the path and edit it to suit you
As in my case the path would be
/srv/mergerfs/mergerHDD/appdata
The rest of the path you keep
You in turn edit the path for nextcloud, database and domain name
You need to make sure you have fully updated the paths that match your NAS server
If you only use a separate hard drive for your private cloud, then edit the path accordingly
Next is to set up the domain name
I use duckdns to get a free domain name
With duckdns you can create 5 domains for free
I created a new domain name netvnomv.duckdns.org
Next I will configure this domain for my private cloud
You update the domain name here
Set subdomain as wildcard
Set validation to duckdns
You update your email address
With duckdns you cannot lack tokens
duckdnstoken
You copy and paste your token here
Thus I finished the text file
Stacks
It's time to create a private storage cloud with Docker
I named it nextcloud
Next you copy and paste the text here
You make sure that no syntax errors occur
Like here I have a syntax error and I will fix it
Because I use port 443 so I will replace port 444 with port 443
Looks like everything's done
Next you click Deploy the stack
There will be 3 containers created so it will take a while to complete
As you can see there are 3 new containers created
You pay attention to the swag container first
You open the swag container's log
You wait a moment for your domain to be certified
When you receive the words Server Ready, it's done
Next you open a New Tab of your web browser and enter your domain name
Don't forget to add https in front of your domain name
A swag welcome page appears, so I'm done with this step
Next I will set up a subdomain for my private cloud hosting
For that, we need the help of File Browser
You browse to the swag folder
Next browse to nginx proxy confs
Here stores a lot of sample configuration files, our task is to find a sample configuration file for the nextcloud subdomain
You download the sample configuration file and rename it
You just need to remove the .sample extension of the file
Next you upload this file
You need to make sure the file is uploaded successfully
Next you edit the default file of nginx
You download the file
Next use notepad to edit
You add a hashtag in front of the lines as above
Don't forget to save your changes before closing the file
Then you upload the edited file and replace the old default file with the new one
For the settings to take effect, restart swap
Come on let's try
https://nextcloud.netvnomv.duckdns.org
A nextcloud screen appears, so we are about to succeed
You create a new admin account for nextcloud
Next is the database configuration
You reopen the text file in the previous step and fill in the information that matches your database
If you change your password or database name, update it correctly
So I have introduced how to install nextcloud on OpenMediaVault
this way you will turn your nas server into a private storage cloud
With NextCloud you can access your data anywhere
You can access from your computer or phone
Let's wait and see how much capacity does Private storage cloud has
As you can see my cloud storage is 2.2TB, that's because I merged 3 hard drives into one
Thank you for watching, don't forget to like and subscribe to the channel
If you want to know how to install OpenMediaVault then watch my previous video