Skip to content

Instantly share code, notes, and snippets.

View stevenwilliamson's full-sized avatar

Steven Williamson stevenwilliamson

  • FreeAgent
  • Sheffield
View GitHub Profile
class mysql::params{
# we have to figure out:
# - server package name
# - client package name
# - service name
# - p5-DBD major_version to install
# - any additional packages that need to be installed
# All based on a combination of major mysql version, operating system, mysql variant,
# and pkgsrc release
if $::operatingsystem == 'SmartOS' {
[root@standard3-dev ~]# cat ssl.log
keyStore is :
keyStore type is : jks
keyStore provider is :
init keystore
init keymanager of type SunX509
trustStore is: /opt/local/java/openjdk7/jre/lib/security/cacerts
trustStore type is : jks
trustStore provider is :
init truststore
Kernel panic when a disk was pulled.
[root@phy3-sw1-ash (ash) /var/crash/volatile]# mdb -k unix.0 vmcore.0
Loading modules: [ unix genunix specfs dtrace mac cpu.generic uppc apix scsi_vhci ufs ip hook neti sockfs arp usba stmf_sbd stmf zfs sd lofs idm mpt_sas crypto random cpc logindmux ptm kvm sppp nsmb smbsrv nfs ]
> $C
ffffff01e863a710 mutex_owner_running+0xd()
ffffff01e863a750 spa_async_request+0x44(ffffff4447a3e9e0, 2)
ffffff01e863a790 vdev_disk_off_notify+0x77(ffffff43202e0b88, fffffffffbc997c0, ffffff431f509d40, 0)
# Find all folders (for example in /content/smartos-live/proto/usr/perl5/site_perl/5.12/Munin)
find -type d | while read l; do n=$(basename $l); echo "d usr/perl5/site_perl/5.12/Munin/${n} 0755 root bin"; done
# Find all files
find "${PWD}" -type f | while read l; do n=$l; echo "f ${n/\/content\/smartos-live\/proto\//} 0644 root bin"; done
+ /sbin/ifconfig net1 inet 10.16.100.251/24 up up
+ iface_configured=true
+ read ifparams
+ [[ -f /etc/addrconf.net1 ]]
+ [[ -z true ]]
+ read -r iface addrtype
+ IFS=:
+ first_ipv4_configured=''
+ iface_configured=''
+ [[ -f /etc/dhcp.net2 ]]
I have an image that fails to boot on the latest PI, but only when provisioned on the latest PI.
If I provision the same image on an older platform, (20150622T171240Z), and then reboot to the
latest PI the zone comes up fine.
The crux of the issue appears to be when provisioning on the new PI the SMF service
system/boot-archive is missing.
For refernce base64 14.2.0 and base64 13.2.0 provision fine. The issue is with a custom image.
Which is base64 14.2.0 essentially with puppet installed ready to go.
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
<service name='network/puppet' type='service' version='0'>
<create_default_instance enabled='true'/>
<single_instance/>
<dependency name='loopback' grouping='require_all' restart_on='error' type='service'>
<service_fmri value='svc:/network/loopback:default'/>
</dependency>
<dependency name='physical' grouping='require_all' restart_on='error' type='service'>
[root@test /var/svc/log]# cat system-manifest-import\:default.log
[ Nov 5 17:41:11 Enabled. ]
[ Nov 5 17:41:11 Executing start method ("/lib/svc/method/manifest-import"). ]
[ Nov 5 17:41:11 Timeout override by svc.startd. Using infinite timeout. ]
+ activity=false
+ EMI_SERVICE=svc:/system/early-manifest-import:default
+ PROFILE_DIR_SITE=/etc/svc/profile/site
+ X=''
+ ALT_REPOSITORY=''
+ ALT_MFST_DIR=''
# Enable LZ4 on the root delegated dataset, so incoming zfs send | recv
# operations inherit it.
zfs { $delegated_root: compression => 'lz4' }
zfs { $mysql_dataset:
atime => 'off', # disable atime (it probably is for the entire pool, but lets be sure!)
compression => 'lz4', # http://don.blogs.smugmug.com/2008/10/13/zfs-mysqlinnodb-compression-update/
primarycache => 'metadata', # ZFS ARC is just doubling the InnoDB buffer pool in memory, so leave it to do it's thing.
devices => 'off',
exec => 'off',
Job Configuration:
[global]
bs=4k
ioengine=solarisaio
iodepth=4
size=24g
runtime=60
fallocate=none
clocksource=clock_gettime
group_reporting=1