From owner-freebsd-arm@freebsd.org Sat Jan 16 07:46:14 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B08954D70D5 for ; Sat, 16 Jan 2021 07:46:14 +0000 (UTC) (envelope-from a@zaynetro.com) Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [80.241.56.161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DHqqT2qtdz3FmX for ; Sat, 16 Jan 2021 07:46:12 +0000 (UTC) (envelope-from a@zaynetro.com) Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4DHqqP2dHDzQlRV; Sat, 16 Jan 2021 08:46:09 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zaynetro.com; s=MBO0001; t=1610783167; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BI1Tm/adCQbHSYNFKV+EqvhXHyYzbcIaA4tm02aa7iU=; b=PhauiH74WuHx6saBQw4nSmymoR6SSHeMoXZfx7H6RlfuxjG8sMTE5iptJnZvc88p1djCTX qullliKQBPUL5gNlw4vMCd1nCFfScooBAeuqIeXZ2ZwZq0jc4Z4HUAvRcxYrR0W3WiF7DY UbZ4wjir0vnyHN/+fsLOw8be+FWNHEx0o8t2ha7oE1DMbVnKca5yTeBqYOt5L1o2AQDPaw HiDYzvAOwONIMipNjG4ZsmknqXwXaNqqd1P/GGb2BH/6HdCsm2ughfvpoCFjlexObQoFWs giTy6pjkJM8hWiwyDiFC0eRCafSgOIRMaedOXZd6vj9ykmQ6yORXS8O0AeAj1A== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id Ta8EE5nvDVrZ; Sat, 16 Jan 2021 08:46:03 +0100 (CET) From: Roman Zaynetdinov Message-Id: <4380B211-E15A-4AB9-BCC0-ABB1332CDBEA@zaynetro.com> Mime-Version: 1.0 Subject: Re: ZFS problems on aarch64 (RockPro64) Date: Sat, 16 Jan 2021 09:46:02 +0200 In-Reply-To: Cc: freebsd-arm@freebsd.org To: Peter Jeremy References: <9A222485-8B10-4824-819D-420BB458482D@zaynetro.com> X-MBO-SPAM-Probability: X-Rspamd-Score: -1.41 / 15.00 / 15.00 X-Rspamd-UID: e3705c X-Rspamd-Queue-Id: 4DHqqT2qtdz3FmX X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zaynetro.com header.s=MBO0001 header.b=PhauiH74; dmarc=none; spf=none (mx1.freebsd.org: domain of a@zaynetro.com has no SPF policy when checking 80.241.56.161) smtp.mailfrom=a@zaynetro.com X-Spamd-Result: default: False [-1.90 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[80.241.56.161:from]; R_DKIM_ALLOW(-0.20)[zaynetro.com:s=MBO0001]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DMARC_NA(0.00)[zaynetro.com]; SPAMHAUS_ZRD(0.00)[80.241.56.161:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[zaynetro.com:+]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:199118, ipnet:80.241.56.0/21, country:DE]; MAILMAN_DEST(0.00)[freebsd-arm]; RCVD_IN_DNSWL_LOW(-0.10)[80.241.56.161:from] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jan 2021 07:46:14 -0000 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 wrote: >=20 > On 2021-Jan-15 21:29:42 +0200, Roman Zaynetdinov = wrote: >> root@generic:~ # zpool create -f -m /mnt/nas nas ada0 >> cannot zero first 4096 bytes of '/dev/ada0': Invalid argument >=20 > 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. >=20 >> 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) >=20 > This shows that you have prepared /dev/ada0p1 to contain a ZFS pool. >=20 > Try changing your create command to: > # zpool create -f -m /mnt/nas nas ada0p1 >=20 > --=20 > Peter Jeremy