Skip to content

Instantly share code, notes, and snippets.

View glennswest's full-sized avatar
🏠
Working from home

Glenn West glennswest

🏠
Working from home
View GitHub Profile
@glennswest
glennswest / disk1p.sfdisk
Created August 7, 2020 14:07
Delete mbr and all partitions except datastore.
label: gpt
label-id: AEC4D53B-ED9A-4DBB-B7B4-960B56D113A2
device: /dev/sda
unit: sectors
first-lba: 34
last-lba: 335544286
/dev/sda5 : start= 11587584, size= 323956703, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=C7E4D36D-3878-4A8C-952F-4079674ED253, name="datastore"
@glennswest
glennswest / grbl.nc
Created August 1, 2020 17:09
Sainsmart GRBL Settings
$0=10
$1=25
$2=0
$3=2
$4=0
$5=0
$6=0
$10=115
$11=0.010
$12=0.002
@glennswest
glennswest / disk4p.sfdisk
Created July 15, 2020 16:59
Disk with 4 paritions, and lots of extra space.
label: gpt
label-id: 00000000-0000-4000-A000-000000000001
device: /dev/sda
unit: sectors
first-lba: 34
last-lba: 1843199966
sector-size: 512
/dev/sda1 : start= 2048, size= 786432, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=C24C72AC-461D-4825-811A-B5B10FEA58BA, name="boot"
/dev/sda2 : start= 788480, size= 260096, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=F67502D4-4D76-4D8D-922E-BDD46A0AB10B, name="EFI-SYSTEM"
-- Logs begin at Fri 2020-01-17 15:42:43 UTC, end at Fri 2020-01-17 16:14:11 UTC. --
Jan 17 15:42:43 localhost kernel: Linux version 4.18.0-80.11.2.el8_0.x86_64 (mockbuild@x86-vm-07.build.eng.bos.redhat.com) (gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)) #1 SMP Sun Sep 15 11:24:21 UTC 2019
Jan 17 15:42:43 localhost kernel: Command line: BOOT_IMAGE=/ostree/rhcos-1f8a02066bf1850bb60e814e7ffa9c7066494bd88f097eae08b37781f980cefe/vmlinuz-4.18.0-80.11.2.el8_0.x86_64 console=tty0 console=ttyS0,115200n8 rootflags=defaults,prjquota rw ignition.firstboot rd.neednet=1 ip=dhcp root=UUID=477c3d77-20c6-4ff3-8bb3-dc2543eedfbd ostree=/ostree/boot.0/rhcos/1f8a02066bf1850bb60e814e7ffa9c7066494bd88f097eae08b37781f980cefe/0 coreos.oem.id=qemu coreos.oem.id=azure ignition.platform.id=azure
Jan 17 15:42:43 localhost kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Jan 17 15:42:43 localhost kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Jan 17 15:42:43 localhost kernel: x86/fpu
@glennswest
glennswest / journalctl.log
Created January 16, 2020 16:28
master1 log
This file has been truncated, but you can view the full file.
-- Logs begin at Thu 2020-01-16 15:25:51 UTC, end at Thu 2020-01-16 16:23:55 UTC. --
Jan 16 15:25:51 localhost kernel: Linux version 4.18.0-80.11.2.el8_0.x86_64 (mockbuild@x86-vm-07.build.eng.bos.redhat.com) (gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)) #1 SMP Sun Sep 15 11:24:21 UTC 2019
Jan 16 15:25:51 localhost kernel: Command line: BOOT_IMAGE=/ostree/rhcos-1f8a02066bf1850bb60e814e7ffa9c7066494bd88f097eae08b37781f980cefe/vmlinuz-4.18.0-80.11.2.el8_0.x86_64 console=tty0 console=ttyS0,115200n8 rootflags=defaults,prjquota rw ignition.firstboot rd.neednet=1 ip=dhcp root=UUID=477c3d77-20c6-4ff3-8bb3-dc2543eedfbd ostree=/ostree/boot.0/rhcos/1f8a02066bf1850bb60e814e7ffa9c7066494bd88f097eae08b37781f980cefe/0 coreos.oem.id=qemu coreos.oem.id=azure ignition.platform.id=azure
Jan 16 15:25:51 localhost kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Jan 16 15:25:51 localhost kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Jan 16 15:25:51 localhost kernel: x86/fpu
We couldn’t find that file to show.
@glennswest
glennswest / run.sh
Created August 28, 2019 13:04
Example esxi deployment
rm -r -f tiny
mkdir tiny
cp install-config.yaml tiny
openshift-install create ignition-configs --dir=tiny
rm -f ~/worker.ign
cp ~/k.lo/tiny/worker.ign ~
rm ~/.kube/config
cp /root/k.lo/tiny/auth/kubeconfig ~/.kube/config
rm -r -f /data/svcrhcos.${SVCDOMAIN}/tiny
cp -r tiny /data/svcrhcos.${SVCDOMAIN}
C:\bin\ovnkube.exe --init-node $env:COMPUTERNAME.ToLower() `
-k8s-kubeconfig="C:\Users\Administrator\.kube\config" `
--config-file "C:\cni\ovn_k8s.conf" `
-cluster-subnet 10.128.0.0/14 `
-cni-conf-dir="C:\cni" `
-service-cluster-ip-range 172.30.0.0/16
c:\bin\kubelet.exe --hostname-override="$Env:lhost" --v=6 `
--resolv-conf="" `
--log-dir /k/logs `
--enable-debugging-handlers `
--cluster-domain=cluster.local `
--hairpin-mode=promiscuous-bridge `
--image-pull-progress-deadline=20m `
--cgroups-per-qos=false `
--enforce-node-allocatable="" `
--pod-infra-container-image=mcr.microsoft.com/k8s/core/pause:1.2.0 `
@glennswest
glennswest / kubelet.log
Created August 26, 2019 15:16
Non Working Network
This file has been truncated, but you can view the full file.
I0826 14:03:07.186974 4320 kubelet_pods.go:1334] Generating status for "community-operators-77d99c4dff-gkqzp_openshift-marketplace(b565f105-c808-11e9-9a56-0050561f2626)"
W0826 14:03:07.187974 4320 pod_container_deletor.go:75] Container "8fed78fbeaeda42760d0861931eac8d63f12f3bfc159c47690432e39bab7fe54" not found in pod's containers
I0826 14:03:08.191921 4320 kubelet_pods.go:1334] Generating status for "community-operators-77d99c4dff-gkqzp_openshift-marketplace(b565f105-c808-11e9-9a56-0050561f2626)"
I0826 14:03:08.192931 4320 status_manager.go:364] Ignoring same status for pod "community-operators-77d99c4dff-gkqzp_openshift-marketplace(b565f105-c808-11e9-9a56-0050561f2626)", status: {Phase:Pending Conditions:[{Type:Initialized Status:True LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2019-08-26 13:52:14 -0700 PDT Reason: Message:} {Type:Ready Status:False LastProbeTime:0001-01-01 00:00:00 +0000 UTC LastTransitionTime:2019-08-26 13:52:14 -0700 PDT Reason:ContainersNotReady Message:co