DevTech101

DevTech101

solaris11.1

How to update solaris to new SRU and remove & add an idr in a zone

How to install a new IDR and back out an old IDR at the same time Going from SRU 12.0.5 with idr 793 to SRU 17.5 with idr1041 pkg -R /zones/myzone/root list |grep idr Now install the new IDR will specifying to back-out the old IDR at the same time pkg -R /zones/myzone/root install –accept …

How to update solaris to new SRU and remove & add an idr in a zone Read More »

How To Measure Network Latency With Ping And Dtrace in Solaris.

Measuring Network Latency In Solaris Use the below dtrace script (SuperPing.d) to measuring Network Latency. #!/usr/sbin/dtrace -s #pragma D option quiet #pragma D option switchrate=10hz mib:::rawipOutDatagrams /pid == $target/ { start = timestamp; } mib:::icmpInEchoReps /start/ { this->delta = (timestamp – start) / 1000; printf(“dtrace measured: %d us\n”, this->delta); @a[“\n ICMP packet delta average (us):”] …

How To Measure Network Latency With Ping And Dtrace in Solaris. Read More »

Solaris privlges

To find out what privileges are stopping you from running a command, you should run it under ppriv -eD command. For example: You can then use usermod -K … to assign the necessary privileges to a user. For example: $ usermod -K defaultpriv=basic,sys_resource,cpc_cpu username

Protecting Files From Getting Overwritten Mistakenly

Protecting Files From Overwriting Mistakenly To set protection on, run the below. set -o noclobber To make it permanent just add to your .bashrc echo ‘set -o noclobber’ >> ~/.bashrc An example how things will work after noclobber is set. $ echo test > testfile1 bash: testfile1: cannot overwrite existing file To forcibly overwrite the …

Protecting Files From Getting Overwritten Mistakenly Read More »

Backup tuning

Run onthe zone ipadm set-prop -p max_buf=16777216 tcp ipadm set-prop -p _cwnd_max=8388608 tcp ipadm set-prop -p send_buf=2097152 tcp ipadm set-prop -p recv_buf=2097152 tcp ipadm set-prop -p _conn_req_max_q=16384 tcp ipadm set-prop -p _conn_req_max_q0=16384 tcp Add to /etc/system on global zone set ip:ip_squeue_fanout=1 set ip:ip_soft_rings_cnt =32