Categories
SysOps

How to flush buffers on a specific device

Flush buffers on a specific device using blockdev utility.

Call block device ioctls from the command line to flush buffers on a specific device.

$ sudo blockdev -v --flushbufs /dev/nvme0n1
flush buffers succeeded.

Simple as that.