Saturday, March 21, 2020

Raspi Ubuntu Raid 1

Raid 1 on ubuntu setup
https://ourcodeworld.com/articles/read/736/how-to-implement-a-software-raid-1-array-mirror-in-ubuntu-16-04


:/home/shares$ sudo mdadm --detail --scan

ARRAY /dev/md0 metadata=1.2 name=iOBroker1:0 UUID=ae338e6c:87421f87:56adea0f:e4e066c0

:/home/shares$ sudo mdadm --detail --scan | sudo tee -a /etc/mdadm/mdadm.conf

ARRAY /dev/md0 metadata=1.2 name=iOBroker1:0 UUID=ae338e6c:87421f87:56adea0f:e4e066c0







debugging and getting info:

~$ sudo mdadm  -E /dev/sdc

/dev/sdc:

   MBR Magic : aa55

Partition[0] :   4294967295 sectors at            1 (type ee)

:~$ cat /proc/mdstat

Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]

md0 : active raid1 sdb[1] sda[0]

      244066432 blocks super 1.2 [2/2] [UU]

      bitmap: 0/2 pages [0KB], 65536KB chunk



Statusanzeige des Software-RAIDs
~# mdadm -D /dev/mdN


sudo mdadm -D /dev/md0

 sudo cat /etc/mdadm/mdadm.conf


regular error with mount.cifs -2 can relate to version being

Try options vers=1.0  or vers=2.0

Monday, March 9, 2020

Raspi 4GB problem Ubuntu

https://askubuntu.com/questions/94542/how-can-i-repair-my-installation



In the meantime, developers can use a temporary workaround to enable USB on the 4GB RAM version. The temporary solution will consist in editing the file /boot/firmware/usercfg.txt to limit RAM to 3GB, as follows:
https://ubuntu.com/blog/roadmap-for-official-support-for-the-raspberry-pi-4

total_mem=3072

Saturday, March 7, 2020

Samba CIFS Share ubuntu raspi

https://www.elektronik-kompendium.de/sites/raspberry-pi/2007071.htm


Setup like there:


Error:
Systemfehler 67 aufgetreten.

Der Netzwerkname wurde nicht gefunden.

came from the wrong path in /etc/samba\smb.conf



Check Status of Samba Access:
sudo smbstatus

Usage: [OPTION...]
  -p, --processes                    Show processes only
  -v, --verbose                      Be verbose
  -L, --locks                        Show locks only
  -S, --shares                       Show shares only
  -N, --notify                       Show notifies
  -u, --user=STRING                  Switch to user
  -b, --brief                        Be brief
  -P, --profile                      Do profiling
  -R, --profile-rates                Show call rates
  -B, --byterange                    Include byte range locks
  -n, --numeric                      Numeric uid/gid
  -f, --fast                         Skip checks if processes still exist

Help options:
  -?, --help                         Show this help message
      --usage                        Display brief usage message

Common samba options:
  -d, --debuglevel=DEBUGLEVEL        Set debug level
  -s, --configfile=CONFIGFILE        Use alternate configuration file
  -l, --log-basename=LOGFILEBASE     Base name for log files
  -V, --version                      Print version
      --option=name=value            Set smb.conf option from command line