GIT – FAQ

Git: Delete a branch (local or remote) To delete a local branch git branch -d the_local_branch To remove a remote branch (if you know what you are doing!) git push origin –delete the_remote_branch Sync git fetch -p The git manual says -p, –prune After fetching, remove any remote-tracking branches which no longer exist on the […]

Читать дальше… from GIT – FAQ

Setup soft raid 0 on live ubuntu 16.0.4/ debian -8/9 system without downtime

In this tutorial I am using debian 9 system with two disks, /dev/vda and /dev/vdb which are identical in size. /dev/vdb is currently unused, and /dev/vda has the following partition: See info fdisk -l /dev/vda1: / partition, ext4; /dev/vda2: swap After completing this guide I will have the following situation: /dev/md0: / partition, ext4; /dev/md1: […]

Читать дальше… from Setup soft raid 0 on live ubuntu 16.0.4/ debian -8/9 system without downtime

Ansible – FAQ

Ansible – FAQ Запуск playbook с хостом как аргументом Play Book файл – hosts: ‘{{ host }}’ tasks: – debug: msg=”Host is {{ ansible_fqdn }}” inventory.hosts файл [web] itc-life-god1 ansible_ssh_host=10.10.10.1 ansible_ssh_user=god [droplets] itc-life-god2 ansible_ssh_host=10.10.10.2 ansible_ssh_user=god Запуск playbook ansible-playbook deplyment.yml -i inventory.hosts –extra-vars “host=itc-life-god2” […]

Читать дальше… from Ansible – FAQ

Setup and configure drbd on ubuntu 16.04

STEP 1 — prepare. On both hosts. See hostname’s on hosts uname -a and paste it to configs and hosts. Edit hosts nano /etc/hosts 192.168.88.9 itc-life 192.168.88.250 human-K73SM Setup drbb via apt apt-get install linux-image-extra-virtual depmod -a apt-get install -y ntp apt-get update apt-get install drbd8-utils pv -y Create vggroup and storage with lvm. pvcreate […]

Читать дальше… from Setup and configure drbd on ubuntu 16.04