Article ID: 122080, created on Jun 19, 2014, last review on Jun 19, 2014

  • Applies to:
  • Virtuozzo containers for Linux 4.7

Symptoms

/vz partition is located on a storage LUN device or SSD disk. It is mounted with ext4 discard option. However it is impossible to trim it, the following error is observed:

[root@vz ~]# fstrim /vz/private/
fstrim: /vz/private/: FITRIM ioctl failed: Operation not supported

Cause

The underlying block device does not support the discard operation:

[root@vz ~]$ cat  /sys/block/sda/queue/discard_max_bytes
0

Resolution

Make sure that ext4 file system is used - at present, ext4 is the only fully supported file system that supports discard.

Contact the storage vendor for clarifications.

Search Words

fstrim

storage

e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f 0c05f0c76fec3dd785e9feafce1099a9

Email subscription for changes to this article
Save as PDF