From nobody Thu Jun 2 20:14:52 2022 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 F09381B57999 for ; Thu, 2 Jun 2022 20:15:00 +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 4LDcgl75mjz4WnJ for ; Thu, 2 Jun 2022 20:14:59 +0000 (UTC) (envelope-from dpchrist@holgerdanske.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=holgerdanske.com; s=nov-20210719-112354; t=1654200892; bh=+/ibuHWrytJu3gZgSdpWEUZw074gmFkxVKeJJ6oOn7U=; h=Received:Message-ID:Date:MIME-Version:User-Agent:Subject: Content-Language:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=DTQxvy1FYB+sOGRDmpvUbIuzgCDn1B4pYBKg7s1TkPNdqkVscPCHsQoCA+K5Pxfkr 3kKBjN20TjjAbE5Loh6VxZzX8na+muCFvkcqagJ2O60UaYGktkTIV7bwT/73o03W41 6C1ZDEW8a65WlNCj3sea+ab/AU/LhcsSd+U+rsJX+YtzdCqFpnsMWLN3J9Aq15SWwP gnScO6gB+rrEF/Xqf62TB3zIiVtNRGAd9ABGs0GSZdyLQO1wlwvzqE8rxbTIue4/1M qUrvNiWxcAIZGUwlmcwwSrwq/OCbt6sVmusTp6LIm9tc+3PCrSFqz+tj4ECMdlcLij 8q1tsgGNNMYfcnuS+fHGIzLLU3fZfpOJKDwJeVkEIXilKfTaffPutLjnz0b/tu2nEv kAScqZPv6XaoxT+zn+qULmQGd9hb0oKUfACh3n75rOsM/3t37Bs9Dy0twPygxETSil hMd6ZBeI1bCbZ/6pVgyzZmEAo6RECGAg6S8jiPaNT4urF8SR8oydwCd2tTB/OE27of u4/kWFcXg/JqbQjMWjZb9mcQ8tv8iHRteC01pUzZyMldYAkHxFZyE8ptnIZ270+AK9 snVs5OndoOrtzkWpPVBqgn6O5qZnPmIxekp1vNbox36XXTduHbsVlyoQNruvKZZSNC H2+UyeV/ItlRREeJw78UGmN4= 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, 2 Jun 2022 13:14:52 -0700 Message-ID: <8dcf342c-74f6-242d-338b-1c8cd2dee54f@holgerdanske.com> Date: Thu, 2 Jun 2022 13:14:52 -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:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: Effect of using SATA 2.x and 3.x in zfs mirrored config Content-Language: en-US To: questions@freebsd.org References: <1706301853.51806224.1654176891423.JavaMail.zimbra@shaw.ca> From: David Christensen In-Reply-To: <1706301853.51806224.1654176891423.JavaMail.zimbra@shaw.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4LDcgl75mjz4WnJ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=holgerdanske.com header.s=nov-20210719-112354 header.b=DTQxvy1F; dmarc=pass (policy=none) header.from=holgerdanske.com; 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 X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[holgerdanske.com:s=nov-20210719-112354]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+a:november.he.net]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[holgerdanske.com:+]; DMARC_POLICY_ALLOW(-0.50)[holgerdanske.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[questions]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 6/2/22 06:34, Dale Scott wrote: > Hi all, I installed FreeBSD "root-on-zfs" using the installer on two new WD Blue 1TB SSDs (mirrored). > > Looking in dmesg, I see one of the drives is using SATA 3 (600MB/s transfer), and the other is using SATA 2 (300MB/s transfer). Will mixing SATA 2 and SATA 3 drives cause any technical issues? Is there any reason why I should use SATA 2 for both drives? > > The system was an enterprise castoff circa 2011 HP 6200 Pro Microtower (i7-2600 CPU). I naievely thought there were four identical SATA ports and plugged in the two SSDs, a rotating drive, and a DVD. However, looking now in the illustrated parts guide I see only one port is SATA 3. > > SATA0 1st hard drive (SATA 3.0) > SATA1 2nd hard drive (SATA 2.0) > SATA2 1st optical drive (SATA 2.0) > ESATA eSATA connector > > From dmesg: > > ada0: ACS-4 ATA SATA 3.x device > ada0: Serial Number 21401J801472 > ada0: 600.000MB/s transfers (SATA 3.x, UDMA5, PIO 512bytes) > ada0: 953869MB (1953525168 512 byte sectors) > > ada1: ACS-4 ATA SATA 3.x device > ada1: Serial Number 214036801110 > ada1: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 512bytes) > ada1: 953869MB (1953525168 512 byte sectors) > > ada2 at ata2 bus 0 scbus2 target 0 lun 0 > ada2: ATA8-ACS SATA 2.x device > ada2: Serial Number 5VX2H84K > ada2: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) > ada2: 953869MB (1953525168 512 byte sectors) > > cd0 at ata0 bus 0 scbus0 target 1 lun 0 > cd0: Removable CD-ROM SCSI device > cd0: Serial Number 217CD060574 > cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes) > cd0: Attempt to query device size failed: NOT READY, Medium not present - tray c > > > Thanks, > Dale I do not know if the SATA 3 Gbps vs. 6 Gbps mismatch will break ZFS. If the computer boots and runs, I would hammer it with filesystem benchmarks. dbench(1) comes to mind. It appears that computer has PCIe 1.0 (2.5 Gbps per channel): https://support.hp.com/us-en/document/c02779499 Perhaps a PCIe x4 to SATA 6 Gbps HBA that is backwards compatible with PCIe 1.0 could run a single SATA 6 Gbps SSD at full speed (?). You could ask around with various manufacturers' technical support, or just buy a card and find out: https://docs.broadcom.com/doc/12353332 David