You are not logged in.

#1 2014-09-17 16:24:10

zx
Member
Registered: 2014-09-17
Posts: 22

Somthing truncates my files on SSD disc (840 EVO 120GB)

Hi,
I have strange problem from few days.
First I though that was a problem o some packages, but not.
So after recompile my program in Qt I noticed problem with truncated file from some header from glibc, then from gcc.
Reinstall helps but for a few hours, and then the same problem.
I don't see any problen in smart log, also nothing in dmesg, etc.
Does anyone has some idea, what can be wrong, or how to resolve problem, or where looks some info?
Maybe it disc problem but I have not proof.

My info:
/etc/fstab
Previous it was commented out line, but still the same problem

#/dev/mapper/Main-Archlinux         /               reiserfs        rw,discard,noatime,commit=600,errors=remount-ro         0 1
/dev/mapper/Main-Archlinux          /               reiserfs        defaults                                                0 1

smartctl --all /dev/sda

smartctl 6.3 2014-07-26 r3976 [x86_64-linux-3.16.2-1-ARCH] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Samsung based SSDs
Device Model:     Samsung SSD 840 EVO 120GB
Serial Number:    S1D5NSCF325971H
LU WWN Device Id: 5 002538 8a02f771a
Firmware Version: EXT0BB6Q
User Capacity:    120,034,123,776 bytes [120 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4c
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Sep 17 18:21:35 2014 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                ( 4200) seconds.
Offline data collection
capabilities:                    (0x53) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        No Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  70) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       -       1588
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       397
177 Wear_Leveling_Count     0x0013   099   099   000    Pre-fail  Always       -       3
179 Used_Rsvd_Blk_Cnt_Tot   0x0013   100   100   010    Pre-fail  Always       -       0
181 Program_Fail_Cnt_Total  0x0032   100   100   010    Old_age   Always       -       0
182 Erase_Fail_Count_Total  0x0032   100   100   010    Old_age   Always       -       0
183 Runtime_Bad_Block       0x0013   100   100   010    Pre-fail  Always       -       0
187 Uncorrectable_Error_Cnt 0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0032   059   046   000    Old_age   Always       -       41
195 ECC_Error_Rate          0x001a   200   200   000    Old_age   Always       -       0
199 CRC_Error_Count         0x003e   100   100   000    Old_age   Always       -       0
235 POR_Recovery_Count      0x0012   099   099   000    Old_age   Always       -       16
241 Total_LBAs_Written      0x0032   099   099   000    Old_age   Always       -       1046282273

SMART Error Log Version: 1
No Errors Logged
...

Offline

#2 2014-09-17 22:33:51

hifi25nl
Member
Registered: 2011-05-07
Posts: 264

Re: Somthing truncates my files on SSD disc (840 EVO 120GB)

I don't know if this is the case but in archlinux wiki
https://wiki.archlinux.org/index.php/SSD

Warning: Users need to be certain that their SSD supports TRIM before attempting to mount a partition with the discard flag. Data loss can occur otherwise!

However, I am using the same SSD and at least in windows I am sure it supports trim.

You can check if this is the case with:

hdparm -I /dev/sda | grep TRIM

I would check the cable and, if possible, I would connect the drive to a Windows computer and check with Samsung Magician and eventually I would update the firmware.

Offline

#3 2014-09-18 06:31:13

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: Somthing truncates my files on SSD disc (840 EVO 120GB)

I use the same SSD but with 250GB never had issues of that kind.
And as you have commented out the line with discard option and the issue persists I suppose it has nothing to do with TRIM.

Did you try the extended smart self-test and see if this gives you any info?


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#4 2014-09-18 09:42:23

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Somthing truncates my files on SSD disc (840 EVO 120GB)

You should check the output of mount to make sure trim is not being used. You should also check you have the latest firmware for your SSD.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2014-09-18 23:00:17

zx
Member
Registered: 2014-09-17
Posts: 22

Re: Somthing truncates my files on SSD disc (840 EVO 120GB)

Hey,
thanks for reply...

hifi25nl wrote:

I would check the cable and, if possible, I would connect the drive to a Windows computer and check with Samsung Magician and eventually I would update the firmware.

Good idea, I will try if I will be able.
But firmware is latest.
I haven't cable, I'm using SDD in laptop.

dice wrote:

Did you try the extended smart self-test and see if this gives you any info?

I will try (in progress).

R00KIE wrote:

You should check the output of mount to make sure trim is not being used.

No it, isn't.


BTW, I noticed some behavoiur: I updated system, kernel also was updated.
So I rebooted system, and then crash, home partition was not mounted.
So I tried manually, but ext4 module disappear.
I logged, and reinstalled linux package.
I called sync few times, reboot, and everything is ok.
Also (I'm not sure, but maybe) files are truncated or removed when system is suspended.
But I guess.
I will see in few days or more, maybe that is a sync problem.

Update:
Extended self-test is in progress, and my dolphin doesn't work.
Seg fault, I had that problem earlier...
This getting me really nervous...

Request for you:
Can you give me your smart value: "Total LBAs Written" for SSD disk?
Just for comparison.

Last edited by zx (2014-09-18 23:17:36)

Offline

#6 2014-09-19 09:00:02

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: Somthing truncates my files on SSD disc (840 EVO 120GB)

ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
241 Total_LBAs_Written      0x0032   099   099   000    Old_age   Always       -       2438037039

I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#7 2014-09-19 09:13:44

t_v_k
Member
Registered: 2014-09-19
Posts: 1

Re: Somthing truncates my files on SSD disc (840 EVO 120GB)

Could it perhaps be this bug: https://bugzilla.kernel.org/show_bug.cgi?id=83121?

Offline

#8 2014-09-19 13:18:02

zx
Member
Registered: 2014-09-17
Posts: 22

Re: Somthing truncates my files on SSD disc (840 EVO 120GB)

t_v_k wrote:

Wow...
It looks like this problem...
Thank you very much...
I will switch to lts, and will see does this help.

Offline

#9 2014-09-24 19:43:50

Painless
Member
Registered: 2006-02-06
Posts: 235

Re: Somthing truncates my files on SSD disc (840 EVO 120GB)

Did the switch to lts help you?  I use reiserfs (on HDD) and I've had problems with modules not loading with 3.16.2, had to keep re-installing the kernel.  I thought it was hardware errors until I read this post.  I've switched to lts for the time being, seems stable now.

Offline

#10 2014-09-25 22:09:53

zx
Member
Registered: 2014-09-17
Posts: 22

Re: Somthing truncates my files on SSD disc (840 EVO 120GB)

Hi,
I didn't reply because I need to be sure that this solves this.
And yeah, downgrading kernel to LTS helps.
Now I doesn't have any problem.

But I like reiserfs, and I'm using it everywhere, so I lost a lot of files on some other PC.
Crap, I'm trying restore that files, but who knows...

Offline

Board footer

Powered by FluxBB