Archive for the ‘Linux Solution’ Category

OpenMediaVault – Btrfs is a modern Copy on Write (CoW) filesystem and Snapper is a tool that helps managing snapshots of Btrfs subvolume

Montag, November 23rd, 2020

Cleanup based on Free Space in Filesystem – so far the space aware cleanup algorithms looked at the space the snapshots are using the algorithms are now extended to also look at the free space of the filesystem. Per default snapshots are deleted until at least 20% of the filesystem are free within the allowed limits (e.g. the NUMBER_LIMIT variable)

root@OpenMediaVault:~# snapper -c USBStick1 list
# | Type | Pre # | Date | User | Cleanup | Description | Userdata
—-+——–+——-+————————–+——+———-+————-+———
0 | single | | | root | | current |
1 | single | | Sun Nov 22 16:56:33 2020 | root | | |
2 | single | | Sun Nov 22 17:00:01 2020 | root | timeline | timeline |
3 | single | | Sun Nov 22 17:18:48 2020 | root | | |
4 | single | | Sun Nov 22 18:00:08 2020 | root | timeline | timeline |
5 | single | | Sun Nov 22 19:00:08 2020 | root | timeline | timeline |
6 | single | | Sun Nov 22 20:00:06 2020 | root | timeline | timeline |
7 | single | | Sun Nov 22 21:00:08 2020 | root | timeline | timeline |
8 | single | | Sun Nov 22 22:00:00 2020 | root | timeline | timeline |
9 | single | | Sun Nov 22 23:00:00 2020 | root | timeline | timeline |
10 | single | | Mon Nov 23 00:00:01 2020 | root | timeline | timeline |
11 | single | | Mon Nov 23 01:00:01 2020 | root | timeline | timeline |
12 | single | | Mon Nov 23 02:00:01 2020 | root | timeline | timeline |
13 | single | | Mon Nov 23 03:00:02 2020 | root | timeline | timeline |
14 | single | | Mon Nov 23 04:00:02 2020 | root | timeline | timeline |
15 | single | | Mon Nov 23 05:00:02 2020 | root | timeline | timeline |
16 | single | | Mon Nov 23 06:00:03 2020 | root | timeline | timeline |
17 | single | | Mon Nov 23 07:00:03 2020 | root | timeline | timeline |
18 | single | | Mon Nov 23 08:00:04 2020 | root | timeline | timeline |
root@OpenMediaVault:~#
root@OpenMediaVault:~# snapper -c USBStick2 list
# | Type | Pre # | Date | User | Cleanup | Description | Userdata
—-+——–+——-+————————–+——+———-+————-+———
0 | single | | | root | | current |
1 | single | | Sun Nov 22 18:00:09 2020 | root | timeline | timeline |
2 | single | | Sun Nov 22 19:00:09 2020 | root | timeline | timeline |
3 | single | | Sun Nov 22 20:00:07 2020 | root | timeline | timeline |
4 | single | | Sun Nov 22 21:00:09 2020 | root | timeline | timeline |
5 | single | | Sun Nov 22 22:00:00 2020 | root | timeline | timeline |
6 | single | | Sun Nov 22 23:00:01 2020 | root | timeline | timeline |
7 | single | | Mon Nov 23 00:00:01 2020 | root | timeline | timeline |
8 | single | | Mon Nov 23 01:00:01 2020 | root | timeline | timeline |
9 | single | | Mon Nov 23 02:00:02 2020 | root | timeline | timeline |
10 | single | | Mon Nov 23 03:00:02 2020 | root | timeline | timeline |
11 | single | | Mon Nov 23 04:00:03 2020 | root | timeline | timeline |
12 | single | | Mon Nov 23 05:00:03 2020 | root | timeline | timeline |
13 | single | | Mon Nov 23 06:00:03 2020 | root | timeline | timeline |
14 | single | | Mon Nov 23 07:00:04 2020 | root | timeline | timeline |
15 | single | | Mon Nov 23 08:00:04 2020 | root | timeline | timeline |
root@OpenMediaVault:~#

OpenMediaVault – Btrfs is a modern copy on write (CoW) filesystem and Snapper is a tool that helps managing snapshots of Btrfs subvolume

