cyberz.org

June 8, 2009

Bacula mail changer script (aka poor man’s autoloader)

Filed under: News, Solaris, Technical, Unix — Tags: , , , — andrea @ 11:16 pm

I enjoy Bacula for automated home backups on DLT and DDS tape drives. Being used at home there’s no – obviously – big-dollar-company-manager to ask for an autoloader; and when the time of a tape change comes bacula lacks a simple way to request a manual tape change and just hangs up. So I managed to build a fake autoloader shell script, which, using emails, would emulate a real autoloader. This script, which I baptised mail-changer, features:

  • email support
  • periodic email resend when tape change is needed
  • tape detection and check (if you’re supposed to insert tape 4 and you enter 5, the script will kindly refuse the tape, unload it and send a warning email message asking for the right one)

(more…)

March 8, 2008

Solaris 10 si3124 backport (workaround for bug #6566207)

Filed under: Technical — Tags: , — andrea @ 12:28 am

Do you think you can get a fast cheap SATA mass storage at home with Solaris 10 and ZFS just plugging a cheap si3124 controller?

Not so easily: on Solaris 10 you will be afflicted by some boring bug known as bug #6566207 which gets your controller stuck for around a minute after some heavy I/O.

(more…)

February 27, 2008

seq equivalent

Filed under: Unix — Tags: , — andrea @ 8:19 pm

On platforms without seq (MacOSX, Solaris), you can emulate it using dc as follows (note the upper bound and the lower bound):

echo '[1+pdupper bound>aq]salower bound 1-lax' | dc

For example:

alia:~ andrea$ echo '[1+pd5>aq]sa0 1-lax' | dc
0
1
2
3
4
5
alia:~ andrea$

Powered by WordPress