Creating a pool on a partition

All your general support questions for OpenZFS on OS X.

Creating a pool on a partition

Postby pat » Fri May 28, 2021 1:56 am

I have a 256 GB USB drive, that I want to use 1/2 for APFS and 1/2 for ZFS. I've set it up simply with two partitions - 1/2 APFS and 1/2 HFS, with the intention of creating the ZFS pool over the HFS partition.

I am unclear about something in the instructions for creating a pool:

-f instructs ZFS to label the disk for you
...
Note that if you partition the disk yourself, and specify a slice for ZFS, you are responsible for making sure the partition table shows the partition type is ZFS.


Does the -f flag make sure the partition table shows the partition type is ZFS? Or do I still need to do something since I'm creating it on a partition? Here's my actual command:

Code: Select all
$ diskutil list
...
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *250.0 GB   disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                 Apple_APFS Container disk3         124.9 GB   disk2s2
   3:                  Apple_HFS                         124.5 GB   disk2s3

$ zpool create -f -o ashift=12 -O compression=lz4 -O casesensitivity=insensitive -O atime=off -O normalization=formD zfit disk2s3


Or when partitioning should I use the "ZFS Dataset" partition type instead? Which results in:

Code: Select all
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *250.0 GB   disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                 Apple_APFS Container disk3         124.9 GB   disk2s2
   3: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF               124.4 GB   disk2s3
   4:                 Apple_Boot Boot OS X               134.2 MB   disk2s4


I am using Catalina and ZFS 2.0.1-1
pat
 
Posts: 12
Joined: Mon May 03, 2021 11:58 pm

Return to General Help

Who is online

Users browsing this forum: Google [Bot] and 1 guest