Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

97 total results found

Chef notes

Linux

run cookbook locallychef-client --local-mode recipes/default.rb genrate cookbook chef generate cookbook cookbooks/apache add a node in chef knife bootstrap 192.168.2.153 -N node-chef.myhypervisor.ca --ssh-user root show node details knife node show -l node-...

Kubernetes the hard way

Linux

node notes kube-1 192.168.1.8 192.168.2.151kube-2 192.168.1.10 192.168.2.162kube-3 192.168.1.6 192.168.2.157kube-4 192.168.1.7 192.168.2.154kube-lb 192.168.1.13 192.168.2.170 Controller components kube-apiserver: Serves the Kubernetes API. This allows user...

Kubernetes install with kubeadm

Linux

Network Example 10.10.11.20 kubemaster kubemaster.myhypervisor.ca 10.10.11.30 kube1 kube1.myhypervisor.ca 10.10.11.36 kube2 kube2.myhypervisor.ca Disable SELinux. setenforce 0 sed -i --follow-symlinks 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconf...

Keepalived LoadBalacing

Linux Cluster

LVS Config ## Pool ID virtual_server <WAN "frontend" IP> 80 { delay_loop 6 lb_algo sh # source hash lb_kind NAT protocol TCP real_server <LAN "backend" IP Server 1> 80 { weight 1...

Kubernetes cluster Administration notes

Linux

Kubectl Show yaml kubectl get deployments/bookstack -o yaml Scale kubectl scale deployment/name --replicas=2 Show all resources for i in $(kubectl api-resources --verbs=list --namespaced -o name | grep -v "events.events.k8s.io" | grep -v "events" | sort ...

Docker Swarm (WIP)

Linux

On master docker swarm init Copy/Paste docker swarm join on all other nodes docker swarm join --token TOKEN IP_ADDRESS:2377 Create a swarm service docker service create --name weather-app --publish published=80,target=3000 --replicas=3 weather-app List D...

DRBD + Pacemaker & Corosync NFS Cluster Centos7

Linux Cluster

On Both Nodes Host file vim /etc/hosts 10.1.2.114 nfs1 nfs1.localdomain.com10.1.2.115 nfs2 nfs2.localdomain.com Corosync will not work if you add something like this: 127.0.0.1 nfs1 nfs2.localdomain.com - however you do not need to delete 127.0.0.1 loc...

Recover GitLab from filesystem backup

Linux

Install new instance/node before proceeding  Install gitlab on server and move postgres DB as backup (Steps bellow for ubuntu) curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash apt-get install gitlab-ce git...

Ubuntu - Remove and Reinstall MySQL

Linux

Reason i am posting thing is because MySQL leaves to many file behind, this post can be helpful when you try to install mariadb but you ca not because of all the old MySQL files still on your Ubuntu system. apt-get remove --purge mysql* apt-get purge mysql* ...

Distributed memcached on 2 Webserver [CentOS7]

Linux Cluster

Install memcached yum install memcached libmemcached -y vi /etc/sysconfig/memcached Change options to listen to the private IP on both web's: OPTIONS="-l 10.1.1.X -U 0" Restart memcached systemctl restart memcached systemctl enable memcached Edit php i...

DFS IIS [config + webroot]

Windows

DFS Install DFS namespaces and replication on both servers: Server Manager>>Add roles and features 1) Create new Namespace In dfs management, right click on Namespaces and select New Namespace. Enter the name of your dfs1 server and click next, ent...

Create NFS Share on Xen8

Xen

Add Drive that will be used as NFS share in fstab vi /etc/fstab UUID="XXXXXX" /data01 xfs defaults 0 0 Mount it mount -a Add NFS share permissions in exports file vi /etc/exports /data01 10.10.10.0/24(rw,sync,no_root_squash) Edit portmap vi /e...

Test Drive Performance [Windows / Linux]

Other

Test Sequential Read/Write with DD Write dd if=/dev/zero of=./largefile bs=1M count=12288 Read dd if=./largefile of=/dev/null bs=4k Test IOPS with FIO [random] rw=randread size=4g directory=./iops iodepth=403 direct=1 blocksize=4k numjobs=16 nrfi...

Repair BSOD/Raw partition [WinServer]

Windows

Boots into the rescue: Step 1:  Check if you can mount the windows partition on a windows live cd If you are unable run: "chkdsk C: /f" If you see this error go to Step 2, if you do not, keep googling, this page is not for you.  Step 2: Boot in rescue an...

Create a Xen pool (cluster)

Xen

Connect on master xe pool-list --minimal Create pool with UUID xe pool-param-set name-label="pool.myhypervisor.ca" uuid=<UUID> Edit hostfile with all FQDN's on all nodes vim /etc/hosts masternode.myhypervisor.ca 10.X.X.11othernode.myhypervisor.ca...

Xen ISO folder

Xen

Find server UUID: xe host-list Create ISO folder mkdir -p /var/opt/xen/ISO Create SR for ISO xe sr-create name-label="Local ISO" type=iso host-uuid=<host-uuid> device-config:location=/var/opt/xen/ISO device-config:legacy_mode=true content-type=iso ...

Xen New VM

Xen

Find ISO SR UUID xe sr-list uuid ( RO) : XXXXXXXX-XXXXX-XXX-XXXX-XXXXXXXXname-label ( RW): data01host ( RO): <shared>type ( RO): nfscontent-type ( RO): user Find name of template xe template-list xe vm-install template="<template_name>" ne...

Lan Switch

Xen

Create a network for the new interface to be attached to, and returns the network-uuid xe network-create name-label="LAN-VM" Find vm uuid of the VM xe vm-list name-label=<vm's name-label> Create eth1 interface for the VM, and gets the uuid of the new...

Snapshots And Templates

Xen

Create new snapshot Find UUID xe vm-list Create snapshot xe vm-snapshot new-name-label="<name>" vm=<vm-uuid> Restore a snapshot xe snapshot-revert snapshot-uuid=<uuid> List snapshots xe snapshot-list Create a template from snapshot ...

TargetCLI CentOS 7

Linux

Install targetcli yum install targetcli -y systemctl enable target systemctl start target Configure targetlci Use the "cd' command (no args) inside target cli to browse through the paths The iqn names below are the ones from the nodes you will later co...