From nobody Sun Nov 17 16:47:02 2024 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XrxW82b1Rz5d73m for ; Sun, 17 Nov 2024 16:47:16 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XrxW75TNjz4c70 for ; Sun, 17 Nov 2024 16:47:15 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a9ee097a478so107335466b.2 for ; Sun, 17 Nov 2024 08:47:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731862034; x=1732466834; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fQ4jA+pocd07oPF4ptyVlz6ZtuWq/aWEr7c81WcadUU=; b=xCf76bTsGwUPMqUldJDrIUt0qOuhcUG33JpeSbbgO7eJrpJdQ/xomhhwuFC8DfCITW E3M+8zhHqz4/cQWjiVbHwFHc7BPcaDJvNeT1DR3tA2YGTHlPLQWgVNjEhRfTj+cL4pKW spHe6UxdauhS9cF4HnX+x31TV4xc7OIKXfh+qIJpM3Qrc9HCVmYhzfCTgdE3eP4UPHvk 7XS/8m+hFNloxPEENElCRFkITCN5tQyk0KcxIUgNT7hFBRhuSk6rG1rZm7VIcq5539YP jalyzRCgHyBUfkLruDNUx7R0tdk7jSGzIQCpOlgYtO/eErGUeEq+p5S2zILvpGdsQB8S XbOw== X-Gm-Message-State: AOJu0YzRCXkZymeFp7OP93C+KOkUH9b0tAxMphTT1T5khAk35ldInjPC CIxbMM7o/g24kKvCiG9iadyVipnmcwZNX1Ao75qlOS0gJITc/rDGms+DmqFojft9jsYICppPMJy Oz8wOkwTJ+G+KFjOzR2Hk1lbwS2re7w== X-Google-Smtp-Source: AGHT+IF6GasJjGWajF7Zzl1cVWAaI+IStaHMArvvW4ukR5pssSPwZlgW/sUQ4MGUTi2nigLv4TJiR9WvKLTiPkR5B84= X-Received: by 2002:a05:6402:3512:b0:5ce:de19:472a with SMTP id 4fb4d7f45d1cf-5cf8fcdcc9fmr10895798a12.16.1731862033871; Sun, 17 Nov 2024 08:47:13 -0800 (PST) List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@FreeBSD.org MIME-Version: 1.0 References: <4a0983b2-04f2-4489-a37c-6d4c71603606@yeah.net> In-Reply-To: <4a0983b2-04f2-4489-a37c-6d4c71603606@yeah.net> From: Alan Somers Date: Sun, 17 Nov 2024 09:47:02 -0700 Message-ID: Subject: Re: `zpool list` return No such file or directory To: Jinsong Zhao Cc: freebsd-fs@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4XrxW75TNjz4c70 X-Spamd-Bar: ---- On Sun, Nov 17, 2024 at 6:33=E2=80=AFAM Jinsong Zhao wrot= e: > > Hi there, > > I have successfully installed FreeBSD 14.1 root on ZFS using GPT with > VirtualBox. Now I tried to migrate the whole system to a new disk: > > > zfs snapshot E580/ROOT/fb14@today > > zpool create test /dev/ada1p2 > > zfs send -R E580/ROOT/fb14@today | zfs receive test/fb14 > > All done successfully. > > After that, I tried to list all pools using > > zpool list > > It came back: > > No such file or directory This should be impossible, unless there are some steps missing. Is this on the system with E580 or ada1p2? Did you reboot after the "zfs receive" but before the "zpool list"? If so, you need to do a "zpool import". If you want that to happen automatically, you need to add "zfs_enable=3DYES" to /etc/rc.conf . > > I tried other zfs related commands, all give the same return. > > Now, I reboot the whole system, I can not even enter the system. If you are trying to create a second zfs-root system, based on copying the file system from an already-working system, you left out a few steps: * You only send/received a single boot environment, but there's more to the pool than that. You should do something more like "zfs send -R E580@today | zfs receive -F test" * You need to set the bootable fs with "zfs set bootfs=3Dtest/ROOT/fb14 tes= t" * You didn't install the bootloader onto ada1p1. The details of how to do that vary based on whether you are booting with EFI or BIOS. > > What's the problem? I cannot find any hints with zpool/zfs man page. > > > Best, > > Jinsong > > >