20 Jul 2007

Mount an ISO image

lofiadm -a /export/temp/software.iso /dev/lofi/1
mount -F hsfs -o ro /dev/lofi/1 /mnt
mount -F hsfs -o ro `lofiadm -a /export/temp/software.iso` /mnt

mount -F hsfs -o ro `lofiadm -a /export/temp/software.iso` /mnt



Source: http://www.tech-recipes.com/solaris_system_administration_tips218.html

10 Jul 2007

Cron log: Bad user

This happend on Solaris 10 when the user account is locked out.
Change the entry in the shadow file from LK to NP

30 Apr 2007

Performance Tuning

iostat -xnc 10


     cpu
us sy wt id
25 12 14 49
extended device statistics
r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
0.3 0.9 3.2 7.9 0.0 0.0 6.0 16.6 1 1 d1
16.3 102.6 3011.8 960.0 0.5 1.0 4.3 8.3 0 48 c4t600C0FF000d0



I/O-Bound System

Field Value sar Option

%busy (% time disk is busy) >85 sar -d

%rcache (reads in buffer cache) low, <85>30 sar -u
fileserver >80

Excessive Swapping/Paging

bswot/s (ransfers from memory to disk swap area) >200 sar -w

bswin/s (transfers to memory) >200 sar -w

%swpocc (time swap queue is occupied) >10 sar -q

rflt/s (page reference fault) >0 sar -t

freemem (average pages for user processes) <100>2 sar -q

%runocc (% run queue occupied and processes not executing) >90 sar -q


Good reference site.


02 Jan 2007

OK Prompt

OK Prompt

Get to the OK prompt from Solaris.

Enter "~ctrl_b"

From the Lom> prompt type "break" and enter.

07 Nov 2006

Can't mount/eject cdrom

The CD is in the drive. You can't see it. you can't mount it, you can't eject it.

Restart vold. Kill -9 does a good job.

Start vold with /etc/init.d/volmgt start