FreeBSD

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 »

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 »

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 »

Booting off the new 5TB drives

This is about FreeBSD 11.1 on my knew server. I recently replaced the 3TB drives with 5TB drives. Along the way, it didn’t boot, the swap was adjusted, I got concerned about power, and there was a brief CAM status: SCSI Status Error scare. Then today, the planned reboot, I started asking questions on Reddit and on Twitter. The booting issue BIOS cannot boot from drives which present only 4096-byte sectors. This is

Booting off the new 5TB drives Read More »

After replacing 3TB drive with 5TB drive, FreeBSD 10.3 system did not reboot

I started replacing 3TB drives with 5TB drives in a 10 drive raidz3 array on a FreeBSD 10.3 box. I was not sure which drive tray to pull, so I powered off the server, and, one by one, pulled the drive tray, photographed it, and reinserted the drive tray. No changes were made. The first reboot Upon powering up, I was greeted by this (I have typed out the text for search purposes):

After replacing 3TB drive with 5TB drive, FreeBSD 10.3 system did not reboot Read More »

Logging, backups, and newsyslog.conf on FreeBSD

This morning, I was reviewing the logs and noticed these notices in /var/log/messages: I guessed that this was directly related to the zfs replace command I had issued the day before, but I wanted to confirm that. I like to use sudo instead of becoming root. One of the many benefits to this approach is logging. Everything is logged to /var/log/auth.log for later review. However, by the time I went to look, /var/log/auth.log

Logging, backups, and newsyslog.conf on FreeBSD Read More »

Swapping 5TB in, 3TB out

In this power, the server is running FreeBSD 10.3. I am completely and unreasonably biased: ZFS is the best filesystem out there. Do not take my word for it. Ask around. Today, I started a process I’ve been waiting to do for a while. I am replacing the 3TB drives in a 10-drive raidz2 array with 5TB drives. These new drives are faster, I think perhaps cooler, and, more to the point, bigger.

Swapping 5TB in, 3TB out Read More »