From nobody Wed Jul 5 06:53:21 2023 X-Original-To: current@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 4Qwr3927syz4m2T9 for ; Wed, 5 Jul 2023 06:53:25 +0000 (UTC) (envelope-from agh@riseup.net) Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx0.riseup.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qwr382tDyz3Pvv for ; Wed, 5 Jul 2023 06:53:24 +0000 (UTC) (envelope-from agh@riseup.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b=UUp2j8ld; spf=pass (mx1.freebsd.org: domain of agh@riseup.net designates 198.252.153.6 as permitted sender) smtp.mailfrom=agh@riseup.net; dmarc=pass (policy=none) header.from=riseup.net Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4Qwr361pGnz9tMZ for ; Wed, 5 Jul 2023 06:53:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1688540002; bh=tmbJLBP1znfOfizo7Tx4Ce/acH18CEHdRJfzq2vLtEE=; h=Date:From:To:Subject:From; b=UUp2j8ldRc6WSJxeuz2RvlnZu1cMQzxX3AWl49kt/sUHpHy0PF5c4j5tiAdGfUeZN 2j6wESxkdC67RYJbdwTN5c6JzPUts49zy2w5FafYJNtTE8txfwlbcuBsQFoWYB1gjV gWJEV0un8s/zQQWPoNdIJ9vUgjsRnjZjNJ/P0dpM= X-Riseup-User-ID: DE2F08D5EB333190A307ADC1222A6FEA045D7563DED2B4FCD3D2023D1D07BB13 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4Qwr360KrzzFrxt for ; Wed, 5 Jul 2023 06:53:22 +0000 (UTC) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Date: Wed, 05 Jul 2023 06:53:21 +0000 From: Alastair Hogge To: current@freebsd.org Subject: Lost glabel provider for GELI consumer/storage Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.05 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-0.95)[-0.955]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; R_SPF_ALLOW(-0.20)[+a:mx0.riseup.net]; R_DKIM_ALLOW(-0.20)[riseup.net:s=squak]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[198.252.153.6:from]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BLOCKLISTDE_FAIL(0.00)[198.252.153.6:server fail]; MLMMJ_DEST(0.00)[current@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[riseup.net:dkim]; RWL_MAILSPIKE_POSSIBLE(0.00)[198.252.153.6:from]; DKIM_TRACE(0.00)[riseup.net:+]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4Qwr382tDyz3Pvv X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N Hello, I have a NFS host that exports one GELI UFS from a stripe of some number of mirrored disks, all GEOM. While replacing a disk in this RAID—far too tired and late one night—I was playing with gcache, adding/removing one gcache device starting at a time to the gmirrors, and then the gstripe. When I was adding a gcache device to the gstripe I accidentally used 'label' (hardcoded metadata on the storage) instead of 'create' on the gstrip: # gcache label -v -b128K -s 1024 cache-test strip/fafnir_graid10 Now unfortunately, the glabel that sits on top of the gstripe, has disappeared. This now results in GELI unable to locate the glabel, and attach. Removing gcache make no difference: # gcache stop -fv cache-test The boot log: /dev/label/fafnir_encfs: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/label/fafnir_encfs: clean, 24114894 free (10902 frags, 3012999 blocks, 0.0% fragmentation) Can't stat /dev/label/fafnir_exportfs.eli: No such file or directory THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY: ufs: /dev/label/fafnir_exportfs.eli (/exports) Unknown error 3; help! ERROR: ABORTING BOOT (sending SIGTERM to parent)! Is it possible to restore the glabel for consumption by GELI? I have some backups, going by the filename they might be relevant, tho, I am unsure how to proceed, or if this is possible. To health and anarchy, Alastair