From nobody Thu Apr 06 21:07:00 2023 X-Original-To: questions@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 4PsvFr74NTz43N8C for ; Thu, 6 Apr 2023 21:07:12 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Received: from holgerdanske.com (holgerdanske.com [IPv6:2001:470:0:19b::b869:801b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "holgerdanske.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PsvFq65Wjz49kk for ; Thu, 6 Apr 2023 21:07:11 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=OE2L+U+R; spf=pass (mx1.freebsd.org: domain of dpchrist@holgerdanske.com designates 2001:470:0:19b::b869:801b as permitted sender) smtp.mailfrom=dpchrist@holgerdanske.com; dmarc=pass (policy=none) header.from=holgerdanske.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1680815220; bh=n2biKQAlqpX3eZKZTPbJ53t0723VzyZ/HbMzxeLhsok=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject:To: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=OE2L+U+RBZlMAFjG9tD+ZPqAwJit2FoqEoFppTIQjNKfJ+UUpWdhZj0pQjKwD7G5X lMIrVFmk1+sTO6OqfQAHF69ZIHucr3829jdaGBshs6egLkgo+2jD2AKFM+beWymU+u XZkTKD8ScjtQEfQJqCL5p1l03UxG6dM0JpIhgbacjyZziglXqJxpiwgJKFotYXCElY zZv5vb+ra0MSCeaub/whax22CbG8kQ5hnGyAxY9HdtD0xupAykrsB9dOnn+l3a7dF4 0bKUyWypMGc77JTNJTv/k2DFuHz2brNZ0uSr3rVnz313blYaLAMI/+jwC8/l6wqVFt FWRmTZC/OgEWRN9zdcgIuviWL4/u/KBfyH7ARt7uhKahkNgjN2eboYpTl2HxNEH6it K5Cm1dk5Ym6qDMRs+AFdGnf/BKhxTGdRA7KIbbD/omm3A+D61/ovT/hjG58NollLZS F0Q/n2hTgmg5CJZFrV6t+aP/FYWHmNEqWQi4IRXKCpoTKjVkJJNDSFqErkSCbCF+wk AGhPaCDOKwxSJZoxHQxtLuR5LldYqGHZimctE46VfquiW372yBtqUhvuvxdYkG4zRl bHEAqTNylFhtpmCLT4EeoqBkfuCALmF7gkuzCc7OPZURpvHEmTqjeNOYT/bC+dk89Y 1RU44pDCajHGTSAFIMAxnY0E= Received: from 99.100.19.101 (99-100-19-101.lightspeed.frokca.sbcglobal.net [99.100.19.101]) by holgerdanske.com with ESMTPSA (TLS_AES_128_GCM_SHA256:TLSv1.3:Kx=any:Au=any:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username dpchrist@holgerdanske.com, mechanism PLAIN) for ; Thu, 6 Apr 2023 14:07:00 -0700 Message-ID: <606cdaab-24f7-b0b5-6e4c-01072069bb14@holgerdanske.com> Date: Thu, 6 Apr 2023 14:07:00 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: Problems creating a zpool To: questions@freebsd.org References: <7e74cac6-7724-65bb-e3ef-20b73a825a99@milibyte.co.uk> Content-Language: en-US From: David Christensen In-Reply-To: <7e74cac6-7724-65bb-e3ef-20b73a825a99@milibyte.co.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; R_SPF_ALLOW(-0.20)[+a:november.he.net]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[holgerdanske.com:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MLMMJ_DEST(0.00)[questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4PsvFq65Wjz49kk X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On 4/6/23 12:57, Mike Clarke wrote: > I'm trying to restore my 13.1 system from an external drive. On 4/6/23 13:01, Mike Clarke wrote: > I'm trying to restore my 13.1 system from an external drive. > > So far I've booted into a livefs from a 13.1 bootable memory stick and > am attempting to create a new zpool with the command: > > root@:~ # zpool create -m none -O compress=on atime=off wdssd gpt/wdsys2 > > but I get this error message: > > "cannot open 'wdssd': no such device in /dev > must be a full path or shorthand device name" > > I've also tried /dev/gpt/wdsys2 and /dev/ada1p3 but with the same error. > > The device appears to have been created OK: > > root@:~ # gpart show -l ada1 > =>        40  1953525088  ada1  GPT  (932G) >           40        1024     1  wdboot2  (512K) >         1064        3032     2  wdefi2  (1.5M) >         4096  1953521032     3  wdsys2  (932G) > > root@:~ # gpart show  ada1 > =>        40  1953525088  ada1  GPT  (932G) >           40        1024     1  freebsd-boot  (512K) >         1064        3032     2  efi  (1.5M) >         4096  1953521032     3  freebsd-zfs  (932G) > > root@:~ # ls -l /dev/gpt/wdsys2 > crw-r-----  1 root  operator  0xcd Apr  6 18:37 /dev/gpt/wdsys2 > root@:~ # ls -l /dev/ada1p3 > crw-r-----  1 root  operator  0x9d Apr  6 18:37 /dev/ada1p3 > > But I'm unable to use it to create a pool named wdssd, what am I missing? The two posts above appear to be duplicates (?). When you say "restore", that implies backup. Please describe how you backed up your system. When you say "booted into a livefs from a 13.1 bootable memory stick", I assume you mean your computer is running a FreeBSD 13.1 RELEASE amd64 instance that is contained on a USB flash drive. Please describe the origin of the FreeBSD instance on the USB flash drive. That said, the `zfs create` command, above, appears to be missing an '-O' option identifier: # zpool create -m none -O compress=on -O atime=off wdssd gpt/wdsys2 ^^ (Programs can get confused when parsing options and arguments, and produce misleading error messages. Sometimes you have to look for other errors and fix them to get an accurate error message.) David