cat /proc/mdstat
Harris Kosmidis
hkosmidi at laboratorium.gr
Tue May 13 12:56:37 EEST 2014
On 13/5/2014 12:42 μμ, rouvas at mm.di.uoa.gr wrote:
> Haris Alatas wrote:
>> On 13/5/2014 10:54, rouvas at mm.di.uoa.gr wrote:
>>> Haris Alatas wrote:
>>>> On 13/5/2014 10:13, rouvas at mm.di.uoa.gr wrote:
>>>>> Edo kai 2-3 meres, mou bgazei to eksis:
>>>>>
>>>>> [root at server ~]# cat /proc/mdstat
>>>>> Personalities : [raid1]
>>>>> md3 : active raid1 sdb5[1] sda5[0]
>>>>> 1847606608 blocks super 1.0 [2/2] [UU]
>>>>> resync=DELAYED
>>>>>
>>>>> md2 : active raid1 sdb3[1] sda3[0]
>>>>> 1073741688 blocks super 1.0 [2/2] [UU]
>>>>> [==================>..] check = 92.3% (991167232/1073741688)
>>>>> finish=1185.3min speed=1160K/sec
>>>>>
>>>>> md1 : active raid1 sdb2[1] sda2[0]
>>>>> 524276 blocks super 1.0 [2/2] [UU]
>>>>> resync=DELAYED
>>>>>
>>>>> md0 : active raid1 sdb1[1] sda1[0]
>>>>> 8388596 blocks super 1.0 [2/2] [UU]
>>>>> resync=DELAYED
>>>>>
>>>>> unused devices: <none>
>>>>> [root at server ~]#
>>>>>
>>>>>
>>>>> Me tin grammi pou kanei to check stadiaka na auksanei to pososto tis.
>>>>> To pira xampari to Sabbato pou edeixne peripoy 70%.
>>>>>
>>>>> Simeiono, oti to mixanima leitourgei kanonika, peran apo merikes
>>>>> "adikaiologites" kai "sporadikes" auksiseis ston forto (pou itan kai
>>>>> to
>>>>> arxiko sima pou elaba kai arxisa na to psaxno).
>>>>>
>>>>> Mias kai den exo empeiria apo RAID, mporei kapoios na me diafotisei?
>>>>>
>>>>> Giatre mou, ti kako me brike; Me brike; Na paro bitamines, Geriatrix,
>>>>> na
>>>>> metakomiso se alla pio eukrata klimata (allakso diskous);
>>>>>
>>>>> Euxaristo,
>>>>> -Stathis
>>>>>
>>>>>
>>>>>
>>>> Αγνόησε το κάνει check. Το πιο πιθανό είναι να είναι προγρμαματισμένο
>>>> στο /etc/cron.d να κάνει check κάθε κυριακή στις 01.00
>>> Euxaristo, gia tis grigores apantiseis... apanto se olous mazi.
>>>
>>>
>>> Ta SMART utils den einai egkatestimena, tha do an mporo na ta
>>> egkatastiso.
>>>
>>> Ta logs (/var/log/messages) den lene tipota sxetiko.
>>> Sto /var/log/dmesg, leei mono:
>>>
>>> EXT4-fs (md2): warning: checktime reached, running e2fsck is recommended
>>> kjournald starting. Commit interval 5 seconds
>>> EXT3-fs (md1): warning: checktime reached, running e2fsck is recommended
>>> EXT3-fs (md1): using internal journal
>>> EXT3-fs (md1): mounted filesystem with ordered data mode
>>> EXT4-fs (md3): warning: checktime reached, running e2fsck is recommended
>>> EXT4-fs (md3): mounted filesystem with ordered data mode. Opts:
>>> Adding 8388588k swap on /dev/md0. Priority:-1 extents:1 across:8388588k
>>>
>>> alla eks'oson gnorizo auto bgainei kata to boot kai to mixanima einai
>>> idi
>>> 31 meres pano, ara den prepei na einai auto.
>>>
>>> Ante na kanei self-check... 4 meres (Sa-Ky-De-Tr) check kanei; Mexri na
>>> teleiosei to ena check tha erthei i ora gia to epomeno... den tou menei
>>> xronos na kanei kai kati xrisimo... ;-) megali anasfaleia blepo sto
>>> mixanima...
>>>
>>> [root at server log]# crontab -l
>>> 0 0 * * * /root/scripts/raid-check >
>>> /dev/null 2>&1
>>>
>>>
>>> [root at server log]# cat /root/scripts/raid-check | head -12
>>> #!/bin/bash
>>> #
>>>
>>> var=$(cat /proc/mdstat | grep _ | cut -d '[' -f 3)
>>>
>>> if [ "$var" == "" ]; then
>>>
>>> echo "RAID STATUS OK"
>>>
>>> [..snip..]
>>>
>>>
>>> BTW, einai "Centos release 6.5 (Final)", an auto boithaei.
>>>
>>> Ara, to konklavio apofainetai oti den iparxei logos anisixias?
>>> Toulaxiston apo tous diksous?
>>>
>> ma an ypirxe den 8a ekane check. degrade 8a ekane
> Kalos.
>
> To "resync=DELAYED", giati to bgazei;
>
> An apo to simeio auto, oi erotiseis mou apatountai an aplos katso na
> diabaso ta peri md*, min distaseis na mou RTFM...
>
> -Stathis
>
>
Μόλις τελειώσει ένα απο αυτά κάνει resync το άλλο. Δεν τα κάνει όλα
μαζί. Νομίζω γι' αυτό βγάζει το delayed.
More information about the Linux-greek-users
mailing list