Questions tagged [trim]
49 questions
54
votes
4 answers
What is the current state (2016) of SSDs in RAID?
There are plenty of resources available online that discuss using SSD drives in RAID configurations - however these mostly date back a few years, and the SSD ecosystem is very fast-moving - right as we're expecting Intel's "Optane" product release…

Dai
- 2,290
- 8
- 27
- 43
21
votes
6 answers
Verify TRIM support with BtrFS on SSD
We are looking into using BtrFS on an array of SSD disks and I have been asked to verify that BtrFS does in fact perform TRIM operations upon deleting a file. So far I have been unable to verify that the TRIM command is sent to the disks.
I know…

Shane Meyers
- 1,008
- 1
- 7
- 17
20
votes
6 answers
Possible to get SSD TRIM (discard) working on ext4 + LVM + software RAID in Linux?
We use RAID1+0 with md on Linux (currently 2.6.37) to create an md device, then use LVM to provide volume management on top of the device, and then use ext4 as our filesystem on the LVM volume groups.
With SSDs as the drives, we'd like to see the…

Don MacAskill
- 1,808
- 3
- 16
- 22
13
votes
2 answers
Enable Discards HP 3PAR StoreServ 7400
Spin off from these previously asked questions
How to get free space from mounted drive Redhat 7
Update crypttab asks for Passphrase for fstrim
We have a HP 3PAR StoreServ 7400 with 170 VM's speread out across 38 hosts.
Here is the problem as I…

Anthony Fornito
- 9,546
- 1
- 34
- 124
11
votes
3 answers
Background discard on swap partitions on Linux + SSD
Problem
I want to enable background TRIM operations on a swap partition within a SSD disk on Linux. According to several articles, e.g. this one, the kernel detects this configuration and automatically performs discard operations, but on my tests…

santisaez
- 201
- 1
- 3
- 10
11
votes
4 answers
SSD TRIM (discard) problems with ext4 on Crucial C300 SSDs with CentOS 5.5
Playing around with using a modern kernel (2.6.37 currently) on an older OS (CentOS 5.5) so we can get TRIM (discard) working on our SSDs (Crucial C300s).
The most recent hdparm (9.37) concurs that the C300 supports TRIM:
./hdparm -I /dev/sdc | grep…

Don MacAskill
- 1,808
- 3
- 16
- 22
6
votes
1 answer
Trim support in Hardware RAID (Perc H700)
We are about to order a dell R610 with a H700. We were thinking of using 2 X Samsung 850 Pro 512Gb drives in RAID 1.
The question is does the Perc H700 support TRIM in hardware RAID 1? The answers I have found from googling around seem to indicate…

sysjas
- 193
- 2
- 4
- 16
6
votes
0 answers
Running fstrim as cronjob - what happens when interrupted by shutdown
One of the ways to implement fstrim on a file system, it to make a cron.daily task that runs fstrim /. This is preferred over -o discard (mount option) by a lot of people, because the latter can make writing slower, especially deleting large amounts…

Halfgaar
- 8,084
- 6
- 45
- 86
5
votes
1 answer
Should new Linux VMs under ESXi 5.5 mount their filesystems with discard option?
When creating new Linux virtual machines using recent (>= 2014) distributions in VMware ESXi 5.5, should they mount their filesystems with the discard option ?
I make the assumption that the VM's admin does not necessarily know what is the actual…

Luke404
- 5,826
- 4
- 47
- 58
5
votes
2 answers
How is TRIM handled when cloning a disk with dd?
The TRIM command allows an OS to inform an SSD which sectors contain data, and which are free. This allows the disk to re-use free sectors internally and improves wear leveling.
Now, if an SSD is cloned to anoher via dd, each single sector is copied…

sweber
- 151
- 1
4
votes
1 answer
TRIM issues with software RAID1 (mdadm) on two different SSDs (size and manufacturer)
I plan to do a server with 2 SSDs in RAID1 (for OS and boot) and 3 HDDs in RAID5 (for data). All Linux (CentOS7) with mdadm.
We have in the office 2 leftover SSDs, but they are from different manufacturers and with different capacities (120G and…

Pavel Tankov
- 376
- 3
- 16
4
votes
3 answers
Is there a way to force a TRIM in a Windows 2012 Software RAID array?
I have a Windows 2012 server configured with two SSD under a Software RAID 1 (controlled by Windows), under that configuration the optimization tool is not supported.
Is the TRIM still scheduled/performed by the OS, just not visibly so, and with no…

Eric Grange
- 265
- 1
- 3
- 10
4
votes
1 answer
Cannot remove mount option "discard" on an ext4 file system
I tried to turn off TRIM ("discard") on my ext4 filesystem, but I did not succeed.
I tried to add nodiscard option into /etc/fstab, but I can still see this:
# tune2fs -l /dev/md2 | grep discard
Default mount options: journal_data_writeback…

Alex Flo
- 1,761
- 3
- 18
- 23
4
votes
0 answers
Trim Azure VHD size in Windows 2008
I have an azure virtual machine and due to a broken backup script, it has previously used the entire 127GB of space. My virtual machine is now only using 20GB however I'm still being charged for the full 127GB.
I know I need to trim the disk and in…

John
- 161
- 1
- 1
- 5
4
votes
3 answers
Maintenance (TRIM) of SSDs in HW RAIDs
I have 2 ARECA 8040 HW-RAIDs, with 8 SSDs each. One is RAID10 with Intel 520 SSDs, the second is RAID5 with Samsung 840 SSDs. Both are connected to the Server with one shared LSI Logic / Symbios Logic SAS2008 PCI-Express Fusion-MPT SAS-2 card.
I am…

alfonx
- 250
- 5
- 10