September 2017

Upgrading from FreeBSD 10.3 to 11.1 via freebsd-update and beadm

Yesterday I modified a server from booting off a raidz2 array, to booting off a newly created zpool. Why? Because HBAs are a pain to boot off. Instead, this server is now booting off a ZFS mirror of two SSDs, both of which are directly attached to the M/B. Today, I am upgrading this server from FreeBSD 10.3 to FreeBSD 11.1 by making use of beadm. WARNING! Not all steps of the freebsd-update […]

Upgrading from FreeBSD 10.3 to 11.1 via freebsd-update and beadm Read More »

Moving boot from one zpool to another

I’ve been having boot issues with a server containing 20 HDD, all behind HBAs. I have decided to start booting off SSDs. In that previous blog post, there was much speculation about where to mount the new drives, etc. In the meantime, I came up with a solution which did not involve magnets and used a pair of INTEL 730 SSDs I had in another chassis. Let’s start with how I configured those

Moving boot from one zpool to another Read More »

Moving from zroot from one zpool to another

Please also see Moving boot from one zpool to another and Adding a zroot pool to an existing system. On my 20x HDD system at home (also known as knew), I am having a recurring problem with booting. This is also the same system mentioned in my FreeBSD Forums thread about some CAM errors. Side note: I now think those CAM errors may be temperature related.  EDIT: 2018-12-29: They were not temperature related.

Moving from zroot from one zpool to another Read More »

Running PHP on Nginx

I’ve been running Apache since 1998. Nginx didn’t exist then. FreshPorts runs on Apache mostly because that’s what I was using. There was no selection process. I use Nginx in a few locations, but I’ve never run FreshPorts on it. I am configuring a new server (x8dtu) for FreshPorts. So far, I have two jails: nginx01 pg01 My next task: get PHP running on nginx01. Name confusion While I was researching, I became

Running PHP on Nginx Read More »

Bacula – ran out of space, moved some volumes to another zpool

I’m using Bacula 9.0.3 for this post, on FreeBSD 10.3 and 11.1. I did not document this as I went along, however, the details should be enough to get you started. NOTE: when I refer to the bacula-sd configuration, I mean the bacula-sd in question, not necessarily on the same server as bacula-dir. This will hopefully make you think carefully about which file you are modifying. NOTE: I am moving a whole Bacula

Bacula – ran out of space, moved some volumes to another zpool Read More »

Bacula – copy to tape by job size

Backups are pretty amazing. The things you can do with them can be both highly entertaining and surprisingly easy. Today, we will venture into the easy part. Yesterday was the first Sunday of the month, which, according to my Bacula installation’s schedule is the day for full backups. Today, now that that is done, is copy-to-tape day according to my schedule. I do this manually because I don’t want the tape library, and

Bacula – copy to tape by job size Read More »

Getting acme.sh to renew certs via cronjob on FreeBSD

In the past, I’ve written about using acme.sh to automatically generate SSL certificates and distribute them to the required locations. I do this in a single central location, and the websites and mail servers grab their new certs from a webserver. At the time of writing, I was using FreeBSD 11.1 and acme.sh 2.7.4, supplied by the FreeBSD port, in a jail. Nagios warned me that one of my Let’s Encrypt certificates was

Getting acme.sh to renew certs via cronjob on FreeBSD Read More »

FreeBSD – what processes in what jails are using swap?

Sometimes stuff gets swapped out. When it does, it’s good to know what is swapped. I was getting this Nagios alert this morning. I started searching. I found this post about showing what is using swap via: [dan@knew:~] $ ps ax | awk ‘NR==1{print};$3 ~ /W/’ PID TT STAT TIME COMMAND 12 – WL 54:27.37 [intr] 10147 – IWsJ 0:00.00 /bin/sh /usr/local/bin/mysqld_safe –defaults-extra-file=/usr/local/etc/mysql/my.cnf –based 12791 – IWsJ 0:00.00 /bin/sh /usr/local/bin/mysqld_safe –defaults-extra-file=/var/db/mysql/my.cnf –user=mysql –

FreeBSD – what processes in what jails are using swap? Read More »

Scroll to Top