From nobody Tue Feb 22 21:15:29 2022 X-Original-To: stable@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 7DC2619CEE5E for ; Tue, 22 Feb 2022 21:15:34 +0000 (UTC) (envelope-from pete@twisted.org.uk) Received: from toybox.twisted.org.uk (toybox.twisted.org.uk [178.250.76.50]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4K3Bln40T5z4n5F for ; Tue, 22 Feb 2022 21:15:33 +0000 (UTC) (envelope-from pete@twisted.org.uk) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=twisted.org.uk; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: From:References:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9TAlZrXZiKe60DagMLyCrWqblfK3VKQJwhTf7wPJL0E=; b=weLSX7CpJcKlXdVSRLrLC+hygg ulYKWnZeAfmbteKw7iyTOgtSDcLKoNfcybr25iTfc4Mz2bWUip7OK/M/XEioSXURlda6G0UIGW9zK bYNwZycP+iVkjR8b544D1+maIGNcNeh2AZo6y5woAcokeJ4+U5STFltvrwAvoxrqsgDk=; Received: from mailnull by toybox.twisted.org.uk with spamc-scanned (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1nMcVP-0001WI-SA for stable@freebsd.org; Tue, 22 Feb 2022 21:15:32 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.5 (2021-03-20) on toybox.twisted.org.uk X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=ALL_TRUSTED,NICE_REPLY_A, TW_NV autolearn=unavailable autolearn_force=no version=3.4.5 X-Spam-Score: -0.9 () Received: from [2001:470:6cc4:1:cd6:5836:ddba:7b54] by toybox.twisted.org.uk with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1nMcVP-0001WD-Pw for stable@freebsd.org; Tue, 22 Feb 2022 21:15:31 +0000 Message-ID: <82956746-91aa-4744-c12f-40c5ff7c3f39@twisted.org.uk> Date: Tue, 22 Feb 2022 21:15:29 +0000 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: Instance drives in AWS comming up with the wrong size To: stable@freebsd.org References: From: Pete French In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-spamc-toybox: true X-transport-toybox: lookuphost X-Rspamd-Queue-Id: 4K3Bln40T5z4n5F X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=twisted.org.uk header.s=x header.b=weLSX7Cp; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete@twisted.org.uk designates 178.250.76.50 as permitted sender) smtp.mailfrom=pete@twisted.org.uk X-Spamd-Result: default: False [-1.82 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[twisted.org.uk:s=x]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:178.250.76.50/32]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[twisted.org.uk]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.68)[0.679]; DKIM_TRACE(0.00)[twisted.org.uk:+]; MLMMJ_DEST(0.00)[stable]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:12290, ipnet:178.250.72.0/21, country:GB]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 22/02/2022 19:51, Warner Losh wrote: > What does 'nvmecontrol identify nvme2' and 'nvmecontrol identify nda2' > say for each? > > Warner Umm, before I answer that, I have to say I found a new symptom. It only shows me the wrong values if I am logged in on the serial console. If I ssh in then everything is fine ?! Which is a bit mad. It doesnt just affect diskinfo though, I get issues if I try and run 'geli init' on the drive on the console, but it works fine from ssh. Umm.... Ok, that makes no sense to me... So, the output from the nvme identify commands is the same both on the workding and non working logins, and is below. -pete. [bit of a head scratcher!] root@serpentine-vgay:/usr/home/webadmin # nvmecontrol identify nvme2 Controller Capabilities/Features ================================ Vendor ID: 1d0f Subsystem Vendor ID: 0000 Serial Number: AWS26C9F8A45429C4403 Model Number: Amazon EC2 NVMe Instance Storage Firmware Version: 0 Recommended Arb Burst: 0 IEEE OUI Identifier: cd b4 40 Multi-Path I/O Capabilities: Not Supported Max Data Transfer Size: 131072 bytes Controller ID: 0x0002 Version: 0.0.0 Admin Command Set Attributes ============================ Security Send/Receive: Not Supported Format NVM: Not Supported Firmware Activate/Download: Not Supported Namespace Management: Not Supported Device Self-test: Not Supported Directives: Not Supported NVMe-MI Send/Receive: Not Supported Virtualization Management: Not Supported Doorbell Buffer Config: Not Supported Get LBA Status: Not Supported Sanitize: Not Supported Abort Command Limit: 4 Async Event Request Limit: 5 Number of Firmware Slots: N/A Firmware Slot 1 Read-Only: N/A Per-Namespace SMART Log: No Error Log Page Entries: 64 Number of Power States: 1 Firmware Update Granularity: 00 (Not Reported) Host Buffer Preferred Size: 0 bytes Host Buffer Minimum Size: 0 bytes NVM Command Set Attributes ========================== Submission Queue Entry Size Max: 64 Min: 64 Completion Queue Entry Size Max: 16 Min: 16 Number of Namespaces: 1 Compare Command: Not Supported Write Uncorrectable Command: Not Supported Dataset Management Command: Supported Write Zeroes Command: Not Supported Save Features: Not Supported Reservations: Not Supported Timestamp feature: Not Supported Verify feature: Not Supported Fused Operation Support: Not Supported Format NVM Attributes: Per-NS Erase, Per-NS Format Volatile Write Cache: Not Present root@serpentine-vgay:/usr/home/webadmin # nvmecontrol identify nda2 Size: 292968750 blocks Capacity: 292968750 blocks Utilization: 292968750 blocks Thin Provisioning: Not Supported Number of LBA Formats: 1 Current LBA Format: LBA Format #00 Data Protection Caps: Not Supported Data Protection Settings: Not Enabled Multi-Path I/O Capabilities: Not Supported Reservation Capabilities: Not Supported Format Progress Indicator: Not Supported Deallocate Logical Block: Read Not Reported Optimal I/O Boundary: 256 blocks NVM Capacity: 0 bytes Globally Unique Identifier: 00000000000000000000000000000000 IEEE EUI64: 0000000000000000 LBA Format #00: Data Size: 512 Metadata Size: 0 Performance: Best