Re: ZFS problems on aarch64 (RockPro64)

Peter Jeremy via freebsd-arm <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <YAI+9/[email protected]>
On 2021-Jan-15 21:29:42 +0200, Roman Zaynetdinov <[email protected]> wrote:
>root@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@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
signature.asc (application/pgp-signature, 963 B)
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAmACPulfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF
QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi
CzTxxA//RNcwfyqKnx50pBiuhZ0CiFhDZI1P+MOVPfLPn2iL38Va5nL69WdPGVXm
zBqsE8AdaorcFh5753mDU9FZr+zzxGwi2A6bOI3yjrnR0yubUsVWgkco+j1iGpmB
liAY9ShVdXN+HNrYHPXhoCxXlHVpCHvDIpylV/nJv+S2jL4PWhPiWCHgd3d/RyKJ
YuHKnQsobUlmIsp/akk/M/PBUckdusC0rUJCPmGfOEOEErJ5FQFypVpnF6xDpNZn
/u+yEN9rj9H6VX3H0qxENH0QFkK2+A92eSWxB6eifRxt+vU+6ubFInmAXreGgdpu
WzjrNSW2yugAWVg3LVuLBaeUS5rh1NbGFUakJcK/W8gRk0+vza89ttXY+X+PIkdS
TbV5n8WmnKJ+ANX83EB+L5URCJi7BkXbGd5KPQpmOeBZpgbV9+MKBVuH5jhDWriV
AA5NYs2+HeDXkWXpNOIWX8BFMCdjBk1i0wPmJJvfbsEGrDjRfTtQ4+o6G9eJI13s
mC65lPT0bCrCoDHqTnbfdWT7JBAUiRCZwmZ6422gW4f/4aT3NzeABtE5PEe/EN7s
V2CTsx3KgMlGKrwNy/jxs3KxiNDgAIAUkpmf0/RSy5flASDVA6y1Y3snquqW53ap
rscA8rPH1tyKYg7FN9BG+P8hNY6d4/XvHVjKoUE5gHBcSqI0K1Q=
=1Pcm
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.