From owner-freebsd-hackers@freebsd.org Tue Apr 2 21:40:37 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4EB5154F2B2 for ; Tue, 2 Apr 2019 21:40:37 +0000 (UTC) (envelope-from chuck@tuffli.net) Received: from mail-it1-x12b.google.com (mail-it1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A07B48186C for ; Tue, 2 Apr 2019 21:40:36 +0000 (UTC) (envelope-from chuck@tuffli.net) Received: by mail-it1-x12b.google.com with SMTP id y10so7932603itc.1 for ; Tue, 02 Apr 2019 14:40:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuffli-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Tynp6owzhcJcNVcNGL1zusRi46uxNk/S78HZ1FOjHNk=; b=Qox1UACRhlguwjwm0TCTpVAC1xVOqA6O0SrSQkos9twLywhxcTXEp7QfCUNk/h+ke8 OX5K3qArT74QleZ6kxJcN4GncjtwKMe4jMx33hCq015oWHZPPmlk++cVzcB+WLSNyN/3 RpyPJsIPm/SsjzgZe9OtsgjN7zwUqTCzMpGLrkWlVLiJIbsQmJtegbq5GcHKb7aZ8hVA NOAN9DGl0E3OQIJJo6oCFsE69QF7azwJBTruVIcNMdirUtqelvjfd/ngJtvm5nc3S4AP NfVOsjt/SJAZwXgzNNfWQMG/XyzzW0o6vmdZ3syQiRJToCbanJn1/fM6Pnvclxs0r0Sp V6lg== 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:content-transfer-encoding; bh=Tynp6owzhcJcNVcNGL1zusRi46uxNk/S78HZ1FOjHNk=; b=GlYns3mM33AXjuSZOjYu+X3qWNPN1Nv4pvQguWFdElvBRI6Lc2oYg8SopLv4oQi0Pm 2MVUTge6tcN/jwConDDuTfPM9C2llucoabP/2a1DOettGltgvQ0D0BFaXtnqJXuUB3VX Hs6v6cnS2BqBU256j3elD3colM5rq8WSR5S0SXNdykr8AnkzxX6gtkFKpe6iZbn2OxnW H/Hw8xLKLATu4vkxsNwXuF8bv22TBIc8vQnZuok9wKLzGGgSCqRfQTEcfvCbZ1/L8Sxr C1hQwi5+hcelMYlK/s/zLkvaXQKjZQYf0/aUuocIMLiD07Z7TqUwH1nTfBgjOjBci4AF l+6w== X-Gm-Message-State: APjAAAVKUN8UFkW6B/1XKWNuUQ2bj+5VzE89NdERdkgtjJ/hRegZMEcL DYcIQcceBmI85c2DRR/3J2Z3QXnLRux1avg07xGcnhSI X-Google-Smtp-Source: APXvYqzod/5kH8508UnF8O6WDwjumHqulv1YuTvkdJD7N0yW90EaG3poSnFa0TtChfRNp6BTPBm5/VFX8bHeKc1lSfE= X-Received: by 2002:a02:1c49:: with SMTP id c70mr45705429jac.92.1554241235659; Tue, 02 Apr 2019 14:40:35 -0700 (PDT) MIME-Version: 1.0 References: <8F7034DD-AA3A-44DF-86D2-34FB6BF60FD7@jnielsen.net> In-Reply-To: <8F7034DD-AA3A-44DF-86D2-34FB6BF60FD7@jnielsen.net> From: Chuck Tuffli Date: Tue, 2 Apr 2019 14:40:24 -0700 Message-ID: Subject: Re: online resizing NVME drives? To: John Nielsen Cc: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: A07B48186C X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tuffli-net.20150623.gappssmtp.com header.s=20150623 header.b=Qox1UACR; spf=permerror (mx1.freebsd.org: domain of chuck@tuffli.net uses mechanism not recognized by this client) smtp.mailfrom=chuck@tuffli.net X-Spamd-Result: default: False [-4.82 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[tuffli-net.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[tuffli.net]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[tuffli-net.20150623.gappssmtp.com:+]; R_SPF_PERMFAIL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[b.2.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[alt1.aspmx.l.google.com,aspmx.l.google.com,aspmx3.googlemail.com,aspmx4.googlemail.com,aspmx5.googlemail.com,alt2.aspmx.l.google.com,aspmx2.googlemail.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_SHORT(-0.97)[-0.969,0]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-2.54)[ip: (-7.56), ipnet: 2607:f8b0::/32(-2.93), asn: 15169(-2.17), country: US(-0.06)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Apr 2019 21:40:38 -0000 On Tue, Apr 2, 2019 at 1:11 PM John Nielsen wrote: > > Hi all- > > Obviously this wouldn't make sense for physical NVME hardware, but when r= unning on e.g. bhyve or AWS EC2 it's nice to be able to resize volumes and = filesystems without needing to reboot the (virtual) system. I'm pretty sure= that's do-able with SCSI, AHCI SATA and virtio-block devices but I don't s= ee a way to do it with NVME. Am I missing something or do we need to implem= ent something along the lines of "nvmecontrol rescan"? > > I'm experimenting with FreeBSD 12.0-RELEASE on a c5n.large AWS ec2 instan= ce. Like most (all?) of the c5 instance types the disks are all presented a= s NVME devices even if they are actually backed by EBS. I started one insta= nce with a 10GB root volume but then decided I wanted to make it bigger. I = grew the volume on the AWS side no problem. When I did so I got this kernel= message: > nvme0: async event occurred (type 0x2, info 0x00, page 0x00) FWIW, this is a "Namespace Attribute Changed" event from the NVMe Controller. Are you using nvd as the disk driver? If so, can you try nda as that appears to support the XPT_SCAN_* events. --chuck