a blog about my passion, hobby and work

‘Sun’ Articles

1Tb Maxtor basic drives & ZFS

I have two 1TB Maxtor basic drives connected to my opensolaris box. On there I run a ZFS mirror. All working well, maybe not on mega speeds but fairly enough for home use (it does stream movies to my AppleTV with XBMC over smb) The downside I discovered later, is that they auto sleep after 15minutes of being idle and I will tell you this, ZFS doesn’t like this feature… I fixed this with a crontab writing a tmp file in a directory on the disk but that gave me some onwanted problems in some cases. This morning I was fed up with it and I wanted a good solution and it seems, there is one… but the application doesn’t have a lot of functions when you use it on MacOSX it appeared… so you really need to do this on a windows computer (scary huh) so here is the application. Have fun!

Tags: , , ,
Posted in Apple, Sun | No Comments »

OpenSolaris 2008.11 ZFS with ‘on access’ virus scan

Although at home I only work with Macintosh and OpenSolaris computers and the risk for virusses and malware are rather slim, my files could be infected with pc virusses and I could send pc virusses to friends without me knowing. It is also very stupid to think that Macintosh computer are just safe and don’t need a virus scanner. So this is where this article came from, I installed ClamXav on my MacBooks and then started to look at my NAS. It’s running OpenSolaris so.. there must be a great way to secure that! (and there is!!)

We need a few ingredients to get this running, here are my steps:

  • First of al the SUNW packages for vscan (you should be able to install them if you haven’t got them)

# pkginfo |grep -i vscan
system      SUNWvscankr                     Virus Scan Service Kernel (Root)
system      SUNWvscanr                      Virus Scan Service (Root)
system      SUNWvscanu                      Virus Scan Service (Usr)

  • We need to download c-icap from sourceforge and extract it and then compile it

# export LDFLAGS=”-L/opt/csw/lib -R/opt/csw/lib -lclamav”
# export CC=gcc
# export CXX=g++

# ./configure –prefix=/opt/icap –with-clamav=/opt/csw –with-perl=/bin/perl –with-zlib=/usr/lib –enable-large-files

# make
# make install

Tags: ,
Posted in Sun | No Comments »

Specify the Finder icon with Avahi on OpenSolaris 2008.11

I found this article from Simon Wheatley and found it very nice to do. But it didn’t seem to work on OpenSolaris… but don’t worry, it just needs a small fix, don’t use port 0 for _device-info._tcp, but just give it a port you are already advertising.
Read the rest of this entry »

Tags: , , ,
Posted in Apple, Sun | 2 Comments »

Share your OpenSolaris 2008.11 screen to Mac Os X

I found some info on how to share your OpenSolaris Screen with vnc, and those manuals just didn’t do it for Mac Os X unless you use a vnc viewer. But I wanted to use the build in screen sharing build in to Mac Os X which support vnc but it didn’t seem to work.. The resolution was Mac Os X wants authentication and thus the fix was easy, here you go: Read the rest of this entry »

Posted in Apple, Sun | 3 Comments »

Solaris ZFS – SSD & ZFS – Hybrid Storage Technology

Posted in Sun | No Comments »

Process Management

I learned some nice things from our middleware guy, who I will support in the future. So I was searching for some process management commands. Romeo Ninov has a nice list on it.toolbox.com

here is the list:

Commands
apptrace – for trace of library calls
dtrace – debugger, new in version 10
pargs – get list of arguments and environment variables with which process was started
pfiles – list of file descriptors, associated with process
pgrep – get the PID’s of processes by name i.e. Something like ps -efl|grep -v grep|grep process_name
pkill – send signal to process. For example pkill -9 init :-P
pldd – list dynamic libraries, associated with process, similar to ldd for executable
plockstat – see list of locked by process files. Lock can be mutex i.e. exclusive and reader/writer for shared access
pmap – get memory map (segments) of process
preap – try to kick-off zombie process
prstat – fullscreen view of processes sorted by different criteria, similar to Linux top command
prun – continue hold with pstop process
ps – print process information and status. In Solaris exist SYSV and BSD variants, respectively /usr/bin/ps and /usr/ucb/ps
psig – list signals that can be handled by process
pstack – get backtrace stack of process for debugging purposes
pstop – temporary hold process
ptree – print the tree of processes
pwait – wait till process finish
pwdx – list working directory for process, like pwd command
truss – for trace system calls and signals

Read the rest of this entry »

Posted in Sun | No Comments »

The IT-Guy: OpenStorage

Posted in Funny, Sun | No Comments »

Shouting at disk arrays is not supported by Sun

Offcourse it comes down to two big innovations brought to you by Sun:

ZFS & Dtrace

The Fishworks team made a very nice gui wich combine the two and it is available in the newest Sun 7000 Unified Storage Systems.

Tags: , ,
Posted in Funny, Sun | No Comments »

Sun Solaris 10 No limits

Tags: ,
Posted in Sun | No Comments »

Store Time Machine backups on AFP

Off-course you want to use timemachine now when you’ve set up your AFP server, I found everything whats needed in 3 easy steps on macosxhints.com.

on your local mac in Terminal type the following command.

hdiutil create -size $SIZE -type SPARSEBUNDLE -nospotlight -volname “Backup of $HOSTNAME” -fs “Case-sensitive Journaled HFS+” -verbose ~/Desktop/$HOSTNAME_$MAC_ADDRESS.sparsebundle

$SIZE = the maximum size of the backups (example: 160G)
$HOSTNAME = the hostname of your mac
$MAC_ADDRESS = the mac address of your first ethernet card without the columns

now move that file you just created to the destination afp share you created for timemachine backups (with rsync, scp, mv,..)

now issue the following command in the Terminal if you are running a lower version than MacosX 10.5.2
You don’t need to sudo for this!

defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

now to be sure restart your mac, (logoff and logon should be enough, but hey..)

You should now be able to select your afp share as a time machine backup location and even some say your backup can get corrupted but then you still have your zfs snapshots right? I’ll explain that later!

Tags: ,
Posted in Apple, Sun | No Comments »

 Page 1 of 2  1  2 »

Disclaimer

The opinions expressed on this site are my own personal opinions and do not represent my employer's view in anyway.

Formula1 is back!

in only 3 days !!!

GeoIP info

SweetFeeds RSS