Sunday, 9 January 2011

GUDS is what Oracle can ask you

GUDS

When working with vendor on performance issue, this tool will be required.

Be careful don't run it during business hours, performance degradation will go.

Guds is a script to gather performance stats for Solaris.
Sample usage is
./guds_2.4.5
./guds_2.4.5 -qX -H3 -s65040465

-qX is for quite mode
-H3 is for running it for 3 hours
-sNNNNN is the sun case number (info embeded in dirs created by guds to
store the files).

It collects lots of info in /var/tmp/CASEID/guds-DATE-TIME/…

Thursday, 26 August 2010

SLAMD!

The very good performance testing engine:
SLAMD Distributed Load Generation Engine

Default and permited projects

If you want to assign default project to a user, then use
usermod -K project=projname username

If want to give permission(newtask -p projname) to use but not to make the default one, then
projmod -U username projectname

Wednesday, 25 August 2010

The cruel trooth abou fssnap

There are two fssnap in Solaris with pretty the same features(don't know the historical background of this separation)
/usr/sbin/fssnap and /usr/lib/fs/ufs/fssnap !
The difference is that the second one shows more detailed information :

$/usr/sbin/fssnap -i /usr
0 /usr

$/usr/lib/fs/ufs/fssnap -i /usr
Snapshot number : 0
Block Device : /dev/fssnap/0
Raw Device : /dev/rfssnap/0
Mount point : /usr
Device state : idle
Backing store path : /export/snapshots/snapshot0
Backing store size : 864 KB
Maximum backing store size : Unlimited
Snapshot create time : Mon Aug 23 22:50:06 2010
Copy-on-write granularity : 32 KB

Monday, 23 August 2010

Simplest iscsi configuration in a minute

Work with iSCSI devices is really easy and comfortable in Solaris 10, consider following steps to create and use the simplest configuration:
On target.

Declare base directory
iscsitadm modify admin -d /export/sandbox
Create the target
iscsitadm create target --size 10m sandbox
List created target and copy iqn
iscsitadm list target

On initiator.
Use the target
iscsiadm add static-config iqn.1986-03.com.sun:02:a5a27478-ded0-c8c3-9c71-a882cbfbc0ed.sandbox, ip-address

Label the disk:
#format

Useful:
The command shows relation of ISCSI LUN and local device name
iscsiadm list target -S