Someday this will be automated.
In the meantime, here is the sequence.
This almost runs non=interactively.
You will need the password for the amdpnso_release
account
#!/bin/bash
if [ $# -ne 1 ]; then
echo Usage: $0 release-ver
Someday this will be automated.
In the meantime, here is the sequence.
This almost runs non=interactively.
You will need the password for the amdpnso_release
account
#!/bin/bash
if [ $# -ne 1 ]; then
echo Usage: $0 release-ver
# 1: Remove systemd service (if any) | |
sudo systemctl stop portworx | |
sudo systemctl disable portworx | |
sudo rm -f /etc/systemd/system/portworx*.service | |
# NOTE: if the steps below fail, please reboot the node, and repeat the steps 2..5 | |
# 2: Unmount oci (if required) | |
grep -q '/opt/pwx/oci /opt/pwx/oci' /proc/self/mountinfo && sudo umount /opt/pwx/oci |
#!/bin/bash | |
# Here’s a handy BASH/ZSH -shell alias in case you are tired of typing “journalctl ..” to get the PX logs. | |
# By default it’ll display only current/running PX-OCI’s logs, | |
# but the other journalctl-parameters also work (e.g. jp -f for “follow log” or jp --since yesterday). | |
# | |
# Courtesy [email protected] | |
# | |
jp () { | |
local args=${@:-_PID=$(systemctl show --property MainPID portworx | cut -d= -f2)} | |
journalctl --unit portworx $args |
#!/usr/local/bin/python3.6 | |
""" | |
pxify-gke: | |
This program takes an existing GKE cluster and makes it "Portworx-ready" | |
by adding one additional non-root, non-mounted disk. | |
[Specifying a GKE local SSD disk results in having it automatically mounted] | |
Prereqs: |
#!/usr/bin/env python3.6 | |
# | |
# ready4px: Take a cluster that has been deployed through Tectonic, | |
# and make it ready to run/deploy Portworx | |
# | |
# Inputs: | |
# Environment: | |
# CLUSTER : Corresponds to CLUSTER from Tectonic | |
# AWS_SECRET_ACCESS_KEY, AWS_ACCESS_KEY_ID, AWS_REGION : Amazon credentials and region |
#!/bin/bash | |
# | |
# Use this script to deploy an entire stack on Kubernetes: | |
# - etcd cluster | |
# - px daemonset | |
# - influxdb on pvc | |
# - Lighthouse | |
# | |
# Assumes running instance of Kubernetes 1.6 or above | |
# |
scp Adventureworks.bak to the master
POD=mssql-1121156913-8sms4
kubectl cp /root/AdventureWorks2016CTP3.bak $POD:/root/AdventureWorks2016CTP3.bak
Deploys a complete "Portworx-ready" Kubernetes cluster in GCP. Configurable elements:
##### Portworx storage class | |
kind: StorageClass | |
apiVersion: storage.k8s.io/v1beta1 | |
metadata: | |
name: px-mssql-sc | |
provisioner: kubernetes.io/portworx-volume | |
parameters: | |
repl: "3" | |
snap_interval: "70" | |
io_priority: "high" |
Clone Forked Repo | |
git clone https://..../repo.git | |
cd repo | |
git remote add upstream https://github.com/Azure/acs-engine.git | |
git remote -v | |
git fetch upstream | |
git checkout master | |
git merge upstream/master | |
git push origin |