• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[solvd!]HDD wird beim shutdown -h sporadisch nicht umount'd:

revealed

Guru
Hallo!

Falls ich im Falschen Topic gelandet bin sorry im Vorraus!

Folgendes Problem:
Code:
wild-thing:/home/disk # lspci |egrep SATA
00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02)
02:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02)
Code:
wild-thing:/home/disk # uname -rio
2.6.22.13-0.3-default i386 GNU/Linux
wild-thing:/home/disk # cat /etc/SuSE-release
openSUSE 10.3 (i586)
VERSION = 10.3

Beide SATA's hängen am "ICH" im BIOS stehen die Beiden von der Konfiguration her auf "IDE". Das heißt ich verwende kein AHCI aus kompatibilitätsgründen.

Alle paar mal Herunterfahren, kann die Festplatte nicht unmounted werden, weil: (Vermutung)
Sie bleibt im Standby hängen?!?

Ich hab 2 SATA Festplatten verbaut. Eine davon schläft gern mal ein, weil SuSE auf der anderen installiert ist und darauf die meisten Zugriffe erfolgen.

Jetzt kommt es vor, dass SuSE nicht vollständig herunterfährt.

Und zwar äußert sich das darin, dass das System bis zu dem Satz bei dem der PC normalerweise abschaltet runterfährt, dann aber stehenbleibt.

Wenn man den PC dann mittels "reset" neustartet (Warmstart), läuft eine Festplatte hörbar frisch an. Als würde sie aus dem Standby erwachen.

Bitte um Hilfe!

Code:
wild-thing:/home/disk # hdparm -Tt /dev/sda && hdparm -Tt /dev/sdb && hddtemp /dev/sda /dev/sdb

/dev/sda:
 Timing cached reads:   6286 MB in  2.00 seconds = 3146.13 MB/sec
 Timing buffered disk reads:  222 MB in  3.03 seconds =  73.37 MB/sec

/dev/sdb:
 Timing cached reads:   8020 MB in  2.00 seconds = 4014.70 MB/sec
 Timing buffered disk reads:  214 MB in  3.02 seconds =  70.86 MB/sec
/dev/sda: ST3808110AS: 30°C
/dev/sdb: ST3808110AS: 32°C
wild-thing:/home/disk #

