ZFS

zfs hold / release

Let’s talk about zfs hold. Based on man zfs-hold: “If a hold exists on a snapshot, attempts to destroy that snapshot by using the zfs destroy command return EBUSY.” Let’s apply that to some FreshPorts snapshots which I don’t want going away: This is your typical FreshPorts website: [15:03 dvl-nginx01 dvl ~] % zfs list NAME USED AVAIL REFER MOUNTPOINT data02 1.13T 565G 96K none data02/freshports 671G 565G 88K none data02/freshports/jailed 326G 565G […]

zfs hold / release Read More »

Transferring a VM from one provider to another

Yesterday, I mentioned (in more than one place) that I planned to move a 2017 Digital Ocean droplet over to Azure. As I sit here, with coffee, on the balcony, overlooking lot of green trees, at 7:45 AM, I’m trying to put into words the plan I came up with about 30 minutes ago. In this post: Digital Ocean Microsoft Azure FreeBSD 14.1 Why move? There is no technical issue or dissatisfaction involved

Transferring a VM from one provider to another Read More »

Adding a new user to my Time Capsule – on ZFS with Samba

I have another laptop I want to backup using my Time Capsule jail. Here are the step I used. Create a Unix User I have no idea if I need to do this. But I did. But now, I’m thinking, it is not required, at all. But read on, I think I’ll show you where I use it. [21:56 tm dvl ~] % sudo adduser Username: dvl-pro04 Full name: For backing up pro04

Adding a new user to my Time Capsule – on ZFS with Samba Read More »

OK, we got a Time Machine on ZFS on FreeBSD. So what. Can we restore from it?

I have written recently about creating a ZFS-based Time Machine on FreeBSD. Yesterday, I did my first restore from this instance. Surprise. It worked. Please move along. Nothing to see here. Just photos. The motivation: I’m replacing one MacBook with another. Some details here on Twitter. Edit – 2024-02-22 After I messed up when renaming a user account, I restored from backup. Since my Time Machine is only available via my VPN, I

OK, we got a Time Machine on ZFS on FreeBSD. So what. Can we restore from it? Read More »

Creating a Time Capsule instance using Samba, FreeBSD, and ZFS (latest)

This is a rewrite of a previous post on the same subject. I have rewritten it because I created a new jail ™ and I’m using a different configuration now. I recently moved a Time Capsule instance from a FreeBSD host into a jail. Later, I moved to using Samba instead of AFP. Why? Samba seems to be the preferred solution because AFP has been deprecated. It still works, but let’s go Samba.

Creating a Time Capsule instance using Samba, FreeBSD, and ZFS (latest) Read More »

FreeBSD jailed ZFS datasets – how do I find the .zfs/snapshot directory?

On FreeBSD, you can jail a ZFS dataset – that is, the jail can manipulate the ZFS dataset as if it was a host (more or less). This has useful applications. In my case, I want to backup a snapshot of that dataset from the host. For example, I want to backup this dataset: [12:19 r730-01 dvl ~] % zfs list data02/freshports/jailed/dev-ingress01/data/latest_commits NAME USED AVAIL REFER MOUNTPOINT data02/freshports/jailed/dev-ingress01/data/latest_commits 572K 798G 120K /var/db/ingress/latest_commits Within

FreeBSD jailed ZFS datasets – how do I find the .zfs/snapshot directory? Read More »

Backing up FreeBSD with Bacula via ZFS snapshot

Tonight, while watching an episode of The Great British Bake Off, I configured a new Bacula backup jobs to cover some datasets which were not already backed up. I already have a backup jobs to backup all the jails, but only for datasets which sit right under zroot/jails (for example). This new solution takes a list of datasets, snapshots them, backs them up, then destroys those snapshots. Why backup a snapshot? Consistency. During

Backing up FreeBSD with Bacula via ZFS snapshot Read More »

Debugging snmp output when using LibreNMS

Librenms is my tool-of-choice for grabbing metrics from switches, servers, wireless access points, and anything else with an snmp interface. In this post: FreeBSD 14.0 LibrenMS 23.11.0,1 – updated to 23.11.0_1,1 within this post net-snmp-5.9.1_4,1 After updating some hosts to FreeBSD 14, the zfs application/extension broke. It was quickly amended after a report was lodged. However, after the fix, I still wasn’t getting graphs. It was nan all across the board for ZFS:

Debugging snmp output when using LibreNMS Read More »

Jails with embedded, but not jailed, ZFS datasets – how to mount/umount – corrected

This is a rewrite of Jails with embedded, but not jailed, ZFS datasets – how to mount/umount. First, this is not about jailed ZFS datasets. I use them for FreshPorts, but that’s not I’m going to talk about here. In this post: FreeBSD 13.2 This is my example: [22:25 r730-03 dvl ~] % zfs list | grep bacula-sd-04 data01/bacula-volumes 12.1T 4.18T 96K /jails/bacula-sd-04/usr/local/bacula/volumes data01/bacula-volumes/DiffFile 109G 915G 109G /jails/bacula-sd-04/usr/local/bacula/volumes/DiffFile data01/bacula-volumes/FullFile 4.00T 2.00T 3.89T /jails/bacula-sd-04/usr/local/bacula/volumes/FullFile

Jails with embedded, but not jailed, ZFS datasets – how to mount/umount – corrected Read More »

Moving 4x storage devices into a new home

Yesterday I did some scavenging of some servers which I’m going to dispose of. I managed to put together 4 x 1TB storage devices: 2 x NVMe sticks and 2 x SSDs. I also pulled a riser card from an R730 and relocated it to another host. The NVMe sticks are mounted on these PCIe cards, which I do not regret buying. They came with full height and low-profile brackets. More to the

Moving 4x storage devices into a new home Read More »

Scroll to Top