From owner-freebsd-arm@freebsd.org Sat Oct 26 10:58:51 2019 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 D025116B758 for ; Sat, 26 Oct 2019 10:58:51 +0000 (UTC) (envelope-from testcb00@gmail.com) Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 470dJV358kz424r for ; Sat, 26 Oct 2019 10:58:50 +0000 (UTC) (envelope-from testcb00@gmail.com) Received: by mail-vs1-xe2a.google.com with SMTP id b123so3237675vsb.5 for ; Sat, 26 Oct 2019 03:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=4B+p6Elz4FlnUxKdsazG9YAkitJ4re8F8DVquTMqMl4=; b=FTqRisqhMgd1sIKKQjDw5+5/Pt/eHc1bo3wXz8ov5i61XLC6BvxaAlV7l7LQN82BCV ipIiQIR+kdVygUWyudjaETlEl9tmzO/xodL9qWk8sVuVyePXKfCtFEPZwonPlzHs6uB6 xJayPndZeapysxu8+MgFVCD6zTYTIdKhdxZBZu2UeM+H3w+1hDqJ1JusMBsrzjYS+aQk dC9RpkFhzcMz5YsKrD7xo+JMAsfCmXoyBUYOmmnW3AN6d1wDe7gPrZxkK4UFbwOkajM7 hQfuLZxN7rqVc0e368n9q9AT3fmjxpxzCADLgoDZPt3vbuQS9hmnCpzJS5aN4H0PefG5 NStg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4B+p6Elz4FlnUxKdsazG9YAkitJ4re8F8DVquTMqMl4=; b=OliIrQl++0o0e2aVrFX5Xd3f2bLpkJh+CvDlZqSXxz5JtZx4BOTBZvvlbxp2JBFtn4 sdCcN4/byChrW14ccynyBPPdqjFuXChYrIKDeY2F9kW8Htg5dEk0f6f/HTegp7uk/yiQ 8/El+tuv4gs7Np10/90njiJvmMg0RfbF69kwFekKNAWToiP22078xorMZz6VkJMT8wDz 6DkkjmGVSVdL1yuEzYiLj/hPyoGbqii3OBPkOzWjzztu+cH8PI/AXZStMmsw/zPzWVYg igbXVhM7ki4IoCnlqJjpduAkv4XZzEeGozkwwJvq77wOzSu9vwqXKSiTkQYE+D2oKeGT Kcgw== X-Gm-Message-State: APjAAAXNas2KRc0yVbXNHvicUPL4xZZ6TTZFOmnVgEhKHgyQ4m898Icl hnhqR/MaUjHt4EHClMZQkoTUloWUsshs2pTxwQ4pFBZOV3t4sg== X-Google-Smtp-Source: APXvYqwEVzmc+4+7BFWUrudel75bFFqR11bG7yxg/Ld0B8RE2R5RZ9mEQyovKsJASL5DqT+hAtb+Cdc5go4FGOPIJk4= X-Received: by 2002:a67:db8a:: with SMTP id f10mr4542198vsk.7.1572087529021; Sat, 26 Oct 2019 03:58:49 -0700 (PDT) MIME-Version: 1.0 From: ro Ze Date: Sat, 26 Oct 2019 19:58:37 +0900 Message-ID: Subject: Is it possible to build a ZFS Raspberry Pi 3B/3B+/4 image? with other questions. To: freebsd-arm@freebsd.org X-Rspamd-Queue-Id: 470dJV358kz424r X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=FTqRisqh; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of testcb00@gmail.com designates 2607:f8b0:4864:20::e2a as permitted sender) smtp.mailfrom=testcb00@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(0.00)[ip: (-9.72), ipnet: 2607:f8b0::/32(-2.40), asn: 15169(-2.05), country: US(-0.05)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[a.2.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Oct 2019 10:58:51 -0000 Hi everyone, it is my first FreeBSD post. I am using FreeBSD 12.1-RC2 RPI3 image in my Raspberry Pi 3B+. I have a few experience on FreeNAS and I know the two system are not the same. On FreeNAS, there is a tool named iocage which is a FreeBSD Jail manager. Using the iocage, I am allowed to pass a dedicated network interface to the Jail via the vnet feature which is default supported in FreeBSD 12.0. With that feature, I have a idea of using FreeBSD Jail in my Raspberry Pi and I start to do this. Before flashing the image to SD card, I had downloaded x86 DVD and installed as a VM to learn the basic command in FreeBSD. Since the installation process allowed me to use ZFS as the root file system, I only had few trouble in installing the iocage and using the Jail with vnet. However, I found that the root file system of FreeBSD RPI3 image is UFS, which is not supported by iocage. This means that I will have to use another storage device to create a new zpool for iocage. Since Raspberry Pi doesn't have native SATA port and all it's USB ports are come from USB Hub, I believe that using iocage inside the USB will have a huge performance drop. However, to try the feature, I adopt this situation, create a USB zpool for iocage. I have build a zpool for Jail storage in another USB stick in my FreeNAS and I am now import the pool to my Raspberry Pi, and mount to the Jail. Question part. So, is there a way to build a ZFS image (zroot) so that I could use iocage natively in my SD card? I also learned that I could mount a ZFS file system (zpool) as nullfs to Jail but I don't know the difference between ZFS, zpool, dataset, zvol, nullfs. I think that ZFS is like NTFS in Windows or EXT4 in Linux. While zpool is like RAID but zpool itself is already ZFS formatted, normal RAID should be formatted after creating the RAID volume. And zvol is block storage while dataset is file storage like a folder. But I cannot understand the difference between zvol and dataset, and why I could mount a zpool as nullfs inside the Jail? ZFS and nullfs should be two different file system. Thank you to read this thread and sorry for my English as I am not a native user. Zero