syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
400 stars 40 forks source link

Support Odroid HC4 #566

Closed cyberb closed 3 years ago

cyberb commented 3 years ago

https://odroid.in/ubuntu_20.04lts/c4-hc4/ubuntu-20.04-4.9-minimal-odroid-c4-hc4-20201212.img.xz

cyberb commented 3 years ago

Here is the image for testing: https://github.com/syncloud/platform/releases/download/21.01/syncloud-odroid-hc4-21.01.img.xz Reopen if does not work.

simoneburalli commented 3 years ago

hi team, just flashed Syncloud into a brand new HC4. The boot is ok. I have found only a problem: shutdown -h now does not carry out any effect. On the Rasp Pi4 the same command triggers a real shutdown with a list of services that stop. This is crucial because I don't know the effects on Syncloud system after a "hot" shutdown and, first of all, HC4 contains 2 hard drives and I don't think it's a good idea to switch the system off with disk running. Any comments? Thanks a lot for great support

cyberb commented 3 years ago

As I understand shutdown calls systemd so it does a proper stop of all the services.

shutdown -h now does not carry out any effect

That is probably because our uwsgi service does not have a proper shutdown event handler so it waits for 30 seconds before the shutdown (times 2 probably), try waiting for a minute or two.

simoneburalli commented 3 years ago

YES! You are right: proper shutdown and the disks stop. Also with Rasp Pi4 I had to wait for a couple of minutes, the only difference is that with HC4 the console does not give any message, only a blinking cursor while with Rasp the user gets several colorful messages for any service. Anyway, being that I'm gonna perform the shutdown remotely from now on, I'm not interested in what happens console-wise. Thanks a lot.

simoneburalli commented 3 years ago

1. I have followed the guide to use mdadmfor RAID1. Everything flowed smoothly except for the last sudo initramfs-update -u that gave this output: update-initramfs: Generating /boot/initrd.img-4.9.236-63 W: Couldn´t identify type of root file system for fsck hook Could it be an issue for the next boot? UPDATE After a reboot the RAID is still correctly mounted. 2. the RAID 1 is up and running with EXT4 partition (see details below) but Syncloud ask me for formatting it. Note: the size of the RAID is correct. How do I have to go ahead? There is a similar issue for Helios (#433 ) but unfortunately it is not clear what the solution is, if any, because the user has never replied clearly

image

Here follow the details of the status of RAID1 (md0):

cat /proc/mdstat and df -h -x devtmpfs -x tmpfs :

image

and sudo mdadm -D /dev/md0 :

image

and here is lsblk -Jp -o NAME,....:

image

Thank you very much

cyberb commented 3 years ago

First of all this is not correct issue for raid problems (this is much better https://github.com/syncloud/platform/issues/570). Here is the instruction to follow: https://github.com/syncloud/platform/wiki/Multiple-Disks You should unmount the disk first.