curl -X PUT http://0.0.0.0:8200/v1/sys/init --data '{"secret_shares":1, "secret_threshold":1}'
curl -X PUT http://0.0.0.0:8200/v1/sys/unseal --data '{"key":"a5e665962f544dd16471c120c5500a7906cfbaeb3f18ae0fc6c5c71d444f0a90"}'
| import 14gb file mysql | |
| ` | |
| mysql -u root -p | |
| set global net_buffer_length=1000000; --Set network buffer length to a large byte number | |
| set global max_allowed_packet=1000000000; --Set maximum allowed packet size to a large byte number |
| qm create 9007 --memory 2048 --net0 virtio,bridge=vmbr0 | |
| # import the downloaded disk to local-lvm storage | |
| qm importdisk 9007 CentOS-7-x86_64-GenericCloud-2111.qcow2 cru-zfs | |
| # finally attach the new disk to the VM as scsi drive | |
| qm set 9007 --scsihw virtio-scsi-pci --scsi0 cru-zfs:vm-9007-disk-0 | |
curl -X PUT http://0.0.0.0:8200/v1/sys/init --data '{"secret_shares":1, "secret_threshold":1}'
curl -X PUT http://0.0.0.0:8200/v1/sys/unseal --data '{"key":"a5e665962f544dd16471c120c5500a7906cfbaeb3f18ae0fc6c5c71d444f0a90"}'
| root@zeus-H370M:~# zpool list | |
| NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT | |
| one 3.62T 1.20T 2.42T - - 0% 33% 1.00x ONLINE - | |
| root@zeus-H370M:~# df -h | grep one | |
| one 2.4T 128K 2.4T 1% /mount/vol/one | |
| cd /mount/vol/one |
| https://cp.bulletservers.net/ | |
| https://bulletservers.net/ | |
| Add these sites to uptime. | |
| we want to monitor uptime and if they go down we must act quickly to bring back these up. | |
| https://statsup.xyz | |
| https://app.statsup.xyz | |
| https://postpi.xyz | |
| https://app.postpi.xyz |
| #!/usr/bin/env bash | |
| function cleanup() { | |
| echo "Cleaning up..." | |
| sudo rm -f /etc/sudoers.d/ubuntu_nopasswd | |
| } | |
| function install_brew() { | |
| $(which sudo) apt-get update | |
| $(which sudo) apt-get install -y sudo curl git |
| ============================================================================================================ | |
| ============================================================================================================ | |
| # download the image | |
| wget https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img | |
| # create a new VM with VirtIO SCSI controller | |
| qm create 9000 --memory 2048 --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-pci | |
| # import the downloaded disk to the local-lvm storage, attaching it as a SCSI drive | |
| qm set 9000 --scsi0 local-lvm:0,import-from=/path/to/bionic-server-cloudimg-amd64.img |