Synology RAID1 With 2 nvme SSD

:~# synopartition --part /dev/nvme0n1 12
:~# synopartition --part /dev/nvme1n1 12

:~# fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 970 EVO Plus 500GB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: … Continue reading

TimeZone in Grafana mit InfluxDB Backend

Grundsätzlich kann man bei Grafana die Zeitzone in dem jeweiligen Dashboard einstellen. Das ändert aber nur den Zeitsrahl in der dargestellten Grafik passend zu der aktuellen/tatsächlich erwünschten Zeit Zone.

Arbeitet man jedoch mit “GROUP BY” “time()” Funktion der InfluxDB-Query und nimmt zum beispiel “1d” (1Tag), dann werden diese zwischen jeweils … Continue reading

NetApp NDMP

vFiler@Filer> useradmin user add ndmp -g "Backup Operators"
New password:
Retype new password:
User added.
vFiler@Filer> ndmpd password ndmp
password ndmppassword
vFiler@Filer> options ndmpd.authtype plaintext,challenge
vFiler@Filer>

ndmpcopy -d -sa ndmp:ndmppassword -st md5 -da ndmp:ndmppassword -dt md5 /vol/Volume/qtree/folder/Subfolder_A /vol/Volume/qtree/folder/Subfolder_B

ndmpcopy -d -sa ndmp:ndmppassword -st … Continue reading

Telegram Bots und Synology

https://localhost/telegram.php?user=1&pass=1&phone=010&body=Hello World&bot_token=TOKEN_API_STRING&chat_id=CHAT_OR_USER_ID

Die Chat ID beginnt mit einem minus zeichen userID’s sind ohne

Die User bzw Chat ID findet man dann wie folgt raus:

https://api.telegram.org/botTOKEN_API_STRING/getUpdates

telegram.php mit folgendem Inhalt auffüllen:

 

<?php
header("Content-Type: text/html; charset=utf-8");

define('BOT_TOKEN', $_GET["bot_token"]);
define('API_URL', 'https://api.telegram.org/bot'.BOT_TOKEN.'/');

// grab the chatID
$chatID = $_GET["chat_id"];

// … Continue reading

CentOS Proxy

System-wide proxy settings – add the following lines to your /etc/environment file:

# vi /etc/environment

http_proxy="http://proxysrv:8080/"
https_proxy="https://proxysrv:8080/"
ftp_proxy="ftp://proxysrv:8080/"
no_proxy=".mylan.local,.domain1.com,host1,host2"

To apply these settings without restarting the machine run the following commands on the bash shell:

export http_proxy="http://proxysrv:8080/"
export https_proxy="https://proxysrv:8080/"
export ftp_proxy="ftp://proxysrv:8080/"
export no_proxy=".mylan.local,.domain1.com,host1,host2"

You … Continue reading