Skip to content

Commit 75d0273

Browse files
Update disks-torn-write-prevention.md
1 parent 260fea8 commit 75d0273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/virtual-machines/disks-torn-write-prevention.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ cat /sys/class/block/nvme0n2/queue/atomic_write_boundary_bytes
5252
cat /sys/class/block/nvme0n2/queue/atomic_write_max_bytes
5353
```
5454

55-
## Setup and use the filesystem
55+
## Set up and use the filesystem
5656

5757
Once you confirm that both the VM and the kernel support atomic writes, create an XFS filesystem with 16-KiB block size. You can create an XFS filesystem with the `mkfs.xfs` command. Include the following parameters `-b size=16384 <your-nvme-here>` (an example value for your NVMe is /dev/nvme0n2).
5858

59-
Now that you have setup the filesystem. Configure your application to write atomically with direct IO and the same block size formatted. One way of doing this is with the `fio` command. Include the following parameters: `direct=1 atomic=1 bs=16k`.
59+
Now that you have setup the filesystem. Configure your application to write atomically with direct IO and the same block size formatted. One way of doing this is with the `fio` command. Include the following parameters: `direct=1 atomic=1 bs=16k`.

0 commit comments

Comments
 (0)