Saturday, March 21, 2020

Raspi Ubuntu Raid 1

Raid 1 on ubuntu setup

:/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


   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

cat /proc/mdstat

Monday, March 9, 2020

Raspi 4GB problem Ubuntu

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:


Saturday, March 7, 2020

Samba CIFS Share ubuntu raspi

Setup like there:

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

 testparm && sudo systemctl restart smbd & sudo systemctl restart nmdb

Move to Docker: