DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
Old 26th August 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Default

Quote:
Originally Posted by jggimi View Post
(This will take time -- perhaps more than a week. But the problem has already gone on that long, and 2TB drives are costly.)
I think i will give it try(i just started the test).Bad news is Ubuntu is on a laptop.But i think i won't be a problem even for my laptop to work with it for a week or more.

But there are even worse news.Today i had a pc freeze on my desktop with openbsd,shut it down with the power button and could not open it.This time i ran fsck(and said i have bad sectors.)It also said to run fsck_ffs but when i do it's duration is small-the time to just press a button-and nothing changes.I think that all my disks right now follow Murphy's Law: "If anything can go wrong, it will".

Last edited by sepuku; 26th August 2011 at 03:40 PM.
Reply With Quote
Old 26th August 2011
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Quote:
Originally Posted by sepuku View Post
...shut it down with the power button...
You've reported doing this multiple times. Are you aware that OpenSSH in included with OpenBSD? You can control your OpenBSD system from another, even from the Internet. You could # pkill Xorg or # halt or ... perhaps look through logs to see what is happening, while it is happening. This isn't Windows, mashing a power button is not always necessary.

See the ssh(1) and sshd(8) man pages, if you've never used them before.
Quote:
It also said to run fsck_ffs but when i do it's duration is small-the time to just press a button-and nothing changes.
That is not helpful towards a diagnosis. A log of the specific fsck_ffs command string and the output returned will be required for any further assistance with this particular problem. It appears you've never seen this; it would be helpful if you would take a look at it, particularly section b.
Quote:
I think that all my disks right now follow Murphy's Law: "If anything can go wrong, it will".
While that is possible, it's certainly not yet clear to me that this is the case.

More patience, more thoughtfulness, less panic.
Reply With Quote
Old 26th August 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Default

Quote:
Originally Posted by jggimi View Post
Are you aware that OpenSSH in included with OpenBSD? You can control your OpenBSD system from another, even from the Internet. You could # pkill Xorg or # halt or ... perhaps look through logs to see what is happening, while it is happening. This isn't Windows, mashing a power button is not always necessary.

See the ssh(1) and sshd(8) man pages, if you've never used them before.
Nope,had no idea i could use this kind of tools.I thought ssh was for sending/reading mails in a secure way.I'll read the man pages for now and see what i can do.



Quote:
Originally Posted by jggimi View Post
It appears you've never seen this; it would be helpful if you would take a look at it, particularly section b.

OK got it,i'll try to be more analytic from now on.


Quote:
Originally Posted by jggimi View Post
While that is possible, it's certainly not yet clear to me that this is the case.
Hope it's not.I'm so happy i managed to make my OBSD to work,with lots of help from the forum of course-,and sad on the other hand that had to face so many issues the last days.Problems i had no idea the existed.

But in my country we say ; "every obstacle is for good" so i hope when this ends i'll be wiser.
Reply With Quote
Old 8th September 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Default

The badblocks test has finally ended;it took 3-4 days( i had to stop it once cause i needed to take the laptop with me) and started it over.

The output of badblocks -w is

Code:
badblocks: Unknown code ext2 adding to in-memory bad block list

and above that it has numbers from 857210853 to 857211362.

