Advanced Search
Search Results
86 total results found
Powershell
Change vswitch from internal to external Set-VMSwitch -Name vSwitch -NetAdapterName bond0 If you have a duplicate Get-VMNetworkAdapter -VMName svtest | ? MacAddress -eq '000000000000' | Remove-VMNetworkAdapter Roles&Features Install List Get-Windows...
MS SQL Commands
Rename a domain user: ALTER LOGIN [OLD_DOMAIN\Administrator] WITH NAME = [NEW_DOMAIN\Administrator];
SQL Server 2016 Step by Step: Creating AlwaysOn Availability Group
Table of Contents Prerequisites: This environment: SQL Server Installation Failover Cluster Installation Windows Failover Clustering Configuration for Always On Availability Groups Configure Cluster Quorum Settings Listener Always On Avai...
OpenStack MySQL command
Force delete snapshot use cinder; update snapshots set status='deleted', deleted='1' where id ='<id>'; update snapshots set status='deleted', deleted='1' where id = '<id>';
Fedora Build ACS Override Patch Kernel
Add RPM Fusion sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm Install the dependencies to ...
S2D Force remove a drive
To verify that all drives are healthy and operational : Get-PhysicalDisk Get the FriendlyName of the device : Get-PhysicalDisk | ft FriendlyName Retire the disk : Set-PhysicalDisk -FriendlyName "<DeviceName>" -Usage Retired Find the name of the Vir...
Chef notes
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
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
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...
New Page
New Page
Keepalived LoadBalacing
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
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)
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
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
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
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]
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...