IBM Support

How to setup unmap for ext4 on SSD device

Question & Answer


Question

How can unmap for ext4 on SSD device be setup so that ext4 can issue discard/TRIM commands to the underlying block device when blocks are freed?

Answer

Put "discard" option into fstab and remount

example:

1. Change "defaults" to "defaults,discard"

- before change : LABEL=/backup /backup ext4 defaults 1 2

- after change : LABEL=/backup /backup ext4 defaults,discard 1 2

2. Unmount and mount /backup

# umount /backup

# mount /backup

3. Verify options was on

# mount -v | grep backup

/backup on /backup type ext4,discard (rw)

Related Information

[{"Product":{"code":"SSULQD","label":"IBM PureData System"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

More support for:
IBM PureData System

Software version:
1.0.0

Document number:
531303

Modified date:
17 October 2019

UID

swg21961439