From nobody Wed Aug 4 19:10:00 2021 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 4621A137A0D5 for ; Wed, 4 Aug 2021 19:10:21 +0000 (UTC) (envelope-from joe@via.net) Received: from smtp4.via.net (smtp4.via.net [209.81.0.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "via.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gg1XX1SRzz4mbP for ; Wed, 4 Aug 2021 19:10:20 +0000 (UTC) (envelope-from joe@via.net) Received: from mail.via.net (mail.via.net [157.22.3.34]) by smtp4.via.net (8.15.2/8.14.1-VIANET) with ESMTPS id 174JABZf021711 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 4 Aug 2021 12:10:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at smtp4.via.net Received: from [209.81.2.65] ([209.81.2.65]) by mail.via.net (8.15.2/8.14.1-VIANET) with ESMTP id 174JABjM022787 for ; Wed, 4 Aug 2021 12:10:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail.via.net From: joe mcguckin Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: SATA/SAS commands Message-Id: <53137D89-3405-4F2D-AE6A-46AC665F52F9@via.net> Date: Wed, 4 Aug 2021 12:10:00 -0700 To: freebsd-fs X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (smtp4.via.net [209.81.0.254]); Wed, 04 Aug 2021 12:10:12 -0700 (PDT) X-Rspamd-Queue-Id: 4Gg1XX1SRzz4mbP X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of joe@via.net designates 209.81.0.254 as permitted sender) smtp.mailfrom=joe@via.net X-Spamd-Result: default: False [-2.80 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[joe]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; DMARC_NA(0.00)[via.net]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+MX]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7091, ipnet:209.81.0.0/18, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Is there a tool that allows sending bare scsi commands to a drive? For = example, if I wanted to activate the drive=E2=80=99s erase or format = feature or pull logs, etc. Or, is there something close enough that I could modify? Thanks, Joe Joe McGuckin ViaNet Communications joe@via.net 650-207-0372 cell 650-213-1302 office 650-969-2124 fax From nobody Wed Aug 4 19:14:20 2021 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 DA899137A92B for ; Wed, 4 Aug 2021 19:14:21 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [IPv6:2607:f3e0:0:3::19]) (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 "pyroxene.sentex.ca", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gg1d94DHFz4n8J for ; Wed, 4 Aug 2021 19:14:21 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:91c3:756d:6073:1b6] ([IPv6:2607:f3e0:0:4:91c3:756d:6073:1b6]) by pyroxene2a.sentex.ca (8.16.1/8.15.2) with ESMTPS id 174JEK02033427 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Wed, 4 Aug 2021 15:14:20 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: SATA/SAS commands To: joe mcguckin , freebsd-fs References: <53137D89-3405-4F2D-AE6A-46AC665F52F9@via.net> From: mike tancsa Message-ID: Date: Wed, 4 Aug 2021 15:14:20 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 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 In-Reply-To: <53137D89-3405-4F2D-AE6A-46AC665F52F9@via.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4Gg1d94DHFz4n8J X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On 8/4/2021 3:10 PM, joe mcguckin wrote: > Is there a tool that allows sending bare scsi commands to a drive? For example, if I wanted to activate the drive’s erase or format feature or pull logs, etc. > Or, is there something close enough that I could modify? > Try camcontrol and see if it does what you need     ---Mike From nobody Wed Aug 4 19:19:19 2021 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 4AB58137AFD7 for ; Wed, 4 Aug 2021 19:19:31 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (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 "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gg1l71Tthz4ntg for ; Wed, 4 Aug 2021 19:19:31 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x736.google.com with SMTP id f12so2664696qkh.10 for ; Wed, 04 Aug 2021 12:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MasNqGtaLvP+ChjYgfWKK1idWdvdwAItBQVLYOtIWlk=; b=MlmbvoAtCRgXAf6tbXhecBLDj09puSog98I108JDHujbu3ce9DpUyn2gKPAJsW1/vc QkTg/Uq9k6mN3ir/47Fqztf1eEFSAj9UmSFtNay1XsaGj5fot2x+rYfrmjFZfk9Da4dj YTKI3chVb02s9uPoeJ97Etyn+PU6SrzTZIoatjkH90XG8fsh+hJTAVGp4lIbYn0lngZz hXtahfWYup00YO9tHE9XCs4PIyo4Z2Ve5njdqK4P/JGu1RLy9b4xJkC5ZX/oYXMl9XCq jdcrD5ozKeH/Z4UeE97t/q6alTYRPF9iik+qPHLquLI6mubBxB0nTr13GYoUe8ZksRRj Z5Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MasNqGtaLvP+ChjYgfWKK1idWdvdwAItBQVLYOtIWlk=; b=B02UKesPHUSUDkfUMdHu0tAYhxUCX+oZ6UtMqkcuhRSnmr8YRpd7EyFF6KhAf+AjB9 Isusrph+gUmMkYNBRVjpdQ00rXcP8iAhIv/VLEe1cjXvdOTvNR4t+f9v0kxljW+57Kf4 ox4omFWdwVENA0Fxr0V0yn4RV8ObS76gbqfjLGrh4k8ZCNr8JS0i7Ds31JqEqbwkxjXb vxRyDcDt7SrxJaTgWl+A/sRbrZk52/ajUfE1jENs6xWKL7hwzdby58Co1so1pRBS6lG0 AlQSyYKvWEW3HdaST6Dy2WLQwjjz6vUanGeZbLV8cMBbZaYLT9bgpPJ3fLeozTr8VOIg XNIQ== X-Gm-Message-State: AOAM532qCk3ur3V6ET9Foh1w+hOuRt23CSRuO1VQ3+nymlf+d5yLTRfT C8PUzd3eWrhWRTK4PBstGGh3kUcY3S0UbvtBAbwtug== X-Google-Smtp-Source: ABdhPJwOZazBauI7/ftydzCVb5prIZnxhRXlJsws9Q8reLgRfJk3AvwExuk1likhE4ComhuI9q3JgwNGBVMv3vJgcZc= X-Received: by 2002:a05:620a:5f6:: with SMTP id z22mr979622qkg.195.1628104770493; Wed, 04 Aug 2021 12:19:30 -0700 (PDT) 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: <53137D89-3405-4F2D-AE6A-46AC665F52F9@via.net> In-Reply-To: <53137D89-3405-4F2D-AE6A-46AC665F52F9@via.net> From: Warner Losh Date: Wed, 4 Aug 2021 13:19:19 -0600 Message-ID: Subject: Re: SATA/SAS commands To: joe mcguckin Cc: freebsd-fs Content-Type: multipart/alternative; boundary="00000000000080b4df05c8c0aed9" X-Rspamd-Queue-Id: 4Gg1l71Tthz4ntg X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --00000000000080b4df05c8c0aed9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Aug 4, 2021 at 1:10 PM joe mcguckin wrote: > Is there a tool that allows sending bare scsi commands to a drive? For > example, if I wanted to activate the drive=E2=80=99s erase or format fea= ture or > pull logs, etc. > Or, is there something close enough that I could modify? > camcontrol cmd is what I usually use, but it's quite low level. I've used it to write shell scripts to pull logs from $VENDOR. But sg3_utils makes most things a lot easier if you're pulling a standard log. Warner --00000000000080b4df05c8c0aed9-- From nobody Wed Aug 4 19:26:29 2021 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 3D1BF137BE0F for ; Wed, 4 Aug 2021 19:26:38 +0000 (UTC) (envelope-from mchouque@thi.eu.com) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gg1vL0CCdz4q30 for ; Wed, 4 Aug 2021 19:26:37 +0000 (UTC) (envelope-from mchouque@thi.eu.com) Received: (Authenticated sender: m@thi.eu.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 1BA8D60005; Wed, 4 Aug 2021 19:26:29 +0000 (UTC) Received: by weirdfishes.localdomain (Postfix, from userid 1000) id B9C907203B9D5; Wed, 4 Aug 2021 21:26:29 +0200 (CEST) Date: Wed, 4 Aug 2021 21:26:29 +0200 From: Mathieu Chouquet-Stringer To: joe mcguckin Cc: freebsd-fs Subject: Re: SATA/SAS commands Message-ID: References: <53137D89-3405-4F2D-AE6A-46AC665F52F9@via.net> 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <53137D89-3405-4F2D-AE6A-46AC665F52F9@via.net> X-Face: %JOeya=Dg!}[/#Go&*&cQ+)){p1c8}u\Fg2Q3&)kothIq|JnWoVzJtCFo~4X Is there a tool that allows sending bare scsi commands to a drive? For > example, if I wanted to activate the drive’s erase or format feature > or pull logs, etc. > Or, is there something close enough that I could modify? smartctl is your friend for logs and so on. Package sg3_utils is what you'd want to erase and so on as it provides a bunch of tools. For instance, here's what I used to reformat HDD from a Netapp appliance to 512 bytes sector size: sg_format --format --size=512 /dev/somedrive -- Mathieu Chouquet-Stringer me+freebsd@mathieu.digital The sun itself sees not till heaven clears. -- William Shakespeare -- From nobody Thu Aug 5 19:25:21 2021 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 681C210F867E for ; Thu, 5 Aug 2021 19:25:43 +0000 (UTC) (envelope-from joe@via.net) Received: from smtp1.via.net (smtp1.via.net [157.22.3.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "via.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ggdqp2NsXz3vWd for ; Thu, 5 Aug 2021 19:25:42 +0000 (UTC) (envelope-from joe@via.net) Received: from mail.via.net (mail.via.net [157.22.3.34]) by smtp1.via.net (8.15.2/8.14.1-VIANET) with ESMTPS id 175JPYVv029470 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 5 Aug 2021 12:25:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at smtp1.via.net Received: from [209.81.2.65] ([209.81.2.65]) by mail.via.net (8.15.2/8.14.1-VIANET) with ESMTP id 175JPWbM013511 for ; Thu, 5 Aug 2021 12:25:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail.via.net From: joe mcguckin Content-Type: multipart/alternative; boundary="Apple-Mail=_2301350A-9460-4244-870B-8E682F5FBBF8" 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 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: ZFS question Message-Id: Date: Thu, 5 Aug 2021 12:25:21 -0700 To: freebsd-fs X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (smtp1.via.net [157.22.3.5]); Thu, 05 Aug 2021 12:25:35 -0700 (PDT) X-Rspamd-Queue-Id: 4Ggdqp2NsXz3vWd X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of joe@via.net designates 157.22.3.5 as permitted sender) smtp.mailfrom=joe@via.net X-Spamd-Result: default: False [-1.30 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.60)[0.605]; FREEFALL_USER(0.00)[joe]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; DMARC_NA(0.00)[via.net]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+MX]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:7091, ipnet:157.22.0.0/16, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[157.22.3.5:from] X-ThisMailContainsUnwantedMimeParts: Y --Apple-Mail=_2301350A-9460-4244-870B-8E682F5FBBF8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 How does ZFS keep track of drives in a dataset or VDEV? If I rearrrange = the drives in a chassis, somehow ZFS is able to make sense of the = scrambled drives and=20 mount the dataset. Clearly ZFS is tracking the drives. How does it refer to the drives = internally? By UUID, Drive Label? On some OS=E2=80=99s (Linux) there = are many options for specifying which drives make up a VDEV: UUID, = Partition Label, etc. On other OS=E2=80=99s, these schemes might not = exist (think moving drives from Linux to FreeBSD, for example). I=E2=80=99ve noticed that on Linux, drive identifiers (sda, sdb, etc) = move around after reboots. How does ZFS cope with this? Does each drive (or partition) have a header that tells ZFS that this = entity is =E2=80=98drive 2 of VDEV foo=E2=80=99? Thanks, Joe Joe McGuckin ViaNet Communications joe@via.net 650-207-0372 cell 650-213-1302 office 650-969-2124 fax --Apple-Mail=_2301350A-9460-4244-870B-8E682F5FBBF8-- From nobody Thu Aug 5 19:45:01 2021 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 8A6A510FA4F1 for ; Thu, 5 Aug 2021 19:45:20 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (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 "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GgfGS3J8Rz4R5N for ; Thu, 5 Aug 2021 19:45:20 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-ot1-f41.google.com with SMTP id v8-20020a0568301bc8b02904d5b4e5ca3aso6290959ota.13 for ; Thu, 05 Aug 2021 12:45:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HaaEATdabA5H60geP2UXilZxOBQEUHLdZJije8FDEIU=; b=uejov/fh0HVmFXsBiWKDmnFtyY1HlEfNMLJOV3vEE22CR81T+6j6eClPVJc6dsKHKN NE31RzWGdqg0XwX3OAfhe698sJACosB/yx/N/Bj8p7XnSK0UwViX8mKan8RP07bS5Xd7 KJPjJF7Bmamv5uwLluRFHTry5nykSTJz6dfD3lx/M8GKVAU1ZhCchYmcOwD7PD0LY4O4 MWOsJ8kD74Mjqbuo1gIEPe7wnlmfYK0uSRxdYS2onIrp3DTn5vkXjQeLhld7makd2GCK +WAKt94PLaynkxI3+P7zpVhwb8qFB0V9kep828XcaO0tuTK1Q8LuVOieWovnYsQ3DolU naEw== X-Gm-Message-State: AOAM5305NtObJhZhuvfIhut+wOr2Ph/mHFVNPM6rTglrGUTKlSJcRDod 1NBN78nqg/PiialOJ8iu7Rx7Sbq871NoIZJ8iG5By/G5 X-Google-Smtp-Source: ABdhPJyT+KLZGVYNFEd/30EHsZpYCVBSeiWGyYn8eE5j/Za4Gs+SqReK+fEYozzcbabNuHdo47lcgi3wcyBZq6o6v8A= X-Received: by 2002:a9d:7982:: with SMTP id h2mr4701029otm.291.1628192714672; Thu, 05 Aug 2021 12:45:14 -0700 (PDT) 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: In-Reply-To: From: Alan Somers Date: Thu, 5 Aug 2021 14:45:01 -0500 Message-ID: Subject: Re: ZFS question To: joe mcguckin Cc: freebsd-fs Content-Type: multipart/alternative; boundary="00000000000062500805c8d52802" X-Rspamd-Queue-Id: 4GgfGS3J8Rz4R5N X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --00000000000062500805c8d52802 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Each drive has a label containing the drive's guid and the guid of every other drive in the same top level vdev . During import, ZFS searches every geom provider to find matching guids. If the drives have the same names as they used to, then the import goes faster. But ZFS always checks the guids during import . On Thu, Aug 5, 2021, 2:26 PM joe mcguckin wrote: > How does ZFS keep track of drives in a dataset or VDEV? If I rearrrange > the drives in a chassis, somehow ZFS is able to make sense of the scrambl= ed > drives and > mount the dataset. > > Clearly ZFS is tracking the drives. How does it refer to the drives > internally? By UUID, Drive Label? On some OS=E2=80=99s (Linux) there ar= e many > options for specifying which drives make up a VDEV: UUID, Partition Label= , > etc. On other OS=E2=80=99s, these schemes might not exist > (think moving drives from Linux to FreeBSD, for example). > > I=E2=80=99ve noticed that on Linux, drive identifiers (sda, sdb, etc) mov= e around > after reboots. How does ZFS cope with this? > > Does each drive (or partition) have a header that tells ZFS that this > entity is =E2=80=98drive 2 of VDEV foo=E2=80=99? > > Thanks, > > Joe > > Joe McGuckin > ViaNet Communications > > joe@via.net > 650-207-0372 cell > 650-213-1302 office > 650-969-2124 fax > > > > --00000000000062500805c8d52802-- From nobody Sun Aug 8 21:00:49 2021 X-Original-To: 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 F28F2137E0DA for ; Sun, 8 Aug 2021 21:00:49 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GjWp93ddWz3mNp for ; Sun, 8 Aug 2021 21:00:49 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 41DF11B375 for ; Sun, 8 Aug 2021 21:00:49 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 178L0n4k047537 for ; Sun, 8 Aug 2021 21:00:49 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 178L0n5U047536 for fs@FreeBSD.org; Sun, 8 Aug 2021 21:00:49 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202108082100.178L0n5U047536@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: fs@FreeBSD.org Subject: Problem reports for fs@FreeBSD.org that need special attention Date: Sun, 8 Aug 2021 21:00:49 +0000 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 Content-Type: multipart/alternative; boundary="16284564492.D2b5A.46296" Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: Y --16284564492.D2b5A.46296 Date: Sun, 8 Aug 2021 21:00:49 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 211491 | System hangs after "Uptime" on reboot with ZFS Open | 221909 | [ZFS] Add a sysctl to toggle send_corrupt_data Open | 237067 | ZFS: Crash in vdev_dtl_reassess when using GELI w Open | 240831 | zfs: Panic during snapshot on 12.1-STABLE r352648 Open | 243973 | [zfs] rollback segmentation fault Open | 244656 | zfs: resilver doesn't provide enough information Open | 244692 | gjournal: Does not support TRIM Open | 244899 | [PATCH] zfs: xattr on a symlink target > 136 caus Open | 251035 | [zfs] Allow 64 bit ZFS to support 32 bit ioctls ( 9 problems total for which you should take action. --16284564492.D2b5A.46296--