Questions tagged [trim]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
128 views

I/O errors during BLKDISCARD on Linux Dell R720 with SAS Seagate Nytro

I have a Dell R720 with PERC H310 Mini (LSI 2008 MegaRAID) controller which I have just loaded with 4 new Seagate Nytro XS1600LE70045 1.6TB SSD, configured as individual disks for Linux software raid. ...
M Conrad's user avatar
  • 131
2 votes
1 answer
126 views

File access on SSD array suddenly slowed down; TRIM appears to be unavailable. How to enable, or what else could it be?

We have a system that's used for a GIS database (with Postgres as the underlying engine) which is using a software RAID 5 array of 4x2TB Samsung EVO870 SATA SSDs as its database drive. There is a ...
tsc_chazz's user avatar
  • 1,826
3 votes
1 answer
2k views

fstrim is very slow on xfs and always return same value unlike ext4

I just noticed if I do time fstrim /<some ext4>; time fstrim /<some ext4> the 2nd call usually print 0 bytes trimmed and finished immediately. However if I do same thing on XFS, 2 of the ...
Wang's user avatar
  • 322
1 vote
0 answers
337 views

Does trim need to be enabled inside a VM on a zvol?

zfs and virtio both have trim support, which means, that trim operations can be forwarded by VMs using zvols to the physical underlaying disks. (Please excuse my usage of the word "physical zpool&...
John Smith's user avatar
1 vote
1 answer
641 views

Show free SSD space after TRIM / UNMAP / Deallocate?

For a hard drive supporting ATA TRIM, SCSI UNMAP, or NVMe Deallocate, is it possible to report on the amount of unallocated space? For example, we take a 1TB drive, then write 500GB data to it, then ...
PhilR's user avatar
  • 483
5 votes
2 answers
822 views

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 ...
sweber's user avatar
  • 151
6 votes
2 answers
11k views

When and how often does ZFS 'autotrim' take place?

I have read "Add TRIM support" article, but failed to get a clue for "When and how often does ZFS autotrim take place?" And How can I observe activities of autotrim? Thanks for ...
sohnman's user avatar
  • 83
1 vote
0 answers
464 views

Repeatedly run fstrim doesn't seem to work

When I run fstrim --all -v a few times in a row it doesn't seem to be working as expected. Every time it reports that it processes the same number of bytes: root@pc:~# fstrim --all -v /boot/efi: 503.2 ...
oᴉɹǝɥɔ's user avatar
1 vote
2 answers
363 views

Lack of TRIM support -- will benchmarks get progressively slower on ZFS + SSD?

Context: I'm on a Toshiba 512 GB NVMe (Model: KXG50ZNV512G) I'm seeing this weird behaviour while benchmarking Postgres on ZFS-on-Linux (via pgbench), where the second and third runs of a benchmark ...
Saurabh Nanda's user avatar
4 votes
1 answer
5k views

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 ...
Pavel Tankov's user avatar
1 vote
1 answer
443 views

Repurpose a used SSD - how to TRIM it?

I am going to put a used SSD into a server to boot from it and hold the OS itself, while making a RAID1 from two other HDDs. Since the SSD has been used, do I need to trim it beforehand and how? Or ...
Pavel Tankov's user avatar
1 vote
1 answer
878 views

Intermittent I/O delays on part of RAID array causing poor MySQL performance

I am managing a bare-metal server running a MySQL database as well as some other software. We are seeing performance issues with some MySQL queries, but the issues occur intermittently, and almost ...
jnorthco's user avatar
1 vote
1 answer
2k views

"UNMAP not supported" error on a device that supports UNMAP

I was playing with trim/unmap commands on a Samsung SSD (MZ7WD240 model). To check the unmap support on this device i ran the following command: hdparm -I /dev/sda | grep TRIM And as expected the ...
SamTh3D3v's user avatar
  • 283
2 votes
0 answers
131 views

Is there a "TRIM" command for dmcrypt devices?

When using an encrypted drive in a virtual machine, the VM image starts very small if you do not initialize the drive with random data. When you fill the drive, it grows, but when you delete files it ...
allo's user avatar
  • 1,713
13 votes
2 answers
914 views

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 ...
Anthony Fornito's user avatar
54 votes
4 answers
49k views

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 ...
Dai's user avatar
  • 2,299
1 vote
0 answers
35 views

Transfer the configuration settings and data from HPRM production to test

We are performing an upgrade of HPRM and we want to be able to replicate the production environment into a new test environment in AWS. Our infrastructure in AWS is already set up, however we were ...
Nathan Scullen's user avatar
1 vote
2 answers
2k views

Raid in SSD issue with Trim

Yesterday I posted a question about Storage Spaces and ReFS about cache turn off (write through mode) and it's settled. I thought it will be simple, but it turns out far from simple and ran into ...
Rivai's user avatar
  • 21
2 votes
1 answer
1k views

SSD fstrim on CentOS 6.x with software raid5

I have some CentOS 6.x servers. They have software raid1 and fstrim works well there. On one of the servers, I decided to do software raid5 and ext4. I can mount it with discard and there is no error ...
Nick's user avatar
  • 862
2 votes
1 answer
2k views

TRIM Support in PERC H310 Mini

I am running Debian 8 on a Dell PowerEdge R420. The OS is installed onto a INTEL SSDSC2BA800G3T SSD running the 5DV1DL03 firmware. The SSD is connected through a PERC - H310 RAID controller (fw 2....
rasebo's user avatar
  • 161
2 votes
1 answer
589 views

Is it really necessary to use fstrim on Samsung SM843T SSDs?

Should we schedule periodical fstrims on Samsung SSD drives? What happens if we don't run such periodical scripts? I am highlighting the model on the Title because I am assuming that the answer is ...
King Claudius's user avatar
2 votes
1 answer
2k views

LSI 9207-8i and Samsung 850 PRO TRIM support

A Dell R610 server with LSI 9207-8i HBA card has 6 Samsung 850 PRO SSDs connected to it. hdparm shows TRIM support: sudo hdparm -I /dev/sdc | grep -i trim * Data Set Management TRIM ...
A.Jesin's user avatar
  • 422
0 votes
1 answer
143 views

When Upgrading My 3.5" HDs To SSD HDs Can I Continue To Still Use RAID 1 (MIRROR)?

I'm upgrading my old 3.5" HDs to a set of SSD HDs. I currently run a RAID 1 (MIRROR) array for the 2 old drives (just in case) and want to know how I should rollout the new SSD drives... I have been ...
Arvo Bowen's user avatar
6 votes
1 answer
11k views

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 ...
sysjas's user avatar
  • 203
4 votes
3 answers
7k views

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/...
Eric Grange's user avatar
5 votes
1 answer
4k views

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 ...
Alex Flo's user avatar
  • 1,821
4 votes
0 answers
241 views

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 ...
John's user avatar
  • 161
5 votes
1 answer
856 views

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 ...
Luke404's user avatar
  • 5,886
6 votes
0 answers
1k views

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 ...
Halfgaar's user avatar
  • 8,204
11 votes
3 answers
4k views

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 ...
santisaez's user avatar
  • 201
4 votes
3 answers
3k views

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 ...
alfonx's user avatar
  • 250
1 vote
1 answer
813 views

TRIM persistence across reboots

Let's say we have an ext4 filesystem image we dumped onto an SSD (with dd). After a few mounts we learn that we should use the discard flag to emit TRIM commands to the drive. As it is unclear ...
C2H5OH's user avatar
  • 145
1 vote
2 answers
2k views

Is wiper.sh working?

I'm setting up a server running Ubuntu Precise, and I'm trying to verify if SSD TRIM is working. fstrim is failing: ~ sudo fstrim -v / fstrim: /: FITRIM ioctl failed: Operation not supported So I ...
Aleksander Blomskøld's user avatar
2 votes
0 answers
990 views

TRIM on OCZ RevoDrive 3 on CentOS

I've got an OCZ RevoDrive 3 mounted as / on my CentOS 6.3 box running kernel 2.6.32-220.17.1.el6.x86_64. /boot is on a HDD since OCZ's driver apparently doesn't yet support booting directly to it. ...
Seventoes's user avatar
  • 153
4 votes
1 answer
1k views

Is TRIM passed through a LVM-based PV Xen domU to the underlying SSD

Scenario: -- Debian Xen dom0 -- SSD drive setup as LVM PV/single Volume Group. -- Debian pv_ops-based domU setup on LVM logical volume. -- File system inside domU is ext4 with discard option enabled. ...
Brian Blood's user avatar
1 vote
2 answers
1k views

Ssd TRIM/DISCARD details

I am writing a script and I have a few questions about the inner workings of the TRIM command. If TRIM is issued for an entirely empty (zeroed) erase block, does the garbage collector still delete the ...
Ivan's user avatar
  • 173
5 votes
0 answers
3k views

Do I need to trim my SSD? How?

I have been using a pair of Intel 320 in RAID 1 on my busy Ubuntu server for about 4 month. While the disk usage never reached 50% of the capacity, but I FEEL that the server has become less ...
alfish's user avatar
  • 3,157
0 votes
2 answers
2k views

TRIM in centos 5.X?

I've got a bunch of centos 5 boxes with Intel X-25 drives (x25-m in dev, x25-e in prod, I think). We're seeing severely degraded disk performance on one of our dev boxes (which easily does 5+ gb of ...
Frank Farmer's user avatar
3 votes
3 answers
768 views

Using SSD drives in a raid in an operation involving little to no deletes

From what I've been able to understand when reading about the case with Solid State drives and raids, the problem is that TRIM cannot be used for them in a raid configuration, thus, resulting in the ...
Aron Lander's user avatar
21 votes
6 answers
13k views

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 ...
Shane Meyers's user avatar
  • 1,018
3 votes
1 answer
4k views

Is TRIM possible on SSD disks in RAID 1?

I am going to build a new server to handle a high-traffic php/mysql site. I am going to use SSD disks to benefit from fast random read performance but really got confused about choosing the right SSD ...
alfish's user avatar
  • 3,157
1 vote
2 answers
2k views

Does Ubuntu 10.04 support TRIM for SSD?

I read here that: [T]o use TRIM, you need a OS that supports it, such as Windows 7, Mac OS X and some variants of Linux being the only ones as far as I know. You also need a SSD that supports ...
alfish's user avatar
  • 3,157
2 votes
3 answers
556 views

SSD TRIM Support in Snow Leopard

Does Mac OS X Snow Leopard officially support SSD TRIM yet? If not, is there an expected availability? Also, is there a brand of SSD that is most compatible with a late-2009 Mac Pro?
Mark Richman's user avatar
1 vote
0 answers
967 views

VMware Esxi with Kingston SSDNow (No Trim but S.M.A.R.T Garbage Collection)

I recently posted asking whether Trim is supported on VMware Esxi (here) and found out it is NOT. I've read that some SSDs, such as the Kingston SSDNow have hardware garbage collection. Would this ...
nextgenneo's user avatar
3 votes
2 answers
4k views

SSD on Vmware ESXI 4 (TRIM? Good Idea?)

I just posted about finding bottle necks and have narrowed it down to having way too many VMs on my machine on one 15K SAS drive. I have plenty of cores and plenty of ram. So I am planning on putting ...
nextgenneo's user avatar
11 votes
4 answers
5k views

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 ...
Don MacAskill's user avatar
20 votes
6 answers
16k views

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. ...
Don MacAskill's user avatar
0 votes
3 answers
1k views

SSD Harddisk and linux distro with TRIM support

I have a Corsair Force Series SSD harddrive which I plan to put in a 1 unit linux box as a linux server. The server itself will be making a lot of random reads and very little writes, which makes SSD ...
Milou's user avatar
  • 13
1 vote
2 answers
2k views

Trim on intel x25-m G2 when connected by iscsi

I am running a windows 7 vm on esxi connected to x25-M G2 via iscsi, which is running starwind iscsi on server 2008. Is trim a function of the vm OS or the iscsi server OS or not applicable with ...
user32222's user avatar
  • 319
4 votes
4 answers
4k views

Linux tool to reset Intel X25 SSDs wear leveling tables?

I'm aware of the DOS utility to "Reset" an Intel SSD to factory settings, but I'd rather not shut down my system to do this to my SSDs. Supposedly newer kernels support TRIM, but I haven't found any ...
Joel K's user avatar
  • 5,903