ZFS

Excluding the base-OS when backing up FreeBSD jails with Bacula

I felt I was backing up way too much on my jail server. I was backing up files which would be installed as part of the OS. Let’s look at the esimate: *estimate level=full job=”slocum jail snapshots” Using Catalog “MyCatalog” Connecting to Client slocum-fd at slocum.int.unixathome.org:9102 2000 OK estimate files=2,824,716 bytes=239,568,332,325 * I decided to add these to the FileSet: Options { Exclude = yes WildDir = “/usr/jails/*/.zfs/snapshot/basejail” WildDir = “/usr/jails/*/.zfs/snapshot/bin” WildDir = […]

Excluding the base-OS when backing up FreeBSD jails with Bacula Read More »

Upgrading from FreeBSD 9.3 to FreeBSD 10.1 using beadm and freebsd-update

In this post, I will use boot environments to upgrade an existing FreeBSD 9.3 to FreeBSD 10.1, and I will do this from within a chroot. Why? Because I can. You might want to read about my previous attempt and one or two, actually three, things I did to get ready for this. In the following commands, I clone the existing running environment to 10.1-RELEASE, then I mount it to /mnt, chroot into

Upgrading from FreeBSD 9.3 to FreeBSD 10.1 using beadm and freebsd-update Read More »

system/bootenv/default/var does not contain /var

Much like the system/bootenv/default/usr does not contain /usr issue I recently wrote about, I found the same issue with system/bootenv/default/var For this post, I have booted my FreeBSD 9.3 system from mfsBSD thumb drive. I will import the pool, but not mount it. # zpool import -N system I mounted the filesystem in question, and confirm that there is just one ZFS thing mounted: # mount -t zfs system/bootenv/default/var /mnt # mount -t

system/bootenv/default/var does not contain /var Read More »

Fixing the system/bootenv/default/usr to be mounted

My goal is to make an easy way to upgrade with beadm by using the idea found in this post. I had a problem with my first attempt which I solved with the details in this post. boot mfsBSD This tool has very quickly become one of my favorites. I like how easy it is to pop in a USB drive and boot a live version of FreeBSD to do stuff. The import

Fixing the system/bootenv/default/usr to be mounted Read More »

now it’s not there, now it is

I started trying a Root-on-ZFS upgrade using beadm and quickly encountered an anomaly: no /usr/bin Then, it was there, then it wasn’t. I wasn’t sure of what steps I took to reproduce it. So I went through logs and eventually understood what happened. Let me show you. Here is what I did: # beadm create 10.1-RELEASE # beadm mount 10.1-RELEASE /mnt # mount -t devfs devfs /mnt/dev # chroot /mnt csh: Cannot open

now it’s not there, now it is Read More »

Another zroot install

I just converted another server from UFS to ZFS. I used this script as my starting point. I dropped to a shell as soon as I booted from the live CD. Then I fetch my script: fetch –no-verify-peer http://bit.ly/1MvhRXH mv 1MvhRXH install.sh I didn’t run the script. I modified it to suite my new conditions. The install files were not available. I put and exit around line 84. Then I ran my script:

Another zroot install Read More »

zfs send | zfs receive as non-root

In this post, I am using FreeBSD 9.3 but what I do here should have wide application, especially the errors I encounter. I believe in backups. Not just rsync, but multiple copies and in multiple places. RAID is not a backup. rsync is not a backup. The goal of this post is to send a copy of a ZFS filesystem to a remote server. The server in question is already backed up in

zfs send | zfs receive as non-root 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 »

Scroll to Top