Thanks for the replies people.
Helpful though your suggestions are, I fail to see how, in these data loss cases, nothing is written (or at least appears to have been written) to the hard disc in the space of several hours of operation. I can accept that there may be delayed allocation, but really, still delayed after several hours?
Knurpht> First of all: openSUSE 12.3 is past it’s end-of-life, you should upgrade to a more recent version.
I run 13.2 in a VirtualBox guest, but have kept my host at 12.3 for ease of maintenance.
Knurpht> I have my doubts this is an openSUSE or even a linux problem, if I were you I’d seriously investigate the hardware, i.e. the disk.
Yes, but replacing the disc without knowing the nature ofproblem is a bit ‘sledgehammer to a nut’, wouldn’t you agree?
gogalthorp> Run smartctl to see the health of the drive itself.
I ran it once and it indicated no self tests, so I then ran a short test, then a long test. Output follows:
pegasus:~ # smartctl --all /dev/sda2
smartctl 6.0 2012-10-10 r3643 [x86_64-linux-3.7.10-1.45-desktop] (SUSE RPM)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST1000DM003-9YN162
Serial Number: S1D1AVZZ
LU WWN Device Id: 5 000c50 04adb7904
Firmware Version: CC4D
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Fri Oct 30 19:30:50 2015 GMT
==> WARNING: A firmware update for this drive may be available,
see the following Seagate web pages:
http://knowledge.seagate.com/articles/en_US/FAQ/207931en
http://knowledge.seagate.com/articles/en_US/FAQ/223651en
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: ( 575) seconds.
Offline data collection
capabilities: (0x73) 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.
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: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 109) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x3085) SCT Status supported.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 108 099 006 Pre-fail Always - 18046632
3 Spin_Up_Time 0x0003 097 097 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1348
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 064 053 030 Pre-fail Always - 120353716702
9 Power_On_Hours 0x0032 092 092 000 Old_age Always - 7536
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 099 099 020 Old_age Always - 1348
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 099 000 Old_age Always - 0 0 3
189 High_Fly_Writes 0x003a 085 085 000 Old_age Always - 15
190 Airflow_Temperature_Cel 0x0022 064 052 045 Old_age Always - 36 (Min/Max 22/40)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 41
193 Load_Cycle_Count 0x0032 046 046 000 Old_age Always - 109913
194 Temperature_Celsius 0x0022 036 048 000 Old_age Always - 36 (0 17 0 0 0)
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 6910h+45m+13.337s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 102207197928576
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 81647700048631
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 7535 -
# 2 Short offline Completed without error 00% 7533 -
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
pegasus:~ #
That seems to suggest there are no permanent faults with the partition/disc and what I’m seeing are intermittent faults?
Knurpht> Look at the output of dmesg f.e.
I’ve run that, but don’t see anything that shouts ‘disc fault’ to me. This bit looks relevant, is there anything else you’d like to see?
57.989243] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: acl,user_xattr
58.239061] EXT4-fs (sda2): re-mounted. Opts: acl,user_xattr,nodelalloc
58.842955] systemd[1]: systemd 195 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ; suse)
59.036144] systemd[1]: Inserted module 'autofs4'
59.052897] systemd[1]: Set hostname to <pegasus.TYNANCHEW>.
59.459014] systemd[1]: Starting Collect Read-Ahead Data...
59.464380] systemd[1]: Starting Replay Read-Ahead Data...
59.471345] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
59.471392] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
59.471407] systemd[1]: Starting Syslog Socket.
59.471449] systemd[1]: Listening on Syslog Socket.
59.471460] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
59.471483] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
59.471491] systemd[1]: Starting Delayed Shutdown Socket.
59.471513] systemd[1]: Listening on Delayed Shutdown Socket.
59.471522] systemd[1]: Starting Encrypted Volumes.
59.471537] systemd[1]: Reached target Encrypted Volumes.
59.471552] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
59.471624] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
59.471663] systemd[1]: Starting udev Kernel Socket.
59.471687] systemd[1]: Listening on udev Kernel Socket.
59.471717] systemd[1]: Starting udev Control Socket.
59.471741] systemd[1]: Listening on udev Control Socket.
59.471750] systemd[1]: Expecting device dev-disk-by\x2did-ata\x2dST1000DM003\x2d9YN162_S1D1AVZZ\x2dpart1.device...
59.471767] systemd[1]: Starting Journal Socket.
59.471800] systemd[1]: Listening on Journal Socket.
59.471815] systemd[1]: Mounting Huge Pages File System...
59.472066] systemd-readahead[272]: Bumped block_nr parameter of 8:0 to 20480. This is a temporary hack and should be removed one day.
59.477247] systemd[1]: Mounting POSIX Message Queue File System...
59.480342] systemd[1]: Starting Create dynamic rule for /dev/root link...
59.487268] systemd[1]: Starting Journal Service...
59.490229] systemd[1]: Started Journal Service.
59.490358] systemd[1]: Starting LSB: Set default boot entry if called...
59.492788] systemd[1]: Started Collect Read-Ahead Data.
59.492920] systemd[1]: Started Replay Read-Ahead Data.
59.510391] systemd[1]: Starting Load Kernel Modules...
59.512142] systemd[1]: Starting Setup Virtual Console...
59.523414] systemd[1]: Started Set Up Additional Binary Formats.
59.523455] systemd[1]: Started File System Check on Root Device.
59.523473] systemd[1]: Starting Remount Root and Kernel File Systems...
60.703620] systemd-udevd[294]: starting version 195
60.744210] EXT4-fs (sda2): re-mounted. Opts: acl,user_xattr,nodelalloc