Ok - I’ve previously installed nextcloupi on pi 3 and liked it (1tb usb drive as storage) but of course browsing the forums came across the recommendation of the odroid HC1 as a good platform. As I’d taken the pi out of a pi 3 cluster of 3, this was a good solution to get the cluster back . I want to trial the cluster for docker/kubernetes with nextcloud docker image but the issue is how to access storage - but that will come later. so I ordered an HC1 (wish it was an HC2)
The following is just a capture of my way to get it up and running - hope it might help someone else.
Experience so far is good using the armbian image (with some hiccups).
But its running now.
Current config 16 Gb Sd card - 2tb seagate 2.5" HDD - 100 gb ext4 and 1.7 Tb partition - btrfs.
Just wondering about how to maximise performance as initially I had issues when I used the admin web gui (nextcloud - not ncp) to update - I had some problems creating users after the update so reinited and reconfigged. Its an iterative process to get the best stable config - but getting there.
My preference would be boot off the sata hdd - and swap on that as well but looks like boot is not possible - see below about moving rootfs to sata as best compromise.
Need to do some investigating on how to achieve everything but here’s a quick recipe - comments and suggestions welcome on how I got to this point:
Download armbian image (https://ownyourbits.com/downloads/testing/Armbian_5.35_Odroidxu4_Debian_stretch_next_4.9.61_NCP.tar.bz2 )
- un pack image and dd to sd card (16Gb) , plug the sdd card into the odroid with 2 Tb 2.5" sata hdd unpartitioned.
- boot system - check router for new dhcp client ip and mac address. ( I then reserve the allocated address on the dhcp server on the router to ensure its stays with that address)
- ssh to ip address - login with root - 1234
- system prompts for new user - fill in details - new password logout
- log back in as new user
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo dpkg-reconfigure locales
sudo dpkg-reconfigure tzdata
partition your hard disk:
fdisk -l will help you find the disk (
/dev/sda) - then
fdisk /dev/sda to partition. I partitioned with 100 Gb
/dev/sda1 (for subsequent root filesystem) and
/dev/sda2 btrfs for data. You can use GPT or DOS partition type - I used DOS out of habit.
mkfs -t btrfs /dev/sda2 to put a filesystem on /dev/sda2
mkdir /data and
mount -t btrfs /dev/sda2 /data to check and then
umount /data - it will be mounted later.
- as an alternative to the above dist-upgrade and locale and timezone settings you can run
sudo armbian-config - its worth having a look
- I did the firmware update from this util - it hung on php7.0-fpm but I logged in on another terminal and rebooted - all good - probably best to do from command line
armbian-config does help with moving rootfs to sata - a bit of an ugly menu glitch - lots of red text but pressed yes anyway. screen says will take 25 mins to copy root file system - and it took at least that. But worked.
Reboot to make sure it all works as expected - login and check out new mounts:
/dev/sda1 on / type ext4
Now setup system mounting for your data disk
sudo vi /etc/fstab
I appended the following line:
UUID=54a59b05-14b1-4fe8-aba5-6e51232ad237 /data btrfs defaults,noatime,nodiratime 0 2
You can get the UUID with
sudo mount -a and then
df -h should show 1.8Tb on
Whilst on the system - if you need to - add trusted domains to
/var/www/nextcloud/config/config.php - I have to do this because I have my own internal/home network dns.
Hopefully everything is good and you can go on and configure Nextcloud using ncp -
http://<yourip>:4443 - login ncp password