# linstor r c blbla --auto-place 4 --replicas-on-same opennebula-1=true -s thindata
ERROR:
Description:
Not enough available nodes
Details:
Not enough nodes fulfilling the following auto-place criteria:
* has a deployed storage pool named 'thindata'
* the storage pool 'thindata' has to have at least '104857600' free space
* the current access context has enough privileges to use the node and the storage pool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# onevm monitoring for zabbix script | |
case $1 in | |
a* ) echo $(onevm list -l STAT | tail -n +2 | wc -l) ;; | |
r* ) echo $(onevm list -l STAT | tail -n +2 | grep 'runn\|boot' | wc -l) ;; | |
su* ) echo $(onevm list -l STAT | tail -n +2 | grep 'susp\|save' | wc -l) ;; | |
st* ) echo $(onevm list -l STAT | tail -n +2 | grep -v 'runn\|susp\|save\|boot\|err\|fail' | wc -l) ;; | |
e* ) echo $(onevm list -l STAT | tail -n +2 | grep 'err\|fail' | wc -l) ;; | |
* ) echo Need argument!; exit 1 ;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: cluster.x-k8s.io/v1beta1 | |
kind: Cluster | |
metadata: | |
name: test | |
namespace: test | |
spec: | |
clusterNetwork: | |
pods: | |
cidrBlocks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
run(){ | |
name="$1" | |
shift | |
( | |
set -x | |
# defailt parameters | |
fio -name="$name" -filename=$disk -output-format=json -ioengine=libaio -direct=1 -randrepeat=0 "$@" > results/$disk_dashed-$name.json | |
) |
local read: IOPS=12308, BW=48.1MiB/s write: IOPS=4111, BW=16.0MiB/s
nfs3-ganesha read: IOPS=7039, BW=27.5MiB/s write: IOPS=2352, BW=9.2MiB/s
nfs3-kernel read: IOPS=6571, BW=25.7MiB/s
Расскажу как круто можно ужимать видео с гопрошки без потери качества.
Видео как правило жмется очень хорошо, мне удавалось сжимать ролики до 70% безо всяких на то проблем.
Для windows-пользователей приложу инструкцию, linux-пользователи и так разберутся, все скрипты приведены ниже.
- Скачиваешь ffmpeg отсюда: https://ffmpeg.zeranoe.com/builds/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make backup | |
kubectl get crds | grep -o ".*.internal.linstor.linbit.com" | xargs kubectl get crds -ojson > crds.json | |
kubectl get crds | grep -o ".*.internal.linstor.linbit.com" | xargs -i{} sh -xc "kubectl get {} -ojson > {}.json" | |
--- | |
# collect resources in weird states: | |
cat resources.internal.linstor.linbit.com.json | jq '.items[] | select(.spec.resource_flags>1024) | "\(.spec.resource_name) \(.spec.node_name) \(.spec.resource_flags)"' -r > list.txt | |
# reset them to 0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set timeout=3 | |
menuentry 'Linux diskless' --class os { | |
insmod efi_gop | |
insmod efi_uga | |
# set server from option 66 (tftp-server-name) if not exist, use next_server | |
if ! net_get_dhcp_option net_default_server ${net_default_interface} 66 string; then | |
echo ' using next_server option instead.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e -o pipefail | |
user=root | |
password=hackme | |
host=127.0.0.1 | |
port=3306 | |
dbs=$(mysql -u$user -p$password -h$host -P$port -e 'SHOW DATABASES;' | tail -n+2) |
NewerOlder