Skip to content

Instantly share code, notes, and snippets.

Saat melihat status ceph cluster terdapat HEALTH_WARN

root@pvehci-01:~# ceph -s
  cluster:
    id:     d6df14cd-3a30-4da7-8115-3660628ba44d
    health: HEALTH_WARN
            1 daemons have recently crashed

Ketik di address bar chrome://flags/

enable Force Dark Mode for Web Contents

cat ~/.s3cfg

[default]
access_key = <accesskey>
secret_key = <SecretKey>
host_bucket = %(bucket).localhost:8000
signature_v2 = False
use_https = False
host_base = 178.x.x.x:8000
sudo pacman -S ttf-freefont ttf-arphic-uming ttf-baekmuk
esxcli software vib install -v /vmfs/volumes/115-35_ds1/store-cli/vmware-storcli.vib --no-sig-check
cd /opt/lsi/
./storcli show
./storcli /cx show all | grep 'Model = \|Serial Number = '
./storcli show all
./storcli show all | grep Model
./storcli show
#!/bin/bash

############################################################################################################
# ----------------------------------------------------------------------
# ASN/IPv4/Prefix lookup tool. Uses Team Cymru's whois service for data.
# ----------------------------------------------------------------------
# example usage:
#  asn <ASnumber>      -- to lookup matching ASN data. Supports "as123" and "123" formats (case insensitive)
#  asn <IP.AD.DR.ESS>  -- to lookup matching route and ASN data
cat /usr/bin/asn2downstream
input=$(echo $1)
curl -s https://api.bgpview.io/asn/$input/downstreams | jq '.data .ipv4_downstreams'
cat /usr/bin/asn2upstream
input=$(echo $1)
curl -s https://api.bgpview.io/asn/$input/upstreams | jq '.data .ipv4_upstreams'
[www]
user = apache
group = apache

listen = 127.0.0.1:9000
listen.allowed_clients = 127.0.0.1

pm = static
pm.max_children = 254

Ceph – Create custom CRUSH rules

ceph osd crush rule create-replicated ssd-only default osd ssd
ceph osd crush rule create-replicated hdd-only default osd hdd

scp file2 vm dari vsphere ke proxmox

scp -r root@ip_vpshere:/vmfs/volumes/datastore1/ubuntu_18.04_template /root/vmdk

Buat VM kosongan, jangan lupa ID number-nya (misalkan 100), dilanjut convert file vm-flat.vmdk menjadi vm.qcow2

qemu-img convert /root/vmdk/ubuntu_18.04_template/ubuntu_18.04_template-flat.vmdk -O qcow2 /var/lib/vz/images/100/ubuntu_18.04_template-flat.qcow2