Advanced Search
Search Results
80 total results found
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...
DFS IIS [config + webroot]
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
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]
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]
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)
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
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
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
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
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
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...
Direct Routing IIS
Configure wan/lan interface to allow receive Change bond 101 to whatever you nic name is, use "netsh interface ipv4 show interfaces" to display names PS C:\Users\Administrator> netsh interface ipv4 set interface "bond0" weakhostreceive=enabled PS C:\User...
LAN Routing Remote Access Service (RAS)
Once done add routes on each hosts route ADD -p <destination_network> MASK <subnet_mask> <ras_ip>
GlusterFS + Heketi [Ubuntu 18.04]
Requirement to this guide : Having an empty / unused partition available for configuration on all bricks. Size does not really matter, but it needs to be the same on all nodes. Configuring your nodes Configuring your /etc/hosts file : ## on gluster00 : 127...
Improve PFsense PPPOE +1Gbps
To improve speeds from 500Mbps on PFsense, Change the following values: vi /boot/loader.conf.local net.isr.dispatch=deferrednet.isr.maxthreads="-1"net.isr.bindthreads="1" In System > Advanced > Miscellaneous Enable PowerD and AC Power to Maximum