Edit: Weitere Details zu den HDD's nach jeweils einem smartctl --test=long:
(sda)
Code:
wild-thing:/home/disk # smartctl -a /dev/sda
smartctl version 5.37 [i686-suse-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.9 family
Device Model:     ST3808110AS
Serial Number:    5LR705ZC
Firmware Version: 3.AAE
User Capacity:    80.026.361.856 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Wed Dec 19 21:15:20 2007 CET
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:  (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:                 ( 430) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        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:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  27) minutes.

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   116   096   006    Pre-fail  Always       -       208920187
  3 Spin_Up_Time            0x0003   099   098   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       979
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   083   060   030    Pre-fail  Always       -       224040250
  9 Power_On_Hours          0x0032   091   091   000    Old_age   Always       -       8595
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       747
187 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
189 Unknown_Attribute       0x003a   100   100   000    Old_age   Always       -       0
190 Temperature_Celsius     0x0022   069   048   045    Old_age   Always       -       555089951
194 Temperature_Celsius     0x0022   031   052   000    Old_age   Always       -       31 (Lifetime Min/Max 0/13)
195 Hardware_ECC_Recovered  0x001a   054   045   000    Old_age   Always       -       151912723
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
200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -       0
202 TA_Increase_Count       0x0032   100   253   000    Old_age   Always       -       0

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%      8594         -
# 2  Short offline       Completed without error       00%      7082         -
# 3  Short offline       Completed without error       00%      4440         -
# 4  Extended offline    Completed without error       00%      4440         -
# 5  Short offline       Completed without error       00%      3549         -

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.
(sdb)
Code:
smartctl version 5.37 [i686-suse-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.9 family
Device Model:     ST3808110AS
Serial Number:    4LS2WX2A
Firmware Version: 3.AAH
User Capacity:    80.026.361.856 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Wed Dec 19 21:04:49 2007 CET
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:  (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:                 ( 430) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        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:        (   1) minutes.
Extended self-test routine
recommended polling time:        (  27) minutes.

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   114   088   006    Pre-fail  Always       -       79012167
  3 Spin_Up_Time            0x0003   095   094   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       1006
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   085   060   030    Pre-fail  Always       -       348857377
  9 Power_On_Hours          0x0032   092   092   000    Old_age   Always       -       7345
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       746
187 Unknown_Attribute       0x0032   100   100   000    Old_age   Always       -       0
189 Unknown_Attribute       0x003a   100   100   000    Old_age   Always       -       0
190 Temperature_Celsius     0x0022   067   047   045    Old_age   Always       -       571998241
194 Temperature_Celsius     0x0022   033   053   000    Old_age   Always       -       33 (Lifetime Min/Max 0/16)
195 Hardware_ECC_Recovered  0x001a   048   046   000    Old_age   Always       -       139061398
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
200 Multi_Zone_Error_Rate   0x0000   100   253   000    Old_age   Offline      -       0
202 TA_Increase_Count       0x0032   100   253   000    Old_age   Always       -       0

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%      7345         -
# 2  Short offline       Completed without error       00%      6144         -
# 3  Short offline       Completed without error       00%      2194         -

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.
/Edit


Gruß

R
 
OP
revealed

revealed

Guru
heute ist es wieder passiert!

Der PC lief über nacht. Morgens hab ich nur kurz die Maus bewegt, Emails angeschaut und dann heruntergefahren.

Zack bleibt er stehen und ich muss von Hand ausschalten.

Eine Fix würde mir in der Früh 5 vergoidete Minuten ersparen. Oder weiss jemand Abhilfe kann ich Standby für HDD's irgendwie unterbinden?

Mfg

R
 

Nilres

Member
Initscript anlegen was den standby aufhebt.
Im zweifel einfach nen touch und rm befehl und gut?!

mfg nils
 
OP
revealed

revealed

Guru
Initscript anlegen was den standby aufhebt.
Danke für die Antwort!

Wie könnte man das realisieren?

und

müsste das dann in "rc 6 (reboot)" bzw wo kann ich das eintragen?

Danke nochmal für die Antwort, das könnte wirklich eine vorrübergehende Lösung sein.

Anders währe es mir fast lieber Festplattenstandby zu deaktivieren, weil das Anlaufen und Anhalten empfinde ich als unnötige mechanische last?

Meint ihr das Problem könnte bei diesem Auszug aus "/etc/init.d/halt" liegen?::
Code:
# we do not really unmount /proc any more since halt(8) might need it
#umount -anvt proc

# Make reboot noise and wait a few seconds to give harddisks the chance
# to really flush their buffers before power goes down.
if test -n "$REDIRECT" ; then
    case "$HALT_SOUND" in
    "yes"|"quint")
        echo -en "\033[10;393]\a\033[10;262]"
        ;;
    "octave")
        for tone in 524 491 440 393 349 328 295 262; do
            echo -en "\033[10;${tone}]\a"
            usleep 125000
        done
        echo -en "\033[10;262]"
        ;;
    "no")
        ;;
    *)
        echo -en "\033[10;440]\a"
        usleep 250000
        ;;
    esac
else
    test "$HALT_SOUND" = "no" || echo -en "\a"
fi
echo $message
test "$HALT_SOUND" = "no" || echo -en "\a"

test -n "$HALT_POWERDOWN_INSERT" && $HALT_POWERDOWN_INSERT

# Set system console back to intial value
test -n "$REDIRECT" -a -n "$CONSOLE" && setconsole $REDIRECT < $CONSOLE

# Now talk to kernel
exec $command -d -f -n $opts

Was bedeutet dieses "n" in der Zeile?
exec $command -d -f -n $opts

Gruß

R
 
OP
revealed

revealed

Guru
Also das Problem bestand bis jetzt...

Heute gab es den fglrx-8-1 und in den Releasenotes steht:
Suspending to RAM or DISK on kernel version 2.6.23 or later no longer fails
Mal sehen ob das mein Problem behebt.

Bin mal gespannt und berichte, weil das Problem nach wie vor bestand. Aber das muss erst getestet werden, das heisst ich seh das im Verlauf der kommenden Woche.

Gruß

R
 
OP
revealed

revealed

Guru
also heute, normalerweise ist das heute Früh passiert... meine ich! Also in dem Zeitraum war es auffällig. Hatte einen Rythmus.

... ist es aber nicht. Ich werde weiter beobachten...

edit: 25.01.2008:
Also die Woche ist das Problem nicht mehr aufgetreten. Aber da ich der Ruhe wie immer nicht ganz traue, werd ich das denke ich noch eine weitere Woche beobachten. Leider weiß ich nicht wie ich es genau reproduzieren kann... deswegen... aber es ist nicht mehr passiert bisher.. also bin ich zuversichtlich. Wenns läuft markiere ich mit gelöst....
/edit

edit2: 30.01.2008:
Das Problem ist weiterhin nicht mehr aufgetreten, deswegen [solved!]
Falls es dochnochmal kommt, schieb ich den Thread wieder hoch :)
/edit2

Danke! :)

Gruß

R
 
Oben