Skip to content

Instantly share code, notes, and snippets.

View rejohnst's full-sized avatar

Rob Johnston rejohnst

  • Northern California
View GitHub Profile
@rejohnst
rejohnst / illumos-iommu-notes.txt
Last active November 10, 2019 17:02
illumos IOMMU notes
==========================
Illumos Intel IOMMU driver
==========================
Disabled by default on SmartOS/illumos:
from usr/src/uts/i86pc/io/rootnex.conf:
# To enable Intel IOMMU set this to "true" and rebuild boot archive
immu-enable="false";
@rejohnst
rejohnst / gist:85deef767e4b6f1123ce57c8a563d6bc
Created October 11, 2019 20:50
libtopo PCI slot labels
PCI/PCIe Labels
===============
di_physlotinfo_get()
physical-slot#
--------------
- from PCIe slotcap register
slot-names
----------
@rejohnst
rejohnst / manta-postgres.txt
Last active January 21, 2020 22:40
Postgres notes
==========================
Start up psql for moray
==========================
- zlogin to primary manatee
# psql -U postgres moray
==================================
psql: Print all tables in database
==================================
\dt
===================
Force Factory Reset
===================
# zfs set smartdc:factoryreset=yes zones/var
# reboot
===============================
Get Triton service IP addresses
===============================
# sdc-vmapi /vms?state=running | json -H -ga alias nics.0.ip nics.1.ip
@rejohnst
rejohnst / sastopo-notes.txt
Last active December 20, 2019 02:02
Libtopo and SAS topology
SAS Topology To Do
------------------
sas module
- make sure topo mod errno is getting set correctly in error paths
- Implement method to compute zfs-scheme FMRI for target nodes
- Add mechanism to clear phy counters?
- add prop to target node for drive capacity
- add prop to target node for drive temperature
- add prop to target node for interface type (SAS or SATA)
- fix remaining memory leaks
@rejohnst
rejohnst / rfd-156-test-notes.txt
Last active November 10, 2019 17:03
RFD 156 Tested Systems
RFD 156 Tested Systems
======================
SmartOS Boot
------------
Platform Legacy Boot UEFI Boot iPXE Boot Notes
-------- ----------- --------- --------- -----
Vmware Fusion 8 Y Y on MacOS X
Vmware Workstation 12 Y Y on Linux
@rejohnst
rejohnst / gist:b214cd21d10c5df0b07c654c9258bbdf
Created March 6, 2018 18:32
prtconf -v from 2U SMCI skylake rig
[root@sky1 ~]# prtconf
System Configuration: Supermicro i86pc
Memory size: 522923 Megabytes
System Peripherals (Software Nodes):
i86pc
scsi_vhci, instance #0
ramdisk, instance #0
pci, instance #0
pci15d9,981 (driver not attached)