ZFS problems on aarch64 (RockPro64)

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

ZFS problems on aarch64 (RockPro64)

Roman Zaynetdinov
Hi,

I am trying to set up a ZFS on my RockPro64. Unfortunately, I am not able to create a pool. Does this image use pre-OpenZFS ZFS version? Do you have any ideas what might be wrong here?

root@generic:~ # uname -v
FreeBSD 13.0-ALPHA1 #0 main-c255938-g7ae27c2d6c4: Thu Jan 14 08:05:14 UTC 2021     [hidden email] <mailto:[hidden email]>:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC

root@generic:~ # zfs version
zfs-0.8.0-1
zfs-kmod-0.8.0-1

root@generic:~ # zpool create -f -m /mnt/nas nas ada0
cannot zero first 4096 bytes of '/dev/ada0': Invalid argument

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)

P.S the same hard drive works just fine with my Windows machine.

- Roman
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: ZFS problems on aarch64 (RockPro64)

freebsd-arm mailing list
On 2021-Jan-15 21:29:42 +0200, Roman Zaynetdinov <[hidden email]> 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 (981 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ZFS problems on aarch64 (RockPro64)

Roman Zaynetdinov
Thanks for the suggestions! Sadly, I am seeing exact same error no matter how I write.

root@generic:~ # zpool create -f -m /mnt/nas nas ada0p1
cannot zero first 4096 bytes of '/dev/ada0p1': Invalid argument

root@generic:~ # gpart destroy -F ada0
ada0 destroyed
root@generic:~ # gpart show ada0
gpart: No such geom: ada0.

root@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@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 <[hidden email]> wrote:
>
> On 2021-Jan-15 21:29:42 +0200, Roman Zaynetdinov <[hidden email]> 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

_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: ZFS problems on aarch64 (RockPro64)

Andrey Fesenko
On Sat, Jan 16, 2021 at 10:46 AM Roman Zaynetdinov <[hidden email]> wrote:
> >
> > On 2021-Jan-15 21:29:42 +0200, Roman Zaynetdinov <[hidden email]> wrote:
> >> root@generic:~ # zpool create -f -m /mnt/nas nas ada0
> >> cannot zero first 4096 bytes of '/dev/ada0': Invalid argument
> >

I saw a similar problem in the same way, unfortunately, this platform
(Kunpeng 920, Huawei Taishan 2280 V2) is no longer available to me for
tests

(da9:mrsas0:1:9:0): Ecannot zero first 4096 bytes of '/dev/da9p1':
Input/output error

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251171#c10
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: ZFS problems on aarch64 (RockPro64)

SleepWalker
The problem is confirmed tested today on the Kobol Helios64 RK3399 NAS.

root@helios64:~ # gpart delete -i 4 ada0
ada0p4 deleted
root@helios64:~ # gpart add -t freebsd-zfs ada0
ada0p4 added
root@helios64:~ # zpool create -f -m /mnt/sata tank-sata /dev/ada0p4
ahcich0: DMA load error
(ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 08 00 10 02 40 09 00 00 00 00 00
(ada0:ahcich0:0:0:0): CAM status: CCB request was invalid
(ada0:ahcich0:0:0:0): Error 22, Unretryable error
cannot zero first 4096 bytes of '/dev/ada0p4': Invalid argument
root@helios64:~ # uname -aUK
FreeBSD helios64 13.0-CURRENT FreeBSD 13.0-CURRENT #0 de1aa3dab23c-c528909(master): Sat Jan  9 17:54:57 MSK 2021     [hidden email]:/usr/crochet/work/obj/usr/crochet/src/arm64.aarch64/sys/EXPERT-13  arm64 1300132 1300131
root@helios64:~ # zpool list -v
NAME          SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
media        9.09T  1007G  8.11T        -         -     0%    10%  1.00x    ONLINE  -
  gpt/disk3  9.09T  1007G  8.11T        -         -     0%  10.8%      -  ONLINE  
tank-emmc    14.5G   126K  14.5G        -         -     0%     0%  1.00x    ONLINE  -
  mmcsd1p1   14.5G   126K  14.5G        -         -     0%  0.00%      -  ONLINE  
tank-usb     14.5G   126K  14.5G        -         -     0%     0%  1.00x    ONLINE  -
  da0p1      14.5G   126K  14.5G        -         -     0%  0.00%      -  ONLINE  
zboot        63.5G  2.47G  61.0G        -         -    17%     3%  1.00x    ONLINE  -
  ada0p3     63.5G  2.47G  61.0G        -         -    17%  3.89%      -  ONLINE  
root@helios64:~ #

Pools on ada0 were created 4 months ago. And they worked perfectly.

On USB and eMMC everything works without errors even now.


Sergei Tyryukanov


> 16 янв. 2021 г., в 11:01, Andrey Fesenko <[hidden email]> написал(а):
>
> I saw a similar problem in the same way, unfortunately, this platform
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: ZFS problems on aarch64 (RockPro64)

Michal Meloun-3


On 16.01.2021 12:12, Sleep Walker wrote:
> The problem is confirmed tested today on the Kobol Helios64 RK3399 NAS.
>
Can you, please, test the following patch?
> https://github.com/strejda/freebsd/commit/f6f7fbcb1c799504585ab6213c163b491fec4e87


Thanks,
Michal

> root@helios64:~ # gpart delete -i 4 ada0
> ada0p4 deleted
> root@helios64:~ # gpart add -t freebsd-zfs ada0
> ada0p4 added
> root@helios64:~ # zpool create -f -m /mnt/sata tank-sata /dev/ada0p4
> ahcich0: DMA load error
> (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 08 00 10 02 40 09 00 00 00 00 00
> (ada0:ahcich0:0:0:0): CAM status: CCB request was invalid
> (ada0:ahcich0:0:0:0): Error 22, Unretryable error
> cannot zero first 4096 bytes of '/dev/ada0p4': Invalid argument
> root@helios64:~ # uname -aUK
> FreeBSD helios64 13.0-CURRENT FreeBSD 13.0-CURRENT #0 de1aa3dab23c-c528909(master): Sat Jan  9 17:54:57 MSK 2021     [hidden email]:/usr/crochet/work/obj/usr/crochet/src/arm64.aarch64/sys/EXPERT-13  arm64 1300132 1300131
> root@helios64:~ # zpool list -v
> NAME          SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
> media        9.09T  1007G  8.11T        -         -     0%    10%  1.00x    ONLINE  -
>    gpt/disk3  9.09T  1007G  8.11T        -         -     0%  10.8%      -  ONLINE
> tank-emmc    14.5G   126K  14.5G        -         -     0%     0%  1.00x    ONLINE  -
>    mmcsd1p1   14.5G   126K  14.5G        -         -     0%  0.00%      -  ONLINE
> tank-usb     14.5G   126K  14.5G        -         -     0%     0%  1.00x    ONLINE  -
>    da0p1      14.5G   126K  14.5G        -         -     0%  0.00%      -  ONLINE
> zboot        63.5G  2.47G  61.0G        -         -    17%     3%  1.00x    ONLINE  -
>    ada0p3     63.5G  2.47G  61.0G        -         -    17%  3.89%      -  ONLINE
> root@helios64:~ #
>
> Pools on ada0 were created 4 months ago. And they worked perfectly.
>
> On USB and eMMC everything works without errors even now.
>
> —
> Sergei Tyryukanov
>
>
>> 16 янв. 2021 г., в 11:01, Andrey Fesenko <[hidden email]> написал(а):
>>
>> I saw a similar problem in the same way, unfortunately, this platform
> _______________________________________________
> [hidden email] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "[hidden email]"
>
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: ZFS problems on aarch64 (RockPro64)

SleepWalker
Thanks, this patch helped everything works, pools are created

Отправлено с iPad

> 16 янв. 2021 г., в 16:47, Michal Meloun <[hidden email]> написал(а):
>
> 
>
>> On 16.01.2021 12:12, Sleep Walker wrote:
>> The problem is confirmed tested today on the Kobol Helios64 RK3399 NAS.
> Can you, please, test the following patch?
>> https://github.com/strejda/freebsd/commit/f6f7fbcb1c799504585ab6213c163b491fec4e87
>
>
> Thanks,
> Michal
>> root@helios64:~ # gpart delete -i 4 ada0
>> ada0p4 deleted
>> root@helios64:~ # gpart add -t freebsd-zfs ada0
>> ada0p4 added
>> root@helios64:~ # zpool create -f -m /mnt/sata tank-sata /dev/ada0p4
>> ahcich0: DMA load error
>> (ada0:ahcich0:0:0:0): WRITE_FPDMA_QUEUED. ACB: 61 08 00 10 02 40 09 00 00 00 00 00
>> (ada0:ahcich0:0:0:0): CAM status: CCB request was invalid
>> (ada0:ahcich0:0:0:0): Error 22, Unretryable error
>> cannot zero first 4096 bytes of '/dev/ada0p4': Invalid argument
>> root@helios64:~ # uname -aUK
>> FreeBSD helios64 13.0-CURRENT FreeBSD 13.0-CURRENT #0 de1aa3dab23c-c528909(master): Sat Jan  9 17:54:57 MSK 2021     [hidden email]:/usr/crochet/work/obj/usr/crochet/src/arm64.aarch64/sys/EXPERT-13  arm64 1300132 1300131
>> root@helios64:~ # zpool list -v
>> NAME          SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
>> media        9.09T  1007G  8.11T        -         -     0%    10%  1.00x    ONLINE  -
>>   gpt/disk3  9.09T  1007G  8.11T        -         -     0%  10.8%      -  ONLINE
>> tank-emmc    14.5G   126K  14.5G        -         -     0%     0%  1.00x    ONLINE  -
>>   mmcsd1p1   14.5G   126K  14.5G        -         -     0%  0.00%      -  ONLINE
>> tank-usb     14.5G   126K  14.5G        -         -     0%     0%  1.00x    ONLINE  -
>>   da0p1      14.5G   126K  14.5G        -         -     0%  0.00%      -  ONLINE
>> zboot        63.5G  2.47G  61.0G        -         -    17%     3%  1.00x    ONLINE  -
>>   ada0p3     63.5G  2.47G  61.0G        -         -    17%  3.89%      -  ONLINE
>> root@helios64:~ #
>> Pools on ada0 were created 4 months ago. And they worked perfectly.
>> On USB and eMMC everything works without errors even now.
>> —
>> Sergei Tyryukanov
>>>> 16 янв. 2021 г., в 11:01, Andrey Fesenko <[hidden email]> написал(а):
>>>
>>> I saw a similar problem in the same way, unfortunately, this platform
>> _______________________________________________
>> [hidden email] mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
>> To unsubscribe, send any mail to "[hidden email]"
> _______________________________________________
> [hidden email] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "[hidden email]"
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[hidden email]"