ZFS

zfstools & sanoid – snapshots on the local host

I’m going to implement zfstools on all my ZFS-based hosts today. I first started using this tool in July 2019. In this post: FreeBSD 12.0 and 12.1 zfstools 0.3.6_1 sanoid-2.0.1_2 Local snapshots only I will be using zfstool only for creating local snapshots. If I wanted snapshots for sending to other hosts, I would probably use a tool such as sysutils/sanoid, which is policy-driven solution for snapshot management and replication. For now, there […]

zfstools & sanoid – snapshots on the local host Read More »

How allow.mount.zfs affects mountpoints for ZFS

I noticed this the other day, and thought it was interesting. When the jailed property is set on a ZFS fileset, it affects the mountpoint within the jail. If your jail uses allow.mount.zfs (known as allow_mount_zfs when using iocage), the mountpoints become relative to the jail. For example, in my poudriere jail, this is what I see the main dataset: [dan@pkg01:~] $ zfs list tank_fast/poudriere NAME USED AVAIL REFER MOUNTPOINT tank_fast/poudriere 51.1G 452G

How allow.mount.zfs affects mountpoints for ZFS Read More »

Migrating drives and the zpool from one host to another.

Today is the day. Today I move a zpool from an R710 into an R720. The goal: all services on that zpool start running on the new host. Fortunately, that zpool is dedicated to jails, more or less. I have done some planning about this, including moving a poudriere on the R710 into a jail. Now it is almost noon on Saturday, I am sitting in the basement (just outside the server room),

Migrating drives and the zpool from one host to another. Read More »

Going from partition to label in zpool status

In my recent post you saw this: [dan@r720-01 ~]$ zpool status zroot pool: zroot state: ONLINE scan: resilvered 818M in 0 days 00:00:09 with 0 errors on Tue Oct 15 21:32:12 2019 config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 ada0p3 ONLINE 0 0 0 gpt/zfs1 ONLINE 0 0 0 errors: No known data errors [dan@r720-01 ~]$ I want to change ada0p3 to gpt/zfs0, as

Going from partition to label in zpool status Read More »

Creating a mirror from your zroot

I planned to create a zroot mirror when I installed FreeBSD on the R720 but the supplier shipped only one of the two purchased SSDs. Today the second drive arrived. Let’s create a zroot mirror. In this post: FreeBSD 12 man 8 zpool Posts I looked at: creating a mirrored ZFS Pool out of a single-disk rpool – not FreeBSD Convert Single disk ZFS-On-Root to Mirror – used the GUID via zbd; I

Creating a mirror from your zroot Read More »

Preparing the Dell R720 for ZFS

I have obtained a Dell R720 containing 10 x 400GB SSDs. The drives are connected to a RAID controller (H710P) which cannot do JBOD / IT mode. This means the drives are effectively hidden from ZFS, which is never good. In this post: FreeBSD 12.0 ZFS Dell R720 SAS 9207-8i This post describes past work and future plans for this server as I get it ready to be a general purpose server running

Preparing the Dell R720 for ZFS Read More »

Mount your ZFS datasets anywhere you want

ZFS is very flexible about mountpoints, and there are many features available to provide great flexibility. When you create your second zpool this is what it might look like: $$ zfs list -r main_tank NAME USED AVAIL REFER MOUNTPOINT main_tank 893G 3.52T 96K /main_tank main_tank/data 786G 3.52T 88K /main_tank/data main_tank/data/dvl 755G 3.52T 755G /main_tank/data/dvl main_tank/data/freshports 31.4G 3.52T 88K /main_tank/data/freshports main_tank/data/freshports/backend 3.11G 3.52T 88K /main_tank/data/freshports/backend This is a pool I created long ago, but

Mount your ZFS datasets anywhere you want Read More »

Converting thin jails to thick jails

I have been using ezjail since at least 2008 (see earlier blog post). A few years ago, I started deploying iocage on new servers. About three months ago, I starting converting systems from ezjail to iocage. When I converted my first system, I found that the existing documentation for conversion was incomplete. Specifically, symlinks were a problem. I raised an issue and wrote a better script which I have since used on a

Converting thin jails to thick jails Read More »

Adding a zroot pool to an existing system

Current FreeBSD versions will allow you to create a zroot zpool from which you can boot. However, when I created the main zpool for slocum (on Fri May 3 2:16 2013), that option did not exist. You might ask: how do I know that date? [dan@slocum:~] $ zfs get creation system NAME PROPERTY VALUE SOURCE system creation Fri May 3 2:16 2013 – At present, the system boots from a raidz2 zpool. This

Adding a zroot pool to an existing system Read More »

x8dtu

This is x8dtu (named after the SuperMicro motherboard). This is the new FreshPorts server. The older post is still available In short: FreeBSD 11.2 booting off a mirrored pair of zfsroot SSDs 4.5TB of mirrored ZFS 196612 MB of RAM (yeah, that’s 196GB of RAM) SuperMicro X8DTU motherboard Intel Xeon E5620 @ 2.40GHz (two of those, giving 16 CPUs) NOTE: this post replaces

x8dtu Read More »

Scroll to Top