I can remember that before ending i could see even smaller numbers to the terminal(around 7******** don't remember exactly :/ ) that now cannot be shown to the terminal and cannot copy paste the onces i can see right now.
Reply With Quote
Old 8th September 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Default

And the smartctl -a /dev/sdc returns;


Code:
sepuku@sepuku-laptop:~$ sudo smartctl -a /dev/sdc
[sudo] password for sepuku: 
smartctl 5.40 2010-03-16 r3077 [i686-pc-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Device Model:     ST2000DL001-9VT156
Serial Number:    5YD0H1YX
Firmware Version: CC96
User Capacity:    2,000,398,934,016 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 4
Local Time is:    Thu Sep  8 14:52:35 2011 EEST
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
See vendor-specific Attribute list for marginal Attributes.

General SMART Values:
Offline data collection status:  (0x82)	Offline data collection activity
					was completed without error.
					Auto Offline Data Collection: Enabled.
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: 		 ( 623) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					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: 	 ( 255) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x103b)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table 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   125   100   006    Pre-fail  Always       -       926982592
  3 Spin_Up_Time            0x0003   092   092   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   099   099   020    Old_age   Always       -       1700
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   066   060   030    Pre-fail  Always       -       3993913
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       684
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       168
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   083   000    Old_age   Always       -       472453611630
189 High_Fly_Writes         0x003a   097   097   000    Old_age   Always       -       3
190 Airflow_Temperature_Cel 0x0022   059   038   045    Old_age   Always   In_the_past 41 (0 30 44 29)
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       -       91
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       1900
194 Temperature_Celsius     0x0022   041   062   000    Old_age   Always       -       41 (0 17 0 0)
195 Hardware_ECC_Recovered  0x001a   125   100   000    Old_age   Always       -       926982592
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      -       123819612177130
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       901582940
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       3972632928

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    Aborted by host               90%       504         -
# 2  Short offline       Completed without error       00%       504         -

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.
Reply With Quote
Old 8th September 2011
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

The script(1) tool is a wonderful aid to logging what you are doing; I mentioned it to you in one of your other threads the other day. But you have reproduced for us key information from badblocks, and from SMART. And this time, you managed to reproduce for us a complete report from smartctl. Thank you.

It looks to me like the badblocks program was unable to "clear" up bad sectors for you (by having the drive select from spare sectors) when it wrote patterns.

You still have 18 "Pending" sectors, and 16 "Offline uncorrectable" sectors. The latter came during the one-and-only long offline test ever performed on the drive. That test never completed, it was stopped after only 10% of the sectors were inspected.

This failure to clear sectors indicates to me that the drive has no spare sectors remaining. If it were my drive, I would no longer trust it.

If you want a picture of how many bad sectors are actually on that drive, run a long offline test. This will read every sector on the drive. It will take longer than the 255 minutes described in the smartctl report; that is the time it would take if all sectors were working. Retrying bad sectors will extend that time, as the drive will retry and retry and retry each bad sector.

Once the test completes, you can compare your 16 offline uncorrectable sectors now with the number in a new report.
Reply With Quote
Old 8th September 2011
sepuku's Avatar
sepuku sepuku is offline
Real Name: Vizard Sepuku
Package Pilot
 
Join Date: Jun 2011
Location: Athens & Chania,Greece
Posts: 143
Default

Quote:
Originally Posted by jggimi View Post
And this time, you managed to reproduce for us a complete report from smartctl. Thank you.
If someone should be thanking here it's me not you; Your volunteerism exceeds human imagination.We,noobs are sure tiring some-if not all- times.Once again thank you very much.


Quote:
Originally Posted by jggimi View Post
This failure to clear sectors indicates to me that the drive has no spare sectors remaining. If it were my drive, I would no longer trust it.
And since you wouldn't i won't either.It's too bad 'cause i bought it some months ago and on the other hand i have a western digital external disk for about 4 years and so far it works great.And i'm kinda more unlucky 'cause by changing the case i lost gurantee but it's ok; i've learned a lot of things this days and some useful tools too.Thank you again for all the help jggimi.
Reply With Quote
Old 8th September 2011
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Ooops. That will teach me to read the forum from a phone. I missed the raw values. Pending and offline uncorrectable values are zero. Your drive appears to be "repaired".
Reply With Quote
Old 8th September 2011
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

One more thing.

Since badblocks had some trouble -- with a 510-sector area (that ended at at sector 857211362) and some other sector sets whose sector numbers you did not capture, I would *still* run a test of the drive electronics (short offline) and of the media (long offline). It is possible that the drive is functioning, but the USB electronics (or your cable) are causing trouble.

If both tests complete without error, you can then consider the enclosure electronics and USB cable to be "suspect." At that point I would swap the drive in the enclosure with a known-good drive, and put the 2TB drive into an internal bay in a desktop or server for additional testing.
Reply With Quote
Reply

Tags
format, hard disk, master boot record, seagate

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard disk reliability ephemera General Hardware 32 20th April 2010 10:17 AM
Hard disk utilization Greg_Morgan General software and network 3 16th October 2009 12:13 PM
Formatting Hard Disk Drive to UFS in OS X 10.5 Turquoise88 Other BSD and UNIX/UNIX-like 1 7th March 2009 09:57 PM
Hard disk bottle neck deathsoul FreeBSD General 1 28th September 2008 10:44 AM
Copy VCD film to hard disk mfaridi FreeBSD General 4 5th June 2008 01:57 PM


All times are GMT. The time now is 08:43 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick