Skip to content

Instantly share code, notes, and snippets.

View jjelinek's full-sized avatar

Jerry Jelinek jjelinek

  • RackTop Systems
View GitHub Profile
[root@smartos /opt/SUNWdtrt]# ./bin/dtfailures
# KIND TEST DETAILS
0 cpc tst.allcpus.ksh
1 ip tst.ipv4localicmp.ksh
2 ip tst.ipv4remoteicmp.ksh
3 ip tst.ipv6remoteicmp.ksh remote IPv6 host.
4 ip tst.localtcpstate.ksh
5 ip tst.remotetcpstate.ksh
6 java_api tst.Abort.ksh ... 6 more
7 java_api tst.Bean.ksh ... 6 more
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <strings.h>
#include <errno.h>
#include <unistd.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
Most of these files should not be reviewed since they come directly from Intel and we do not change them.
Here are the files I changed:
most important
exception_lists/cddlchk
exception_lists/copyright
exception_lists/cstyle
exception_lists/hdrchk
> ffffff0306eea438::print sonode_t
{
so_vnode = 0xffffff027cd7c500
so_ops = sotpi_sonodeops
so_priv = 0xffffff0306eea6c8
so_fallback_rwlock = {
_opaque = [ 0 ]
}
so_lock = {
_opaque = [ 0 ]
odule: unix instance: 0
name: com.sun:fm:error class: sysevents
crtime 0
emitted 1
fail_time 0
failed 0
snaptime 706032.747797345
module: unix instance: 0
name: com.sun:fm:protocol_snoop class: sysevents
[root@headnode (coal) /zones/jj]# kstat -c sysevents
module: unix instance: 0
name: com.sun:fm:error class: sysevents
crtime 0
emitted 1
fail_time 0
failed 0
snaptime 705968.224513130
module: unix instance: 0
MapR Installation Steps
=======================
1) Create an Ubuntu 14.04 zone with at least 8GB memory.
2) In GZ, create a zfs dataset 'zones/{zonename}/data' and delegate that
dataset to the zone.
3) In GZ, create at least one 10GB (or larger) zvol in the dataset
(e.g. run: zfs create -V 10g zones/{zonename}/data/vd0)
4) Reboot zone
5) ssh into the zone
I added the following two probes to lx_emulate_user()
--- a/usr/src/uts/intel/brand/lx/lx_archdep.c
+++ b/usr/src/uts/intel/brand/lx/lx_archdep.c
@@ -1438,6 +1438,8 @@ lx_emulate_user(klwp_t *lwp, int syscall_num, uintptr_t *a
*/
ucontext_t uc;
+DTRACE_PROBE5(lx__callstack, int, syscall_num, void *, lwpd, void *, sp,
+ void *, top, int, frsz);
@jjelinek
jjelinek / gist:850a7269cc13e774ca53
Created February 23, 2016 22:48
sys block layout
jerry@ub64:~$ ls -l /sys/block
total 0
lr-xr-xr-x 1 root root 0 Feb 23 22:47 cmdk0 -> ../devices/virtual/bdi/cmdk0
lr-xr-xr-x 1 root root 0 Feb 23 22:47 lxzdev -> ../devices/pci/lxzdev
lr-xr-xr-x 1 root root 0 Feb 23 22:47 ramdisk1 -> ../devices/virtual/bdi/ramdisk1
lr-xr-xr-x 1 root root 0 Feb 23 22:47 sd0 -> ../devices/virtual/bdi/sd0
lr-xr-xr-x 1 root root 0 Feb 23 22:47 zones -> ../devices/virtual/bdi/zones
lr-xr-xr-x 1 root root 0 Feb 23 22:47 zv2 -> ../devices/pci/zv2
jerry@ub64:~$
jerry@ub64:~$ ls -lL /sys/block/sd0
@jjelinek
jjelinek / lx.5
Created February 8, 2016 13:37
lx man page
LX(5) Standards, Environments, and Macros LX(5)
NAME
lx – zone brand for running a GNU/Linux user-level environment
DESCRIPTION
The lx brand uses the brands(5) framework to provide an environment for
running binary applications built for GNU/Linux. User-level code,
including an entire Linux distribution, can run inside the zone. Both
32-bit and 64-bit applications are supported. The majority of Linux