Skip to content

Instantly share code, notes, and snippets.

Artem Penner d-helios

Block or report user

Report or block d-helios

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@d-helios
d-helios / gist:f918c423b2572b5600edbe65f5ffea42
Created Mar 18, 2019
Terraform debug [BucketNotEmpty: The bucket you tried to delete is not empty]
View gist:f918c423b2572b5600edbe65f5ffea42
2019/03/18 13:23:29 [INFO] Terraform version: 0.12.0 beta1
2019/03/18 13:23:29 [INFO] Go runtime version: go1.11.5
2019/03/18 13:23:29 [INFO] CLI args: []string{"/usr/local/bin/terraform-12", "destroy", "-force"}
2019/03/18 13:23:29 [DEBUG] Attempting to open CLI config file: /Users/dhelios/.terraformrc
2019/03/18 13:23:29 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/03/18 13:23:29 [INFO] CLI command args: []string{"destroy", "-force"}
2019/03/18 13:23:29 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/03/18 13:23:29 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/03/18 13:23:29 [DEBUG] New state was assigned lineage "45ffafda-8a59-cce6-f3cd-492edc7b9e90"
View slab_caches.md

General Caches

  • kmem_cache: internal cache of cache description objects
  • size-N: Generic cache of size N
  • size-N(DMA): Generic cache of size N for direct memory access use

Networking

  • flow_cache: Generic flow cache
  • RPC
    • rpc_buffers: RPC requests, data buffers
    • rpc_tasks: RPC requests, task structures
View nfs_mount_options_s1.md

Recommended mount options for high performance data transfer e.g. databases, mediation devices, file servers.

  • NFS mount options for ORACLE
  • NFS mount options for PostgreSQL
  • NFS mount options for Mediation Devices, HP IUM, Oracle Golden Gate
OS Options
Solaris rw,bg,hard,nointr,rsize=1048576,wsize=1048576,proto=tcp,noac,forcedirectio,vers=3,suid
HP-UX rw,bg,vers=3,proto=tcp,noac,forcedirectio,hard,nointr,timeo=600,rsize=1048576,wsize=1048576,suid
Linux rw,bg,hard,nointr,rsize=1048576,wsize=1048576,tcp,actimeo=0,vers=3,timeo=600
View test1_nfs_localnet
zns1-n2@root:~ # /opt/csw/bin/fio --runtime=120 --name=test1 --directory=/mnt/a/ --rw=write --size=40g --bs=16k --nrfiles=4 --ioengine=solarisaio --iodepth=4 --numjobs=4
test1: (g=0): rw=write, bs=16K-16K/16K-16K/16K-16K, ioengine=solarisaio, iodepth=4
...
test1: (g=0): rw=write, bs=16K-16K/16K-16K/16K-16K, ioengine=solarisaio, iodepth=4
fio-2.0.14
Starting 4 processes
test1: Laying out IO file(s) (4 file(s) / 40960MB)
test1: Laying out IO file(s) (4 file(s) / 40960MB)
test1: Laying out IO file(s) (4 file(s) / 40960MB)
test1: Laying out IO file(s) (4 file(s) / 40960MB)
View test1
zns1-n2@root:~ # /opt/csw/bin/fio --runtime=120 --name=test1 --directory=/dpool1/fs1/ --rw=write --size=40g --bs=16k --nrfiles=4 --ioengine=solarisaio --iodepth=4 --numjobs=4
test1: (g=0): rw=write, bs=16K-16K/16K-16K/16K-16K, ioengine=solarisaio, iodepth=4
...
test1: (g=0): rw=write, bs=16K-16K/16K-16K/16K-16K, ioengine=solarisaio, iodepth=4
fio-2.0.14
Starting 4 processes
test1: Laying out IO file(s) (4 file(s) / 40960MB)
test1: Laying out IO file(s) (4 file(s) / 40960MB)
test1: Laying out IO file(s) (4 file(s) / 40960MB)
test1: Laying out IO file(s) (4 file(s) / 40960MB)
View zfs_params
root@zns1-n2.net.billing.ru:/root# echo ::zfs_params|mdb -k
arc_reduce_dnlc_percent = 0x3
arc_lotsfree_percent = 0xa
zfs_dirty_data_max = 0x300000000
zfs_dirty_data_sync = 0x100000000
zfs_delay_max_ns = 0x5f5e100
zfs_delay_min_dirty_percent = 0x3c
zfs_delay_scale = 0x7a120
zfs_vdev_max_active = 0xfa0
zfs_vdev_sync_read_min_active = 0xa
View zpool_ashift
MOS Configuration:
version: 5000
name: 'dpool1'
state: 0
txg: 188337
pool_guid: 1317478406107011791
hostid: 486061178
hostname: 'zns1-n2.net.billing.ru'
hole_array[0]: 12
vdev_children: 13
View zpool_get_all
zns1-n2@root:~ # zpool get all
NAME PROPERTY VALUE SOURCE
dpool1 size 146T -
dpool1 capacity 11% -
dpool1 altroot - default
dpool1 health ONLINE -
dpool1 guid 1317478406107011791 default
dpool1 version - default
dpool1 bootfs - default
dpool1 delegation on default
View network
zns1-n2@root:~ # dladm show-aggr aggr3
LINK POLICY ADDRPOLICY LACPACTIVITY LACPTIMER FLAGS
aggr3 L3,L4 auto passive short -----
zns1-n2@root:~ # dladm show-aggr -x aggr3
LINK PORT SPEED DUPLEX STATE ADDRESS PORTSTATE
aggr3 -- 10000Mb full up 90:e2:ba:d0:7a:b0 --
ixgbe0 10000Mb full up 90:e2:ba:d0:7a:b0 attached
ixgbe2 10000Mb full up 90:e2:ba:d0:6d:b8 attached
zns1-n2@root:~ # dladm show-linkprop aggr3
View etc_system
zns1-n2@root:~ # cat /etc/system
set ibft_noprobe=1
set noexec_user_stack=1
set noexec_user_stack_log=1
set idle_cpu_no_deep_c=1
set idle_cpu_prefer_mwait = 0
set hires_tick=1
You can’t perform that action at this time.