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
Was this topic helpful?
Document Information
More support for:
IBM PureData System
Software version:
1.0.0
Document number:
531303
Modified date:
17 October 2019
UID
swg21961439