- Kill all mysql process on whole cluster (check via
ps aux| grep mysql)
- Remove grastate.data and ib_logfiles
rm /var/lib/mysql/grastate.data
rm /var/lib/mysql/ib_logfile*
- Edit this row in
/etc/mysql/my.cnf
on `"wsrep_cluster_address="gcomm://""`` - Start MySql on this node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
DESTDIR="/rootfs" | |
error() { | |
echo "$*" 1>&2 | |
exit 1 | |
} | |
copy() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo DEBIAN_FRONTEND=noninteractive apt install -yq \ | |
software-properties-common \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
wget \ | |
gnupg-agent \ | |
nmap \ | |
software-properties-common \ | |
git \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get list of user from mysql | |
select user from mysql.user; | |
CREATE USER nova WITH PASSWORD 'cloudlab'; | |
CREATE USER cinder WITH PASSWORD 'cloudlab'; | |
CREATE USER glance WITH PASSWORD 'cloudlab'; | |
CREATE USER keystone WITH PASSWORD 'cloudlab'; | |
CREATE USER neutron WITH PASSWORD 'cloudlab'; | |
CREATE DATABASE cidner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# Use this script to test if a given TCP host/port are available | |
set -e | |
cmdname=$(basename "$0") | |
echoerr() { | |
if [ "$QUIET" -ne 1 ]; then | |
printf "%s\n" "$*" 1>&2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@sdp-vslogv-01:/var/lib/elasticsearch# curl -XGET http://10.25.12.101:9200/_cluster/health?pretty=true | |
{ | |
"cluster_name" : "elasticsearch", | |
"status" : "red", | |
"timed_out" : false, | |
"number_of_nodes" : 2, | |
"number_of_data_nodes" : 2, | |
"active_primary_shards" : 345, | |
"active_shards" : 415, | |
"relocating_shards" : 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rbd list -k /etc/ceph/ceph.client.volumes.keyring --user volumes --pool volumes | |
ceph osd pool ls | |
ceph auth list | |
ceph health | |
ceph -s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aptly mirror list -raw | grep -E '*' | xargs -n 1 aptly mirror update | |
aptly_mirror_update.sh -s -v | |
aptly-publisher --architectures=amd64 --timeout=1200 publish -v -c /etc/aptly-publisher.yaml --url http://192.168.104.50:8084 --recreate | |
aptly-publisher --url http://192.168.104.50:8084 promote --source ubuntu-trusty/nightly --target ubuntu-trusty/testing --force-overwrite -d --timeout 600 --recreate | |
aptly-publisher --url http://192.168.104.50:8084 promote --source ubuntu-xenial/nightly --target ubuntu-xenial/testing --force-overwrite -d --timeout 600 --recreate | |
nohup aptly api serve --no-lock & | |
Add repo: |