ZFS

Doing stupid things with zpools

Over the past week or so I’ve done some “stupid” things with zpools. I wanted a place to document some of the things I’ve read along the way: renaming a zpool: https://forums.freebsd.org/threads/renaming-zfs-pool-via-zpool-import.65498/ getting the mrsas driver instead of the mfi driver – https://forum.netgate.com/topic/102137/dell-r330-perc-h330-sas (in short, at the loader prompt, issue `set hw.mfi.mrsas_enable=”1″` and then `boot`) I’ll add to this list as I find new stuff.

Doing stupid things with zpools Read More »

Moving a zpool to smaller drives with UEFI #ZFS #FreeBSD

This is another in the series of shrinking zpools. In this test, I’m repeating the previous test, only with UEFI, not BIOS, boot partitions. Partitioning root@r730-04:/home/dvl # gpart create -s gpt mfisyspd0 mfisyspd0 created root@r730-04:/home/dvl # gpart create -s gpt mfisyspd1 mfisyspd1 created root@r730-04:/home/dvl # gpart create -s gpt mfisyspd2 mfisyspd2 created root@r730-04:/home/dvl # gpart create -s gpt mfisyspd3 mfisyspd3 created root@r730-04:/home/dvl # gpart add -t efi -s 260M -a 4k mfisyspd0 mfisyspd0p1

Moving a zpool to smaller drives with UEFI #ZFS #FreeBSD Read More »

Moving a zpool to smaller drives #ZFS #FreeBSD

After succeeding with whole drives and with partitioned drives, I’m ready to try with more complex partitions. This is a repeat of the failed attempt a few days ago. Parition creation The partitions are created Create the schema: root@r730-04:/home/dvl # gpart create -s gpt /dev/mfisyspd0 mfisyspd0 created root@r730-04:/home/dvl # gpart create -s gpt /dev/mfisyspd1 mfisyspd1 created root@r730-04:/home/dvl # gpart create -s gpt /dev/mfisyspd2 mfisyspd2 created root@r730-04:/home/dvl # gpart create -s gpt /dev/mfisyspd3 mfisyspd3

Moving a zpool to smaller drives #ZFS #FreeBSD Read More »

Let’s try shrinking a whole-disk zpool

After yesterday’s failure to shrink a parition-based zpool. After reading this post, you want also want to read this other successful post. You will recall that expedition ended with: dvl@r730-04:~ $ zpool add zroot mirror /dev/da2p3 /dev/da3p3 cannot use ‘/dev/da2p3′: must be a block device or regular file Today, I’m going to try the same thing with whole disks, just to see if that works. You might also want to read Moving a

Let’s try shrinking a whole-disk zpool Read More »

Moving a zpool to smaller drives #ZFS #FreeBSD – fails

This post is part of a series of storage-related posts. The goal: move the zroot of r730-01 to smaller drives. NOTE: This approach failed. Investigations continue, however this post is not something you should try. This other successful post might be useful, although I still don’t know why the attempt in this post fails. Earlier today, as the first step in my proof-of-concept, I moved the zroot of r730-04 from 2x SATADOM device

Moving a zpool to smaller drives #ZFS #FreeBSD – fails Read More »

gpart backup | gpart restore does not alway give you exact replication

Today I was setting up some drives for testing. I did this manually: root@r730-04:~ # gpart create -s gpt da2 da2 created root@r730-04:~ # gpart add -t efi -s 260M -a 4k da2 da2p1 added root@r730-04:~ # gpart add -t freebsd-swap -s 8G -a 4k da2 da2p2 added root@r730-04:~ # gpart add -t freebsd-zfs -a 4k da2 da2p3 added root@r730-04:~ # gpart show da2 => 40 62533216 da2 GPT (30G) 40 532480 1

gpart backup | gpart restore does not alway give you exact replication Read More »

Using SATADOM drives in a Dell R730

A recent goal is to increase the available storage space in my main development server in the basement. To that end, two recent posts: r730-01: the drive replacement plan r730-01: storage plan The SATADOM devices I purchased are meant to be plugged directly into the M/B of the server. This approach will free up two PCIe slots which were hosting 2x 2.5″ SSDs in a hot-swap adaptor (the post mentions a Dell R720;

Using SATADOM drives in a Dell R730 Read More »

zfs: setting compression and adding new vdevs

If you read my recent posts, I’m replacing an existing zpool with new devices. At first, I went to copy the old zpool to a new zpool. I then decided instead of copying, to replace. I’m also going to see about compression. I’m sure it won’t take effect, because replace is a block-by-block copy, or so I think. We’ll confirm. Before Here is the zpool, really, just the top-level filesystem. Notice how compression

zfs: setting compression and adding new vdevs Read More »

Moving a zpool to new devices – after the syncoid copy – oh wait, zfs replace

This morning, as I was typing the subject of this blog post, I realized I don’t have to do this copying. The new devices are staying in this host. It is better for me to add the new devices to the zpool and remove the old devices. That is so much easier. The existing zpool can stay in use and there is no interruption in service. NOTE: after publishing this entry, I realized

Moving a zpool to new devices – after the syncoid copy – oh wait, zfs replace Read More »

Creating the new zpools

I have 4 new storage devices to create 2 new zpools, each a two-vdev mirror. Let’s go. In this post: FreeBSD 14.3 These are the drives I have. As an Amazon Associate I earn from qualifying purchases. The 4TB NVMe cards are Samsung 990 EVO Plus SSD 4TB, PCIe Gen 4×4 | Gen 5×2 M.2 The 4TB SSDs are SAMSUNG 870 EVO 4TB 2.5 Inch SATA III Internal SSD (MZ-77E4T0B/AM) The new data02

Creating the new zpools Read More »

Scroll to Top