This file contains hidden or 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
| --- | |
| - name: expand the root filesystem | |
| lvol: | |
| lv: ubuntu-lv | |
| vg: ubuntu-vg | |
| size: 80%VG | |
| resizefs: true | |
| ... |
This file contains hidden or 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
| root@ubuntu-00:~# lvdisplay | |
| --- Logical volume --- | |
| LV Path /dev/ubuntu-vg/ubuntu-lv | |
| LV Name ubuntu-lv | |
| VG Name ubuntu-vg | |
| LV UUID mb4yCN-v2A3-MJ0K-ri6z-ClR8-Gtb3-2950UI | |
| LV Write Access read/write | |
| LV Creation host, time ubuntu-server, 2020-05-16 18:59:24 +0000 | |
| LV Status available | |
| # open 1 |
This file contains hidden or 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
| { | |
| "data-root": "/data/docker-data", | |
| "log-driver": "json-file", | |
| "log-opts": { | |
| "max-size": "40m", | |
| "max-file": "100", | |
| "compress": "true" | |
| }, | |
| "bip": "192.168.127.5/24", | |
| "default-address-pools":[ |
This file contains hidden or 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
| global_defs { | |
| enable_script_security | |
| } | |
| vrrp_script check_script { | |
| script "/usr/bin/systemctl is-active {{ .ServiceName }}.service" | |
| weight 10 | |
| interval 3 | |
| fall 1 | |
| rise 3 |
This file contains hidden or 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
| [root@vs-1:~] esxcli network nic list | |
| Name PCI Device Driver Admin Status Link Status Speed Duplex MAC Address MTU Description | |
| ------ ------------ ------ ------------ ----------- ----- ------ ----------------- ---- ------------------------------------------------ | |
| vmnic0 0000:00:1f.6 ne1000 Up Up 1000 Full 94:c6:91:a5:40:79 1500 Intel Corporation Ethernet Connection (6) I219-V | |
| vusb0 Pseudo uether Up Up 1000 Full 00:50:b6:1b:f2:79 1500 ASIX Elec. Corp. AX88179 | |
| vusb1 Pseudo uether Up Up 1000 Full 00:50:b6:ea:b8:42 1500 ASIX Elec. Corp. AX88179 | |
| vusb2 Pseudo uether Up Up 1000 Full 00:50:b6:1e:dc:72 1500 ASIX Elec. Corp. AX88179 | |
| [root@vs-1:~] esxcli network nic list | grep vusb | awk '{print $1"_mac="$8}' | |
| vusb0_mac=00:50:b6:1b:f2:79 |
This file contains hidden or 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
| # | |
| # Description: Wait for 3 vusb interfaces to intialize and then refresh the ESXi host network settings. | |
| # Original reference: https://flings.vmware.com/usb-network-native-driver-for-esxi#instructions | |
| # | |
| # Get status of 3 vusb interfaces to be "Up Up Up", see the use of 3 in head -n3 and xargs -n3. | |
| vusb_status=$(esxcli network nic list | grep vusb | awk '{print $5}' | sort | head -n3 | xargs -n3) | |
| # Loop until all 3 vusb interfaces are Up | |
| # Waits a maximum of 20 * 10 seconds before falling through. |
This file contains hidden or 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
| root@batfs0557:~# cat super_cache_scan.bt | |
| #!/bin/env /usr/bin/bpftrace | |
| #include <linux/types.h> | |
| #include <asm-generic/atomic-long.h> | |
| #include <linux/shrinker.h> | |
| kprobe:super_cache_scan { | |
| $sc = (struct shrink_control *) arg1; | |
| @nr_to_scan[$sc->nid, comm, probe] = hist($sc->nr_to_scan); | |
| } |
This file contains hidden or 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
| time read miss miss% dmis dm% pmis pm% mmis mm% arcsz c | |
| 08:45:22 13 0 0 0 0 0 0 0 0 64G 64G | |
| 08:45:23 1.8K 3 0 1 0 2 66 3 0 64G 64G | |
| 08:45:24 469K 2.0K 0 629 0 1.4K 11 2.0K 0 64G 64G | |
| 08:45:25 777K 3.9K 0 1.4K 0 2.5K 15 3.9K 0 64G 64G | |
| 08:45:26 819K 3.6K 0 1.4K 0 2.2K 15 3.6K 0 64G 64G | |
| 08:45:27 235K 1.2K 0 441 0 760 17 1.2K 0 64G 64G | |
| 08:45:28 253K 1.3K 0 529 0 736 24 1.3K 0 64G 64G | |
| 08:45:29 510K 2.6K 0 897 0 1.7K 17 2.6K 0 64G 64G | |
| 08:45:30 37K 118 0 59 0 59 25 118 0 64G 64G |
This file contains hidden or 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
| Every 1.0s: cat /proc/spl/kstat/zfs/arcstats | grep evictable | grep -E '^mru|^mfu' batfs0557: Mon Jul 26 10:57:53 2021 | |
| mru_evictable_data 4 0 | |
| mru_evictable_metadata 4 4096 | |
| mru_ghost_evictable_data 4 0 | |
| mru_ghost_evictable_metadata 4 0 | |
| mfu_evictable_data 4 0 | |
| mfu_evictable_metadata 4 0 | |
| mfu_ghost_evictable_data 4 0 | |
| mfu_ghost_evictable_metadata 4 0 |
This file contains hidden or 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
| package task | |
| import ( | |
| "context" | |
| "encoding/json" | |
| "fmt" | |
| "github.com/gorilla/mux" | |
| "log" | |
| "net/http" | |
| "os/exec" |