This file contains 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/sbin/dtrace -s | |
#pragma D option quiet | |
dtrace:::BEGIN | |
{ | |
printf("lbolt rate is %d Hertz.\n", `hz); | |
printf("Tracing lbolts between ARC accesses..."); | |
} | |
fbt::arc_access:entry |
This file contains 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/ksh | |
# This is a temporary workaround for aggregates not starting on boot. | |
DLADM_CMD=/usr/sbin/dladm | |
IPADM_CMD=/usr/sbin/ipadm | |
SVCPROP_CMD=/usr/bin/svcprop | |
typeset fmri=/system/postinst/config | |
typeset admin_name=$(${SVCPROP_CMD} -p settings/def_admin_int ${fmri}) | |
typeset vnic_config=/etc/admin0.config |
This file contains 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/sbin/dtrace -s | |
fbt:zfs:restore_*:entry | |
{ | |
self->start = timestamp; | |
} | |
fbt:zfs:restore_*:return | |
{ | |
@runtime[probefunc] = quantize(timestamp - self->start); |
This file contains 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 python | |
__author__ = 'RackTop Systems' | |
import shlex | |
import subprocess | |
from subprocess import PIPE | |
from string import digits | |
import datetime | |
import time | |
import signal |
This file contains 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
<?xml version='1.0'?> | |
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> | |
<service_bundle type='manifest' name='BrickstorOS-High-Availability:bsros-ha'> | |
<service name='racktop/system/cluster' type='service' version='0'> | |
<dependency | |
name='network' | |
grouping='require_any' | |
restart_on='error' | |
type='service'> | |
<service_fmri value='svc:/milestone/network'/> |
This file contains 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
## Observe durations of SPA sync events. | |
dtrace -n '::txg_sync_thread:txg-syncing { x[1234] = timestamp } ::txg_sync_thread:txg-synced /x[1234] != 0/ { this->delta = (timestamp - x[1234]) / 1000; @[this->delta > 65536 ] = quantize(this->delta); x[1234] = 0; } :END { trunc(@, 10); }' |
This file contains 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/sh | |
# | |
# $Id: rsf.sh,v 2.138 2014/04/01 14:49:21 build Exp $ | |
# | |
# Script: rsf.sh | |
# | |
# Description: Generic supporting vars and functions for RSF-1 scripts | |
# | |
# Platform: Unix | |
# |
This file contains 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/sh | |
# $Id: rsfexec,v 1.104 2014/02/26 16:09:03 matt Exp $ | |
# | |
# Script: rsfexec | |
# | |
# Description: Overall handler for service scripts | |
# | |
# Platform: Unix | |
# | |
# Author: High-Availability.Com Ltd |
This file contains 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/sh | |
# $Id: rsfrc,v 2.106 2014/04/16 10:40:12 pg Exp $ | |
# | |
# Script: rsfrc | |
# | |
# Description: RSF-1 startup/shutdown script | |
# Use the 'restart' option if services are already up | |
# Use the 'kill' option to stop RSF-1 but leave | |
# services running. WARNING: this option may cause an | |
# incorrect failover if the remote end is in automatic mode! |
OlderNewer