Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2019 13:57:58 -0600
From:      John Nielsen <lists@jnielsen.net>
To:        freebsd-hackers@freebsd.org
Subject:   online resizing NVME drives?
Message-ID:  <8F7034DD-AA3A-44DF-86D2-34FB6BF60FD7@jnielsen.net>

next in thread | raw e-mail | index | archive | help
Hi all-

Obviously this wouldn't make sense for physical NVME hardware, but when =
running 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 see a way to do it with NVME. Am I missing something or do =
we need to implement something along the lines of "nvmecontrol rescan"?

I'm experimenting with FreeBSD 12.0-RELEASE on a c5n.large AWS ec2 =
instance. Like most (all?) of the c5 instance types the disks are all =
presented as NVME devices even if they are actually backed by EBS. I =
started one instance 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)

Thereafter running "nvmecontrol devlist" correctly showed the increased =
size of the parent device:
# nvmecontrol devlist
 nvme0: Amazon Elastic Block Store
    nvme0ns1 (25600MB)

However I couldn't see a way to update the size of the nvd0 block device =
without rebooting. Pointers appreciated. Thanks!

JN




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8F7034DD-AA3A-44DF-86D2-34FB6BF60FD7>