Managed OpenStack
Latest
Frequently Asked Questions
Solution
How To
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How to Enable 'Discard/TRIM' in Openstack Instance ?
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
- How do I enable
TRIM(Discard) in a OpenStack KVM instance?
Environment
- Platform9 Managed OpenStack - v5.4 and Higher
Cause
- The default disk driver for KVM images is virtio. This driver does not supports / implements the fitrim IOCTL. Thus, it is needed to use virtio-scsi, which supports FITRIM.
Resolution
- Create or modify a glance image adding the virtio-scsi disk bus property:
Javascript
xxxxxxxxxx# glance image-update --property hw_scsi_model=virtio-scsi --property hw_disk_bus=scsi <image>Or
Javascript
xxxxxxxxxx# openstack image set --property hw_scsi_model=virtio-scsi --property hw_disk_bus=scsi <image>VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message