Cloudshell2 beginner questions

odroidRapid
Posts: 89
Joined: Sun Oct 13, 2019 2:37 pm
languages_spoken: english
ODROIDs: HC2
Has thanked: 22 times
Been thanked: 1 time
Contact:

Re: Cloudshell2 beginner questions

Post by odroidRapid »

Today after reboot system did not mount HDD.
There was problem with corrupted gpt partition.
I was fixing this with:
sgdisk -e /dev/sda

Code: Select all

Caution! After loading partitions, the CRC doesn't check out!
Warning! Main partition table CRC mismatch! Loaded backup parti
tion table
instead of main partition table!

Warning! One or more CRCs don't match. You should repair the di
sk!

***************************************************************
*************
Caution: Found protective or hybrid MBR and corrupt GPT. Using
GPT, but disk
verification and recovery are STRONGLY recommended.
***************************************************************
*************
The operation has completed successfully.
I wonder what is the possible cause of that error?

This is after fixing gpt partition:

Code: Select all

gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.3

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

AreaScout
Posts: 1771
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell, Go2, C4
Has thanked: 111 times
Been thanked: 346 times
Contact:

Re: Cloudshell2 beginner questions

Post by AreaScout »

    If you have this very often, it could be:
    • A hard disk which is very old and getting reallocated sectors or has a high read error rate (check smartdata with 'cloudshell2-monitoring -i' or smarctl for the second disk in your case)
    • Just a faulty hard disk
    • A broken service at restart and the shutdown process was hang e.g some minutes
    • Plug out the power cord on running cs2 in the wrong moment
    • Power failure
    Those are my experiences with some few CS2's, there may be other situations as well where this error occurs

    But again my CloudShell2 did run for 289 days but I was forced to reboot it

    RG

    odroidRapid
    Posts: 89
    Joined: Sun Oct 13, 2019 2:37 pm
    languages_spoken: english
    ODROIDs: HC2
    Has thanked: 22 times
    Been thanked: 1 time
    Contact:

    Re: Cloudshell2 beginner questions

    Post by odroidRapid »

    I can not start radarr installed from armbian-config.
    I have Epic Fail error and long red writen log on ssh shell.
    This is maybe mono error?

    EDIT: - message
    /usr/bin/taskset -c 4-7 /usr/bin/mono --debug /opt/Radarr/Radarr.exe -nobrowser

    Code: Select all

    [Info] Bootstrap: Starting Radarr - /opt/Radarr/Radarr.exe - Version 3.2.2.5080
    [Trace] DiskProviderBase: Deleting file: /root/.config/Radarr/radarr.pid
    [Info] Router: Application mode: Interactive
    
    
    [Fatal] ConsoleApp: EPIC FAIL!
    
    [v3.2.2.5080] System.TypeInitializationException: The type initializer for 'NzbDrone.Core.Datastore.DbFactory' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'System.Text.Json.JsonSerializerOptions' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Text.Json.Serialization.Converters.IEnumerableConverterFactory' threw an exception. ---> System.TypeLoadException: Could not find method '.ctor' due to a type load error: Type System.Text.Json.Serialization.Converters.IDictionaryConverter`1[TCollection] has invalid vtable method slot 32 with method none assembly:/opt/Radarr/System.Text.Json.dll type:IDictionaryConverter`1 member:(null)
       --- End of inner exception stack trace ---
      at System.Text.Json.JsonSerializerOptions..cctor () [0x0001f] in <156be8dd8a8748a88733a94decab76f8>:0
       --- End of inner exception stack trace ---
      at NzbDrone.Core.Datastore.Converters.EmbeddedDocumentConverter`1[T]..ctor () [0x00006] in <70bcba0d870f4fcb9ba91f295f9b5ffe>:0
      at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
      at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00008] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
       --- End of inner exception stack trace ---
      at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x0001f] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
      at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x000ca] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
      at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x0000c] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
      at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x0002a] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
      at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x00040] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
      at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
      at System.Activator.CreateInstance (System.Type type) [0x00000] in <d0e12f672b88444ab4b6d9b2ecf20142>:0
      at NzbDrone.Core.Datastore.TableMapping.RegisterEmbeddedConverter (System.Type embeddedType, System.Type embeddedConverterDefinition) [0x00011] in <70bcba0d870f4fcb9ba91f295f9b5ffe>:0
      at NzbDrone.Core.Datastore.TableMapping.RegisterEmbeddedConverter () [0x0005a] in <70bcba0d870f4fcb9ba91f295f9b5ffe>:0
      at NzbDrone.Core.Datastore.TableMapping.RegisterMappers () [0x00000] in <70bcba0d870f4fcb9ba91f295f9b5ffe>:0
      at NzbDrone.Core.Datastore.TableMapping.Map () [0x00000] in <70bcba0d870f4fcb9ba91f295f9b5ffe>:0
      at NzbDrone.Core.Datastore.DbFactory..cctor () [0x00019] in <70bcba0d870f4fcb9ba91f295f9b5ffe>:0
       --- End of inner exception stack trace ---
      at Radarr.Host.NzbDroneConsoleFactory.Start () [0x00012] in <2455a9609adc45b3a9a0f78eecee6c40>:0
      at Radarr.Host.Router.Route (Radarr.Host.ApplicationModes applicationModes) [0x0007f] in <2455a9609adc45b3a9a0f78eecee6c40>:0
      at Radarr.Host.Bootstrap.Start (Radarr.Host.ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) [0x00047] in <2455a9609adc45b3a9a0f78eecee6c40>:0
      at Radarr.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, Radarr.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x00084] in <2455a9609adc45b3a9a0f78eecee6c40>:0
      at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x00031] in <3b55af499a4744cd9076c8219c6a8353>:0
    
    
    Press enter to exit...

    AreaScout
    Posts: 1771
    Joined: Sun Jul 07, 2013 3:05 am
    languages_spoken: german, english
    ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
    N1, Go, VU5A, Show2, CloudShell2,
    H2, N2, VU7A, VuShell, Go2, C4
    Has thanked: 111 times
    Been thanked: 346 times
    Contact:

    Re: Cloudshell2 beginner questions

    Post by AreaScout »

      Please ask this in OpenMediaVault forums
      These users thanked the author AreaScout for the post:
      odroidRapid (Wed Dec 01, 2021 4:50 am)

      odroidRapid
      Posts: 89
      Joined: Sun Oct 13, 2019 2:37 pm
      languages_spoken: english
      ODROIDs: HC2
      Has thanked: 22 times
      Been thanked: 1 time
      Contact:

      Re: Cloudshell2 beginner questions

      Post by odroidRapid »

      Now I need more "RAM" and I wont to do this with zram.
      I see that zram is disabled on Armbian by default.
      How can I enable and setup zram or is better to use swap file or swap partition for that?

      User avatar
      rooted
      Posts: 8999
      Joined: Fri Dec 19, 2014 9:12 am
      languages_spoken: english
      Location: Gulf of Mexico, US
      Has thanked: 745 times
      Been thanked: 422 times
      Contact:

      Re: Cloudshell2 beginner questions

      Post by rooted »

      odroidRapid wrote:Now I need more "RAM" and I wont to do this with zram.
      I see that zram is disabled on Armbian by default.
      How can I enable and setup zram or is better to use swap file or swap partition for that?
      Looking at the configuration on GitHub it seems to be related to this configuration file:

      Code: Select all

       /etc/default/armbian-zram-config 
      https://github.com/armbian/build/blob/m ... ram-config

      odroidRapid
      Posts: 89
      Joined: Sun Oct 13, 2019 2:37 pm
      languages_spoken: english
      ODROIDs: HC2
      Has thanked: 22 times
      Been thanked: 1 time
      Contact:

      Re: Cloudshell2 beginner questions

      Post by odroidRapid »

      Unfortunately I was not able to set the zram to work. Everything I set in the settings unfortunately does not give results.

      User avatar
      rooted
      Posts: 8999
      Joined: Fri Dec 19, 2014 9:12 am
      languages_spoken: english
      Location: Gulf of Mexico, US
      Has thanked: 745 times
      Been thanked: 422 times
      Contact:

      Re: Cloudshell2 beginner questions

      Post by rooted »

      odroidRapid wrote:Unfortunately I was not able to set the zram to work. Everything I set in the settings unfortunately does not give results.
      Did you load the module?

      odroidRapid
      Posts: 89
      Joined: Sun Oct 13, 2019 2:37 pm
      languages_spoken: english
      ODROIDs: HC2
      Has thanked: 22 times
      Been thanked: 1 time
      Contact:

      Re: Cloudshell2 beginner questions

      Post by odroidRapid »

      I think I did not.
      How can I enable this module or check if module is allready enabled?

      EDIT:
      zram is enabled when I edit /etc/default/armbian-zram-config

      Code: Select all

      # configuration values for the armbian-zram-config service
      #
      # enable the armbian-zram-config service?
      ENABLED=true
      
      # Zram swap enabled by default, unless set to disabled
      # SWAP=false
      
      # percentage of zram used as swap compared to physically available DRAM.
      # Huge overcommitment (300) is possible and sometimes desirable. See
      # https://forum.armbian.com/topic/5565-zram-vs-swap/?do=findComment&comment=61082
      # and don't forget to adjust $MEM_LIMIT_PERCENTAGE below too.
      ZRAM_PERCENTAGE=25
      
      # percentage of DRAM available to zram. If this amount is exceeded the zram
      # devices used for swap simply behave as if the device is full. You need to
      # adjust/increase this value only if you want to work with massive memory
      # overcommitment (ZRAM_PERCENTAGE exceeding 150 for example)
      # MEM_LIMIT_PERCENTAGE=50
      
      # create how many zram devices max for swap
      # ZRAM_MAX_DEVICES=4
      
      # Which algorithm for zram based swapping. Seems lzo is best choice on ARM:
      # https://forum.armbian.com/topic/8161-swap-on-sbc/?do=findComment&comment=61668
      SWAP_ALGORITHM=lzo
      
      # Which algorithm to choose for zram based ramlog partition
      # RAMLOG_ALGORITHM=zstd
      
      # Which algorithm to choose for zram based /tmp
      # TMP_ALGORITHM=zstd
      
      # Size for zram based /tmp, total memory / 2 by default
      # TMP_SIZE=500M
      
      # If defined a separate partition will be used as zram backing device. Be CAREFUL
      # which partition you assign and read starting from CONFIG_ZRAM_WRITEBACK in
      # https://www.kernel.org/doc/Documentation/blockdev/zram.txt
      # ZRAM_BACKING_DEV=/dev/nvme0n2
      zramctl shows only one /dev/zram* - I think it must be one per cpu core = 8 x /dev/zram*

      Code: Select all

      NAME       ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
      /dev/zram0 lzo-rle     497.6M   4K   73B    4K       8 [SWAP]
      After system reboot zram not working.
      What I need to enable to have zram after reboot?

      What I need to do or change to have max performance?

      User avatar
      rooted
      Posts: 8999
      Joined: Fri Dec 19, 2014 9:12 am
      languages_spoken: english
      Location: Gulf of Mexico, US
      Has thanked: 745 times
      Been thanked: 422 times
      Contact:

      Re: Cloudshell2 beginner questions

      Post by rooted »

      The count is set when the module is loaded, if it's loaded with default options it has one. You see in the configuration the place to set the amount which has to be uncommented (remove the leading #)

      Code: Select all

      ZRAM_MAX_DEVICES=4
      
      I don't use Armbian so I'm unable to help further.

      These users thanked the author rooted for the post:
      odroidRapid (Thu Jan 06, 2022 3:53 pm)

      odroidRapid
      Posts: 89
      Joined: Sun Oct 13, 2019 2:37 pm
      languages_spoken: english
      ODROIDs: HC2
      Has thanked: 22 times
      Been thanked: 1 time
      Contact:

      Re: Cloudshell2 beginner questions

      Post by odroidRapid »

      Unfortunately, I couldn't find any instructions how to configure zram on armbian using armbian-zram-config.

      User avatar
      rooted
      Posts: 8999
      Joined: Fri Dec 19, 2014 9:12 am
      languages_spoken: english
      Location: Gulf of Mexico, US
      Has thanked: 745 times
      Been thanked: 422 times
      Contact:

      Re: Cloudshell2 beginner questions

      Post by rooted »

      odroidRapid wrote:Unfortunately, I couldn't find any instructions how to configure zram on armbian using armbian-zram-config.

      Code: Select all

      sudo apt install zram-config

      odroidRapid
      Posts: 89
      Joined: Sun Oct 13, 2019 2:37 pm
      languages_spoken: english
      ODROIDs: HC2
      Has thanked: 22 times
      Been thanked: 1 time
      Contact:

      Re: Cloudshell2 beginner questions

      Post by odroidRapid »

      After systemctl enable armbian-zram-config command zram is working after reboot.

      I have one more question.
      I run armbian OS from emmc card and I have one SSD on Cloudshell2...
      Where to instal docker containers?
      To default location( /var/lib/docker) on emmc or is better to install docker containers to SSD to "extend life" od emmc?

      User avatar
      mad_ady
      Posts: 10155
      Joined: Wed Jul 15, 2015 5:00 pm
      languages_spoken: english
      ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
      Location: Bucharest, Romania
      Has thanked: 632 times
      Been thanked: 817 times
      Contact:

      Re: Cloudshell2 beginner questions

      Post by mad_ady »

      To default location( /var/lib/docker) on emmc or is better to install docker containers to SSD to "extend life" od emmc
      It depends on the IO load of the containers. For low lO emmc is fine, but for something like a database (mysql, influxdb, prometheus, rrd), the ssd is better.
      I ran munin (which uses rrds) to monitor my home network (~10 devices) and my 32GB emmc aged to 50% in about 3 years because of the 5 minute writes.
      These users thanked the author mad_ady for the post:
      odroidRapid (Sat Jan 08, 2022 9:29 pm)

      odroidRapid
      Posts: 89
      Joined: Sun Oct 13, 2019 2:37 pm
      languages_spoken: english
      ODROIDs: HC2
      Has thanked: 22 times
      Been thanked: 1 time
      Contact:

      Re: Cloudshell2 beginner questions

      Post by odroidRapid »

      Then I will use SSD for docker...thanks

      User avatar
      odroid
      Site Admin
      Posts: 38556
      Joined: Fri Feb 22, 2013 11:14 pm
      languages_spoken: English, Korean
      ODROIDs: ODROID
      Has thanked: 2219 times
      Been thanked: 1298 times
      Contact:

      Re: Cloudshell2 beginner questions

      Post by odroid »

      I have no idea on that Armbian's kernel.
      But, trim command worked fine with Ubuntu 20.04 + Kernel 5.4 at least as far as I remember.

      User avatar
      rooted
      Posts: 8999
      Joined: Fri Dec 19, 2014 9:12 am
      languages_spoken: english
      Location: Gulf of Mexico, US
      Has thanked: 745 times
      Been thanked: 422 times
      Contact:

      Re: Cloudshell2 beginner questions

      Post by rooted »

      odroid wrote:I have no idea on that Armbian's kernel.
      But, trim command worked fine with Ubuntu 20.04 + Kernel 5.4 at least as far as I remember.
      It indeed works correctly with 5.4 on Ubuntu.

      Post Reply

      Return to “CloudShell”

      Who is online

      Users browsing this forum: No registered users and 2 guests