[Linux-Biella] Help VM zombie

Daniele Segato daniele.bilug a gmail.com
Mar 9 Ago 2011 12:40:37 CEST


On Tue, 2011-08-09 at 12:05 +0200, PaulTT wrote:
> On 08/08/2011 12:39, Daniele Segato 說:
> > ...
> > problemi al disco *virtuale* della mia VM...
> >
> > ho guardato nella macchina host (non so come mi sia sfuggito prima,
> > forse semplicemente non ho pensato ad un problema nella macchina host e
> > non ho guardato).
> 
> lol, interessante :D:D:D:D
> 
> PS odio il termine host, o ospite che sia, indicano sia la macchina 
> ospite che quella ospitata, (e la stessa confusione genera anche quando 
> usato come termine comune) si capisce un caxxo, credo tu ti riferisca a 
> quella che ospita, giusto?

vero è un termine un po ambiguo

io mi riferisco alla macchina "madre", quella fisica che contiene le VM

in questa conversazione ho (credo) sempre inteso
host = macchina fisica
guest = macchina virtuale


> > vostra opinione:
> > disco andato?
> >
> >> [399204.732141] ata1: EH in SWNCQ mode,QC:qc_active 0x1 sactive 0x1
> >> [399204.732192] ata1: SWNCQ:qc_active 0x1 defer_bits 0x0 last_issue_tag 0x0
> >> [399204.732193]   dhfis 0x1 dmafis 0x0 sdbfis 0x0
> >> [399204.732245] ata1: ATA_REG 0x50 ERR_REG 0x0
> >> [399204.732269] ata1: tag : dhfis dmafis sdbfis sacitve
> >> [399204.732294] ata1: tag 0x0: 1 0 0 1
> >> [399204.732331] ata1.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x6 frozen
> >> [399204.732363] ata1.00: failed command: WRITE FPDMA QUEUED
> >> [399204.732393] ata1.00: cmd 61/00:00:40:f2:19/04:00:02:00:00/40 tag 0 ncq 524288 out
> >> [399204.732395]          res 40/00:01:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
> >> [399204.732479] ata1.00: status: { DRDY }
> >> [399204.732508] ata1: hard resetting link
> >> [399204.732510] ata1: nv: skipping hardreset on occupied po...
> 
> 
> sembrerebbe
> ps: che fs hai li' sopra?


ext3 nella macchina host (fisica)
ext3 nella macchina guest (virtuale)

nella macchina virtuale vedevo tanti begli errori di failure sul disco

e qualcosa tipo:
EXT3-FS: barriers not enabled

con successivo remount

cercando un po' sulla rete ho trovato che l'errore sopra (macchina
fisica) nel 2008 era un bug del kernel che aveva un timeout troppo basso
per alcuni dischi

http://kerneltrap.org/mailarchive/linux-kernel/2008/9/22/3366674

ma il mio kernel è un .32 del 2011 (invecchiato solo 1 anno ma già
ottimo)

ho effettuato un test così:

e2fsck -c -f -p -v /dev/sda1

non ha trovato alcun errore

ho anche lanciato il test smart:

smartctl --test=long /dev/sda

anche questo non ha evidenziato nulla di particolare

ti copio l'output, magari qualcosa ti salta all'occhio (non sono molto
esperto a leggere il report S.M.A.R.T.)

# smartctl -a /dev/sda

smartctl 5.40 2010-07-12 r3124 [x86_64-unknown-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen,
http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi Deskstar 7K80
Device Model:     HDS728080PLA380
Serial Number:    PFDB30S4S4VXPM
Firmware Version: PF2OA60A
User Capacity:    82,348,277,760 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 1
Local Time is:    Tue Aug  9 12:40:15 2011 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:  (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: 		 (1828) 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: 	 (  31) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE
UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always
-       1
  2 Throughput_Performance  0x0005   157   157   050    Pre-fail
Offline      -       215
  3 Spin_Up_Time            0x0007   107   107   024    Pre-fail  Always
-       178 (Average 193)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always
-       664
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always
-       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always
-       0
  8 Seek_Time_Performance   0x0005   146   146   020    Pre-fail
Offline      -       26
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always
-       6431
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always
-       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always
-       586
192 Power-Off_Retract_Count 0x0032   100   100   050    Old_age   Always
-       824
193 Load_Cycle_Count        0x0012   100   100   050    Old_age   Always
-       824
194 Temperature_Celsius     0x0002   161   161   000    Old_age   Always
-       34 (Lifetime Min/Max 13/40)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always
-       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always
-       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age
Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   253   000    Old_age   Always
-       1

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%      6410
-
# 2  Short offline       Completed without error       00%      6409
-

Warning! SMART Selective Self-Test Log Structure error: invalid SMART
checksum.
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.







C'è giusto quell'ultimo Warning che non comprendo... su google non ho
trovato risposta a cosa significhi.



Maggiori informazioni sulla lista Linux