Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jan 2021 12:18:48 +1100
From:      Peter Jeremy <peter@rulingia.com>
To:        Roman Zaynetdinov <a@zaynetro.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: ZFS problems on aarch64 (RockPro64)
Message-ID:  <YAI%2B9/YPXQLJ8gTN@server.rulingia.com>
In-Reply-To: <9A222485-8B10-4824-819D-420BB458482D@zaynetro.com>
References:  <9A222485-8B10-4824-819D-420BB458482D@zaynetro.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--PNZlU0d0cXUn6xwj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2021-Jan-15 21:29:42 +0200, Roman Zaynetdinov <a@zaynetro.com> 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
>=3D>        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

--=20
Peter Jeremy

--PNZlU0d0cXUn6xwj
Content-Type: application/pgp-signature; name="signature.asc"

-----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-----

--PNZlU0d0cXUn6xwj--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YAI%2B9/YPXQLJ8gTN>