Sonntag, November 22nd, 2020
root@OpenMediaVault:~# apt-get update -y
root@OpenMediaVault:~# apt-get full-upgrade -y
root@OpenMediaVault:~# apt-get install snapper
root@OpenMediaVault:~# snapper -c USBStick1 create-config /srv/dev-disk-by-label-USBStick1
root@OpenMediaVault:~# snapper -c USBStick2 create-config /srv/dev-disk-by-label-USBStick2
root@OpenMediaVault:~# snapper list-configs
Config | Subvolume
———-+———————————
USBStick1 | /srv/dev-disk-by-label-USBStick1
USBStick2 | /srv/dev-disk-by-label-USBStick2
root@OpenMediaVault:~#
root@OpenMediaVault:~# btrfs subvolume list /srv/dev-disk-by-label-USBStick1
ID 257 gen 22 top level 5 path .snapshots
ID 258 gen 10 top level 257 path .snapshots/1/snapshot
ID 259 gen 13 top level 257 path .snapshots/2/snapshot
ID 260 gen 19 top level 257 path .snapshots/3/snapshot
root@OpenMediaVault:~#
root@OpenMediaVault:~# snapper -c USBStick1 list
# | Type | Pre # | Date | User | Cleanup | Description | Userdata
—+——–+——-+————————–+——+———-+————-+———
0 | single | | | root | | current |
1 | single | | Sun Nov 22 16:56:33 2020 | root | | |
2 | single | | Sun Nov 22 17:00:01 2020 | root | timeline | timeline |
3 | single | | Sun Nov 22 17:18:48 2020 | root | | |
root@OpenMediaVault:~#

OpenMediaVault – Systeminformationen Leistungsdaten Netzwerkschnittstellen

Samstag, November 21st, 2020

OpenMediaVault – to disable SMBv1 and enable higher protocol

Samstag, November 21st, 2020
root@OpenMediaVault:/etc/samba# smbd –version
Version 4.9.5-Debian

it should be sufficient to put this two lines in smb.conf

root@OpenMediaVault:/etc/samba#  vi /etc/samba/smb.conf
[global]
server min protocol = SMB2
server max protocol = SMB3

Freitag, November 20th, 2020

Freitag, November 20th, 2020

Samba & Snapper – the Snapper timeline retention for Snapshot Backup on Linux

Freitag, November 20th, 2020
root@rpi-iot-jsho-samba-01:~# snapper list
# | Type | Pre # | Date | User | Cleanup | Description | Userdata
—–+——–+——-+——————————+——+———-+————-+———
0 | single | | | root | | current |
1 | single | | Tue 27 Oct 2020 19:00:15 CET | root | timeline | timeline |
102 | single | | Sun 01 Nov 2020 00:00:16 CET | root | timeline | timeline |
187 | single | | Wed 04 Nov 2020 12:21:12 CET | root | number | boot |
318 | single | | Tue 10 Nov 2020 00:00:32 CET | root | timeline | timeline |
342 | single | | Wed 11 Nov 2020 00:00:32 CET | root | timeline | timeline |
366 | single | | Thu 12 Nov 2020 00:00:32 CET | root | timeline | timeline |
390 | single | | Fri 13 Nov 2020 00:00:32 CET | root | timeline | timeline |
414 | single | | Sat 14 Nov 2020 00:00:32 CET | root | timeline | timeline |
438 | single | | Sun 15 Nov 2020 00:00:32 CET | root | timeline | timeline |
462 | single | | Mon 16 Nov 2020 00:00:32 CET | root | timeline | timeline |
486 | single | | Tue 17 Nov 2020 00:00:32 CET | root | timeline | timeline |
510 | single | | Wed 18 Nov 2020 00:00:32 CET | root | timeline | timeline |
534 | single | | Thu 19 Nov 2020 00:00:32 CET | root | timeline | timeline |
539 | single | | Thu 19 Nov 2020 05:00:31 CET | root | timeline | timeline |
540 | single | | Thu 19 Nov 2020 06:00:31 CET | root | timeline | timeline |
541 | single | | Thu 19 Nov 2020 07:00:31 CET | root | timeline | timeline |
542 | single | | Thu 19 Nov 2020 08:00:31 CET | root | timeline | timeline |
543 | single | | Thu 19 Nov 2020 09:00:31 CET | root | timeline | timeline |
544 | single | | Thu 19 Nov 2020 10:00:31 CET | root | timeline | timeline |
545 | single | | Thu 19 Nov 2020 11:00:31 CET | root | timeline | timeline |
546 | single | | Thu 19 Nov 2020 12:00:31 CET | root | timeline | timeline |
547 | single | | Thu 19 Nov 2020 13:00:31 CET | root | timeline | timeline |
548 | single | | Thu 19 Nov 2020 14:00:31 CET | root | timeline | timeline |
549 | single | | Thu 19 Nov 2020 15:00:31 CET | root | timeline | timeline |
550 | single | | Thu 19 Nov 2020 16:00:31 CET | root | timeline | timeline |
551 | single | | Thu 19 Nov 2020 17:00:31 CET | root | timeline | timeline |
552 | single | | Thu 19 Nov 2020 18:00:31 CET | root | timeline | timeline |
553 | single | | Thu 19 Nov 2020 19:00:31 CET | root | timeline | timeline |
554 | single | | Thu 19 Nov 2020 20:00:31 CET | root | timeline | timeline |
555 | single | | Thu 19 Nov 2020 21:00:31 CET | root | timeline | timeline |
556 | single | | Thu 19 Nov 2020 22:00:31 CET | root | timeline | timeline |
557 | single | | Thu 19 Nov 2020 23:00:31 CET | root | timeline | timeline |
558 | single | | Fri 20 Nov 2020 00:00:32 CET | root | timeline | timeline |
559 | single | | Fri 20 Nov 2020 01:00:31 CET | root | timeline | timeline |
560 | single | | Fri 20 Nov 2020 02:00:31 CET | root | timeline | timeline |
561 | single | | Fri 20 Nov 2020 03:00:31 CET | root | timeline | timeline |
562 | single | | Fri 20 Nov 2020 04:00:23 CET | root | timeline | timeline |
563 | single | | Fri 20 Nov 2020 05:00:31 CET | root | timeline | timeline |
564 | single | | Fri 20 Nov 2020 06:00:23 CET | root | timeline | timeline |
565 | single | | Fri 20 Nov 2020 07:00:31 CET | root | timeline | timeline |
566 | single | | Fri 20 Nov 2020 08:00:23 CET | root | timeline | timeline |
567 | single | | Fri 20 Nov 2020 09:00:23 CET | root | timeline | timeline |
root@rpi-iot-jsho-samba-01:~#

