FreeBSD

Bacula helps me solve a mergemaster problem which broke Bacula

Earlier today, I saw a bunch of emails like this: for <root@localhos>; Wed, 21 Jan 2015 20:32:36 +0000 (UTC) From: root@localhost.example.org (Bacula) Subject: Bacula: Copy Fatal Error of crey-fd Full Sender: bacula@bacula.example.org To: root@localhost.example.org Date: Wed, 21 Jan 2015 20:32:36 +0000 (UTC) Message-Id: <20150121203236.E993D2B28@bacula.example.org> X-Gm-Original-To: dan@example.org 21-Jan 20:32 bacula-dir JobId 197313: Warning: FileSet MD5 digest not found. 21-Jan 20:32 bacula-dir JobId 197313: The following 1 JobId was chosen to be copied: 197238 21-Jan

Bacula helps me solve a mergemaster problem which broke Bacula Read More »

Failure with freebsd-update; how not to upgrade your systems

freebsd-update is a great tool. It reduces my workload. It’s hard to use it wrong, but I have managed to do so. So have other people. Yesterday, three of us encountered the same issue. We did it wrong. We didn’t do it wrong yesterday. We did it wrong months ago, and now it’s come back to haunt us. NOTE if you ever see: Undefined symbol “ssh_explicit_bzero” on a FreeBSD server, you probably have

Failure with freebsd-update; how not to upgrade your systems Read More »

nullfs mounts in a jail

Just a note for myself. I had this kind of thing in /etc/fstab so I could share one installation of plugins and themes for WordPress. /usr/local/wordress/plugins /usr/jails/freebsddiary.org/usr/local/www/wordpress/plugins nullfs ro,nosuid,noexec,late 0 0 /usr/local/wordress/themes /usr/jails/freebsddiary.org/usr/local/www/wordpress/themes nullfs ro,nosuid,noexec,late 0 0 /usr/local/wordress/plugins /usr/jails/news.freshports.org/usr/local/www/wordpress/plugins nullfs ro,nosuid,noexec,late 0 0 /usr/local/wordress/themes /usr/jails/news.freshports.org/usr/local/www/wordpress/themes nullfs ro,nosuid,noexec,late 0 0 Then I moved them to their respective ezjail /etc/fstab.new_freshports_org files. They didn’t mount. Solution: remove ,late

nullfs mounts in a jail Read More »

Bacula on FreeBSD with ZFS

Full disclosure: I’m biased. I like the combination of PostgreSQL, FreeBSD, ZFS, and Bacula. In fact, I like it so much, I wrote the PostgreSQL backend for Bacula. Since then, I have been using Bacula for over 10 years. I have backed up to HDD, DDS, DLT, and SDLT. Bacula has proven to be reliable and it just works. Clients are available for a wide range of operating systems and Bacula doesn’t care

Bacula on FreeBSD with ZFS Read More »

pg_dump: aborting because of server version mismatch

Here’s something to be aware of. Update your PostgreSQL client on your Bacula client if it is used for backing up the Catalog. Ngaios just told me: FILE_AGE WARNING: /usr/backups/bacula/MyCatalog.dump is 45125 seconds old and 0 bytes I looked at the backup job from earlier today: 28-Dec 08:15 bacula-dir JobId 195194: shell command: run BeforeJob “/usr/local/bacula/make_catalog_backup.new MyCatalog” 28-Dec 08:15 bacula-dir JobId 195194: BeforeJob: pg_dump: server version: 9.4.0; pg_dump version: 9.3.5 28-Dec 08:15 bacula-dir

pg_dump: aborting because of server version mismatch Read More »

zpool upgrade calls for gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot

NOTE: when upgrading a zpool, it may be necessary to also upgrade the bootcode for that disk (or disks). Be aware of this before proceeding. I know I have missed this step more at least once. Earlier today I was adding a new pool to the system. After creating the pool, the status showed this: Let’s upgrade that pool now Upgrading the pool Upgrading the pool is easy: Oh… Now what? I wasn’t

zpool upgrade calls for gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot Read More »

Adding two new drives (SSD) to an existing ZFS system

I haven’t tested this yet, but I’ve installed the hardware. The real test will come after a reboot and actual use of the new drives. NOTE: Although this claims to be creating a new ZIL (SLOG) do not believe it. In fact, stop reading right here. There is nothing of use below. What will they be used for? These drives are intended for ZIL (the ZFS Intent Log). This can speed up writes.

Adding two new drives (SSD) to an existing ZFS system Read More »