/etc/systemd/system/xfs-write-cache.service
[Unit]
Description=Set XFS Write cache to write through
[Service]
Type=oneshot
User=root
Group=root
ExecStart=/usr/lib/systemd/system-sleep/xfs-write-cache
#!/usr/bin/env bash | |
set -euo pipefail | |
TMPGNUPGHOME=$(mktemp -d) | |
EMAIL="email@domain.tld" | |
PASSPHRASE="strong-passphrase" | |
FIRSTNAME="John" | |
LASTNAME="Doe" | |
KEYSIZE=2048 |
" All system-wide defaults are set in $VIMRUNTIME/debian.vim and sourced by | |
" the call to :runtime you can find below. If you wish to change any of those | |
" settings, you should do it in this file (/etc/vim/vimrc), since debian.vim | |
" will be overwritten everytime an upgrade of the vim packages is performed. | |
" It is recommended to make changes after sourcing debian.vim since it alters | |
" the value of the 'compatible' option. | |
runtime! debian.vim | |
" Vim will load $VIMRUNTIME/defaults.vim if the user does not have a vimrc. |
/etc/systemd/system/xfs-write-cache.service
[Unit]
Description=Set XFS Write cache to write through
[Service]
Type=oneshot
User=root
Group=root
ExecStart=/usr/lib/systemd/system-sleep/xfs-write-cache
CREATE ROLE "ro-user" WITH PASSWORD 'secret';
ALTER ROLE "ro-user" WITH LOGIN;
GRANT USAGE ON SCHEMA public TO "ro-user";
GRANT SELECT ON ALL TABLES IN SCHEMA public TO "ro-user";
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO "ro-user";
@_ip_serveur:/chemin/vers/partage /mnt/<nom_partage>/ nfs4 x-systemd.automount,x-systemd.idle-timeout=300,async 0 0
gluster volume set nextcloud-data performance.cache-size 1GB
gluster volume set nextcloud-data performance.client-io-threads on
gluster volume set nextcloud-data performance.io-cache on
gluster volume set nextcloud-data performance.io-thread-count 16
gluster volume set nextcloud-data performance.readdir-ahead enable
gluster volume set nextcloud-data performance.read-ahead disable
gluster volume set nextcloud-data features.cache-invalidation on
gluster volume set nextcloud-data features.cache-invalidation-timeout 600
gluster volume set nextcloud-data performance.stat-prefetch on
$ cat /proc/spl/kstat/zfs/arcstats |grep c_
c_min 4 536870912
c_max 4 2147483648
cat /etc/modprobe.d/zfs.conf
# https://www.google.com/search?q=bit+calculator Bit > GigaBit
# Min 512MB / Max 2048 MB Limit
echo | openssl s_client -showcerts -servername doamin.ltd -connect domain.ltd:443 2>/dev/null | openssl x509 -inform pem -noout -text