can't import new pool that disappeared after reboot

All your general support questions for OpenZFS on OS X.

Re: can't import new pool that disappeared after reboot

Postby jawbroken » Sun Feb 25, 2024 2:36 am

I always just use diskn with an unformatted disk, and it works as expected.
jawbroken
 
Posts: 64
Joined: Wed Apr 01, 2015 4:46 am

Re: can't import new pool that disappeared after reboot

Postby kgreene » Sun Feb 25, 2024 5:44 pm

I tried using gdisk to set the partition type to ZFS and then I tried importing. That did not work.

So, I used diskutil to format disk4 and disk5 as a zfs dataset (you can select the type in the dropdown).

I had to explicitly use zpool create on s2 on both disks but now it appears to work. It doesn't show up as a zfs type partition but it appears to align with the wiki page on making a bootable zfs disk (which I'm not planning on). There is a boot partition but I suppose there's no harm?

I can reboot and it appears to mount OK automatically now.

% zpool create -f -o ashift=12 -O normalization=formD -O compression=lz4 foo mirror disk4s2 disk5s2


diskutil output:

Code: Select all
/dev/disk4 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *4.0 TB     disk4
   1:                        EFI EFI                     209.7 MB   disk4s1
   2: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF               4.0 TB     disk4s2
   3:                 Apple_Boot Boot OS X               134.2 MB   disk4s3

/dev/disk5 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *4.0 TB     disk5
   1:                        EFI EFI                     209.7 MB   disk5s1
   2: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF               4.0 TB     disk5s2
   3:                 Apple_Boot Boot OS X               134.2 MB   disk5s3
kgreene
 
Posts: 19
Joined: Sun Jul 05, 2015 8:10 am

Previous

Return to General Help

Who is online

Users browsing this forum: No registered users and 117 guests