Raspberry Pi – NAS mit OpenMediaVault 5 selber bauen

Freitag, November 20th, 2020
# apt-get update -y
# apt-get full-upgrade -y
# rm -f /etc/systemd/network/99-default.link
# reboot
# wget -O – https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash
# reboot
# umount /media/pi/…
http://<IP@ OpenMediaVault Server>

Damit die externe Festplatte zum Anlegen von Freigaben zur Verfügung steht muss diese zuerst gelöscht werden dazu wird die Festplatte ausgewählt und anschließend klickt man auf den Button „Löschen„ bei der Abfrage nach der Methode für das Löschen kann man die Methode ’schnell‘ oder ’sicher‘ auswählen

Damit die Festplatte genutzt werden kann muss man noch auf Einbinden klicken damit wird die Festplatte für das System zum Beschreiben und Lesen verfügbar gemacht

Als nächstes werden die Benutzer für den Dateizugriff angelegt dies wird unter Zugriffskontrolle -> Benutzer vorgenommen der Benutzer bekommt einen beliebigen Namen in diesem Beispiel wird der Name ‚OMVshare‘ verwendet

Anlegen der Netzwerkfreigaben die Einstellungen zum Anlegen der Netzwerkfreigaben sind unter Zugriffskontrolle -> Freigegebene Ordner zu finden

Das SMB bzw. CIFS Protokoll bzw.der entsprechende Dienst muss aktiviert werden. Dies geschieht unter dem Punkt Dienste -> SMB/CIFS dort legt man den Schalter Aktivieren um und klickt auf Speichern

 

Mattermost – will zukünftigen Nutzern mit ‚Omnibus‘ möglichst viel Arbeit beim Installieren und Konfigurieren der freien Messaging Anwendung abnehmen

Freitag, November 20th, 2020

Node-RED 1.2.5 – is now available

Mittwoch, November 18th, 2020

OpenMediaVault 5.5.16 – is the next generation network attached storage (NAS) solution based on Debian Linux

Dienstag, November 17th, 2020

Node-RED – how to start creating home automation projects using MQTT

Dienstag, November 17th, 2020

Raspberry PI – NAS Kit

Dienstag, November 17th, 2020

Raspberry Pi – rundes 1,25″ Display mit Folienleiter Anschluss

Montag, November 16th, 2020

Node-RED – everything you need to know to get started with Join App

Sonntag, November 15th, 2020