DevTech101

DevTech101

os

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

Solaris 11, Korn Shell 93 COMPATIBILITY

In Oracle Solaris 11, Korn Shell 93 (/usr/bin/ksh/ or usr/bin/ksh93) replaces both the Bourne Shell (/usr/bin/sh or /sbin/sh) and Korn Shell 88 (/usr/bin/ksh). There are some incompatibilities between the shells. They are described in: /usr/share/doc/ksh/COMPATIBILITY If a script has compatibility problems you can use the legacy shell by changing the she-bang line: If this doesn't …

Solaris 11, Korn Shell 93 COMPATIBILITY Read More »

Allow 32bit applications on 64bit RedHat/OEL

If you don't install 32bit OS librrey's you might get errors like this. perl  perl: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped To fix this issue you will need to install at miniumem the system 32bit libryrys yum install glibc.i686

solaris 11.1 ipmp configuration

dladm create-part -l net4 -P FFFF backup1 dladm create-part -l net8 -P FFFF backup2 ipadm create-ip backup1 ipadm create-ip backup2 ipadm create-addr -T static -a 192.168.12.101/23 backup1/v4 ipadm create-addr -T static -a 192.168.12.102/23 backup2/v4 ipadm create-addr -T static -a 192.168.12.103/23 backup0/v4 ipadm create-ipmp backup0 ipadm add-ipmp -i backup1 -i backup2 backup0 http://exablurb.blogspot.com/2013/05/10gbe-connections-with-exalogic-running.html ipadm remove-ipmp -i …

solaris 11.1 ipmp configuration Read More »

How to add a p5p pkg to a Solaris 11 repo

First you add the IDR/p5p file to the repo Note: To see how-to create a Solaris pkg click here pkgrecv -d /var/mnt/virtlibs/1362593673064/1495c928-9096-4e11-9958-25856df9b57f/data -s /tmp/idr793.1.p5p “*” Processing packages for publisher solaris … Retrieving and evaluating 2 package(s)… PROCESS ITEMS GET (MB) SEND (MB) Completed 2/2 48.1/48.1 103.9/103.9 Then you refresh the repo pkgrepo refresh -s /var/mnt/virtlibs/1362593673064/1495c928-9096-4e11-9958-25856df9b57f/data …

How to add a p5p pkg to a Solaris 11 repo Read More »

How To Install an IDR Pkg Using a p5p in Solaris 11

Installing / applying an IDR Pkg(patch) Using a .p5p in Solaris 11.x First we need to get the list of packages included in the p5p pkg list -g file:////var/tmp/idr793.1.p5p NAME (PUBLISHER)                                  VERSION                    IFO idr793                                            1                          — Then install the patch / package pkg install -g file:////var/tmp/idr793.1.p5p idr793 If the above steps is not working, then …

How To Install an IDR Pkg Using a p5p in Solaris 11 Read More »