Now I've created a new pool on another drive, changed its type to bf01, exported it and here's what I get:
- Code: Select all
sh-3.2# zpool create -f -o ashift=13 -O compression=lz4 -O casesensitivity=insensitive -O atime=off -O normalization=formD Test /dev/disk2s3
sh-3.2# gdisk -l /dev/disk2
GPT fdisk (gdisk) version 1.0.3
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/disk2: 250069680 sectors, 119.2 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): BB4B7164-986C-49CD-ADB1-B6D4C92666C9
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 250069646
Partitions will be aligned on 8-sector boundaries
Total free space is 1048589 sectors (512.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 78534639 37.3 GiB AF00 Sans titre
3 78796784 125108567 22.1 GiB AF00 Test
4 125370712 187870711 29.8 GiB AF00 MojoSan 2
5 188132856 249807495 29.4 GiB AF00 ELCAP San 2
sh-3.2# gdisk /dev/disk2
GPT fdisk (gdisk) version 1.0.3
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): t
Partition number (1-5): 3
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): bf01
Changed type of partition to 'Solaris /usr & Mac ZFS'
Command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/disk2.
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Warning: The kernel may continue to use old or deleted partitions.
You should reboot or remove the drive.
The operation has completed successfully.
sh-3.2# gdisk -l /dev/disk2
GPT fdisk (gdisk) version 1.0.3
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/disk2: 250069680 sectors, 119.2 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): BB4B7164-986C-49CD-ADB1-B6D4C92666C9
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 250069646
Partitions will be aligned on 8-sector boundaries
Total free space is 1048589 sectors (512.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 78534639 37.3 GiB AF00 Sans titre
3 78796784 125108567 22.1 GiB BF01 Test
4 125370712 187870711 29.8 GiB AF00 MojoSan 2
5 188132856 249807495 29.4 GiB AF00 ELCAP San 2
sh-3.2# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
Test 22G 2.56M 22.0G - - 0% 0% 1.00x ONLINE -
sh-3.2# zpool export Test
disk3s1 was already unmounted
sh-3.2# zpool import
Segmentation fault: 11
There appears to be some confusion between drives! As you see, I've created the pool on Disk2 and it says "disk3s1 was already unmounted" when I export it... (and there's no disk3, actually)
Couldn't it be because of the HFS/ZFS/HFS sandwich? May be it works ok with a full drive, that's why you don't have this issue? At the moment, I have no free drive to make the test.