DevTech101

DevTech101

os

How to mount a cdrom or disk in linux (thrue ilom)

First get the device name dmesg | egrep -i –color 'cdrom|dvd|cd/rw|writer' Create mountpoint if not exsists mkdir /media/cdrom mkdir /media/disk Syntax to mount DVD / CDROM in Linux mount -t iso9660 -o ro /dev/deviceName /path/to/mount/point For Example mount -t iso9660 -o ro /dev/sr0 /cdrom Syntax to mount disk in Linux mount /dev/deviceName /path/to/mount/point

How To Turn Off rx/tx Chksums in Xsigo / Linux Driver

Modifying rx/tx Chksums in Linux Driver Using the Xsigo Driver To modify chksum offload to off on Linux To turn off on the fly – but wont stay after a reboot Firs, remove the module by running run rmmod xve Next, add back the module by running modprobe xve xs_seq_file=1 xve_no_tx_checksum_offload=1 modinfo xve For permanent …

How To Turn Off rx/tx Chksums in Xsigo / Linux Driver Read More »

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 »

Performance Tuning For Solaris Zones

Contents 1 Solaris global and non zones performance tuning 1.1 Configuring the global zone to use FSS 1.1.1 First enable & set FSS in the global zone 1.1.2 Next configure a global zone CPU/Memory Cap 1.1.2.1 Example after the configuration change 1.2 Configure /tmp(tmpfs) system cap 1.3 reboot the system for changes to take effect …

Performance Tuning For Solaris Zones 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

Modifying Solaris Zone Properties With a Loop.

Modifying Solaris Zone Properties With a Loop. To modify many Solaris Zone Properties, you can run a loop something like the below. Example 1 for i in `zoneadm list -cv |grep wapp1|awk ‘{print $2}’`;do ipaddr=`zonecfg -z $i info anet |grep “allowed-address: 10″|awk ‘{print $2}’|sed ‘s,10.20.19,10.20.41,’`; zonecfg -z $i “add anet;set lower-link=webpriv0;set allowed-address=$ipaddr;end;commit” ;done Example 2 …

Modifying Solaris Zone Properties With a Loop. Read More »