Skip to content

Recent Articles


SELinux: how to change default context of a directory

Sometimes you may want to override the default SELinux context for a given path.

This can be easily accomplished editing /etc/selinux/targeted/contexts/files/file_contexts.local adding an entry (which is made by a path regexp and the selinux content). Follows an example:

/path(/.*)? system_u:object_r:httpd_sys_content_t:s0


WebLogic 12c: very slow domain creation

When creating a new domain on Linux, does Weblogic gets stuck at the <BEA-141254> <Generating new domain directory in XXX> message?

Read moreRead more


Resuming an scp transfer

Got tired of scp’s inability to resume a large transfer? Try rsync over ssh:

rsync --rsh='ssh' -av --progress --partial sourcefile user@host:target

If you don’t want to remember the command line I’d suggest the following alias (to add to ~/.bash_profile):

Read moreRead more


How to expand a ZFS device

Nowadays virtual environment are very common, thus a hot increase of an existing drive into a virtual machine is a very common operation (roughly equivalent to a LUN expansion in SAN).

When you expand a zpool device, the new size won’t be immediately available to zfs, but you can easily request an expand with the following:

Read moreRead more


SMF Manifest for Oracle 12c DBMS on Solaris 11.1

Here’s the procedure for adding Oracle 12c DBMS as SMF service in Solaris 11.1, based on this guide. The version provided here is slightly modified for the sake of simplicity as It needs only the oracle.xml to run (no additional scripts or configuration are required).

The procedure should work even with previous versions of Oracle DBMS and Solaris 11/10 (untested).

Read moreRead more


Java State Machine (JSM): build your own Deterministic Finite Automaton in Java!

Some time ago I’ve built some code to declare Finite State Machines in Java in an annotated fashion so you wouldn’t have to bother yourself with state handling. Since it turned out that the code has been useful in more than a couple occasions, I’ve decided to share it.

JSM comes as a tiny jar with an easy to use interface.

— More to come here! —


Integrating Oracle and MySQL with Bacula

After putting your precious data into your preferred database (Oracle or MySQL if you’re here) your next worry should be how to back them up. Here Bacula comes to help as a valid opensource network enterprise backup system – but how to get it working with your database?

In this post you’ll find some scripts which I developed to integrate Oracle or MySQL seamlessly with Bacula, allowing it to:

  • Do (hot) full backup of the database
  • Do (hot) incremental backup (also known as incremental differential backup)
  • Do (hot) differential backup (also known as incremental cumulative backup)

Read moreRead more


Multi-lun autoloader with VMware ESXi 5.0 with Adaptec SCSI HBA

VMware ESXi 5 is not able to handle multi-lun devices by default, so many SCSI autoloaders are not supported as-is (as HP StorageWorks LTOs), showing only the tape drive or media changer but not both:

Read moreRead more


Proguard on MacOSX

While executing proguard (via maven2) on MacOSX Snow Leopard, I’ve got the following error:

[proguard] Error: Can't read [/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/rt.jar] (No such file or directory)

Similarly, you can also get the following error:

[proguard] Error: Can't read [/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jsse.jar] (No such file or directory)
Read moreRead more


Solaris 11 Express: bind an iSCSI target to an IP

Lately I wanted to bring the advantages of ZFS (on Solaris 11 Express) to a Linux box using iSCSI. After following the Oracle guide, I’ve noticed an unexpected behaviour when discovering the iSCSI targets (from a CentOS host):

[root@zimbra ~]#  iscsiadm -m discovery -t sendtargets -p,1,1
[root@zimbra ~]#

That is, the iSCSI target was bound to all the avaible interfaces (including ip addresses of zones).

Read moreRead more