ZFS problems on aarch64 (RockPro64)
Roman Zaynetdinov
a at zaynetro.com
Sat Jan 16 07:46:14 UTC 2021
Thanks for the suggestions! Sadly, I am seeing exact same error no matter how I write.
root at generic:~ # zpool create -f -m /mnt/nas nas ada0p1
cannot zero first 4096 bytes of '/dev/ada0p1': Invalid argument
root at generic:~ # gpart destroy -F ada0
ada0 destroyed
root at generic:~ # gpart show ada0
gpart: No such geom: ada0.
root at generic:~ # zpool create -f -m /mnt/nas nas ada0
cannot zero first 4096 bytes of '/dev/ada0': Invalid argument
A wicked thing is that if I follow a guide from the handbook on adding a new disk it will fail to do so also.
root at generic:~ # newfs -U /dev/ada0
/dev/ada0: 3815447.8MB (7814037168 sectors) block size 32768, fragment size 4096
using 6103 cylinder groups of 625.22MB, 20007 blks, 80128 inodes.
newfs: sbwrite: failed to write superblock: Input/output error
- Roman
> On 16. Jan 2021, at 3.18, Peter Jeremy <peter at rulingia.com> wrote:
>
> On 2021-Jan-15 21:29:42 +0200, Roman Zaynetdinov <a at zaynetro.com> wrote:
>> root at generic:~ # zpool create -f -m /mnt/nas nas ada0
>> cannot zero first 4096 bytes of '/dev/ada0': Invalid argument
>
> This shows you trying to create a pool on /dev/ada0 - since ada0
> is already partitioned, this is blocking writes to the raw disk
> that would overwrite the partitioning layout.
>
>> root at generic:~ # gpart show ada0
>> => 34 7814037101 ada0 GPT (3.6T)
>> 34 6 - free - (3.0K)
>> 40 7814037088 1 freebsd-zfs (3.6T)
>> 7814037128 7 - free - (3.5K)
>
> This shows that you have prepared /dev/ada0p1 to contain a ZFS pool.
>
> Try changing your create command to:
> # zpool create -f -m /mnt/nas nas ada0p1
>
> --
> Peter Jeremy
More information about the freebsd-arm
mailing list