View previous topic :: View next topic |
Author |
Message |
Gianni.Sax n00b

Joined: 15 Jan 2005 Posts: 35 Location: Pisa (Italy)
|
Posted: Fri Feb 18, 2005 2:00 am Post subject: Recuperare reiserFS dopo un calo di tensione... |
|
|
Ciao a tutti,
sono un utente linux alle prime armi.
Avevo installato un server Gentoo in casa mia che ospitava quei 60Gb di dati condivisi sulla rete locale. Ho due hard disk, uno da pochi giga su cui ho installato il sistema e uno da 160Gb (hdb1 reiserfs) su cui ho archiviato più di 60 Gb di dati.
Dopo un calo di tensione al riavvio del server Gentoo la partizione hdb1 mi ha abbandonato. L'errore è il seguente:
Code: | * Checking all filesystems...
Reiserfs super block in block 16 on 0x341 of format 3.6 with standard journal
Blocks (total/free): 40019904/21442716 by 4096 bytes
Filesystem is NOT clean
Replaying journal..
/dev/hda1: clean, 38/15744 files, 7558/62968 blocks (check in 4 mounts)
Reiserfs journal '/dev/hdb1' in blocks [18..8211]: 0 transactions replayed
The problem has occurred looks like a hardware problem. If you have
bad blocks, we advise you to get a new hard drive, because once you
get one bad block that the disk drive internals cannot hide from
your sight,the chances of getting more are generally said to become
much higher (precise statistics are unknown to us), and this disk
drive is probably not expensive enough for you to you to risk your
time and data on it. If you don't want to follow that follow that
advice then if you have just a few bad blocks, try writing to the
bad blocks and see if the drive remaps the bad blocks (that means
it takes a block it has in reserve and allocates it for use for
of that block number). If it cannot remap the block, use badblock
option (-B) with reiserfs utils to handle this block correctly.
bread: Cannot read the block (26836992): (Input/output error).
Warning... fsck.reiserfs for device /dev/hdb1 exited with signal 6.
* Fsck could not correct all errors, manual repair needed
[ !! ]
Give root password for maintenance
(or type Control-D for normal startup): |
Ho provato a fare un fsck.reiserfs --check, ma con scarsi risultati...
Code: | root@geppetto valenti # fsck.reiserfs /dev/hdb1 --check
reiserfsck 3.6.19 (2003 www.namesys.com)
*************************************************************
** If you are using the latest reiserfsprogs and it fails **
** please email bug reports to reiserfs-list@namesys.com, **
** providing as much information as possible -- your **
** hardware, kernel, patches, settings, all reiserfsck **
** messages (including version), the reiserfsck logfile, **
** check the syslog file for any related information. **
** If you would like advice on using this program, support **
** is available for $25 at www.namesys.com/support.html. **
*************************************************************
Will read-only check consistency of the filesystem on /dev/hdb1
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --check started at Fri Feb 18 02:53:28 2005
###########
Replaying journal..
Reiserfs journal '/dev/hdb1' in blocks [18..8211]: 0 transactions replayed
The problem has occurred looks like a hardware problem. If you have
bad blocks, we advise you to get a new hard drive, because once you
get one bad block that the disk drive internals cannot hide from
your sight,the chances of getting more are generally said to become
much higher (precise statistics are unknown to us), and this disk
drive is probably not expensive enough for you to you to risk your
time and data on it. If you don't want to follow that follow that
advice then if you have just a few bad blocks, try writing to the
bad blocks and see if the drive remaps the bad blocks (that means
it takes a block it has in reserve and allocates it for use for
of that block number). If it cannot remap the block, use badblock
option (-B) with reiserfs utils to handle this block correctly.
bread: Cannot read the block (26836992): (Input/output error).
Aborted
|
Cosa mi consigliate di fare per recuperare i dati? Sono disperato... _________________ Hey! Ho un blog! |
|
Back to top |
|
 |
TwoMinds Tux's lil' helper

Joined: 14 Jul 2004 Posts: 146 Location: Italy
|
Posted: Fri Feb 18, 2005 6:53 am Post subject: |
|
|
...quando ho avuto lo stesso errore era proprio l'hd a essersi rotto... non sono riuscito a recuperare nulla... per fortuna avevo partizioni separate e la /home era salva... i settori danneggiati erano nella partizione di /... |
|
Back to top |
|
 |
Cazzantonio Bodhisattva


Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Fri Feb 18, 2005 9:05 am Post subject: |
|
|
Reiserfs è un ottimo fs, sia dal punto di vista delle prestazioni, sia da quello della stabilità "software" (anche se su questo avrei da ridire...)
Il fatto è che appena compaiono dei settori danneggiati va del tutto a puttane e c'è ben poco da farci (se reiresfsck non ti ribecca nulla l'unica potrebbe essere quella di ricorrere a servizi, di solito costosi, di recupero dati.... ci sono ditte che lo fanno)
Io solitamente uso reiserfs per partizioni contenenti molti file piccoli (per esempio /), per i quali reiserfs è ottimizzato, e soprattutto che backuppo spesso (per cui in caso di fallimento hardware non perdo troppi dati)
Per partizioni di storage (che solitamente, per le loro dimensioni, vengono backuppate raramente o mai.... prova te a fare un backup casalingo di una partizione con 30 giga di mp3....) ti consiglio in futuro di usare fs più stabili, anche in caso di fallimento hardware.
Per esempio io userei xfs oppure etx3 _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
 |
[PHT]Giangi Tux's lil' helper


Joined: 27 Dec 2004 Posts: 110 Location: Rome - ITALY -
|
Posted: Fri Feb 18, 2005 11:08 am Post subject: Re: Recuperare reiserFS dopo un calo di tensione... |
|
|
Gianni.Sax wrote: |
Ho provato a fare un fsck.reiserfs --check, ma con scarsi risultati... |
Credo se non lo hai già fatto ..... che devi lanciare il comando in "single usermode"  _________________ Powered by : Gentoo Linux on PowerMac G5 2 CPU 2.00GHz. |
|
Back to top |
|
 |
mouser Veteran


Joined: 10 Aug 2004 Posts: 1419 Location: Milano
|
Posted: Fri Feb 18, 2005 11:23 am Post subject: |
|
|
Come dice Cazzantonio probabilmente ti e' saltato il fs, e c'e' ben poco da fare.....
Ci sono societa' che fanno recupero di dati da hd danneggiati, ma te le consiglio solo se i dati da recuperare sono di *vitale* importanza (l'ultima volta che ho sentito una azienda che fa quel servizio, dovevo recuperare un pst da 1,2 GB di un cliente, e mi hanno chesto 26 euri a MB )
Ti consiglio XFS per la prossima volta
Ciriciao
mouser  |
|
Back to top |
|
 |
Cazzantonio Bodhisattva


Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Fri Feb 18, 2005 11:27 am Post subject: |
|
|
Ecco, prima non potevo postartelo perchè non ero sul mio pc...
io proverei innanzitutto a fare
Code: | badblocks -s -v /dev/hdb1 |
per vedere se ci sono blocchi danneggiati, dopodichè (se non ce ne sono) un
Code: | reiserfsck --rebuild-tree /dev/hdb1 |
per vedere se riesce a recuperare qualcosa dei tuoi dati.
Probabilmente se recupera roba finisce in lost+found con nomi delle directory probabilmente diverse....
non ti scoraggiare, io con tanta pazienza sono riuscito a ricostruire una / completamente a puttane andando a cercare directory per directory... devi avere soprattutto pazienza  _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
 |
prada Tux's lil' helper


Joined: 13 Jan 2005 Posts: 91
|
Posted: Fri Feb 18, 2005 1:05 pm Post subject: |
|
|
Probabilmente sono cavolate ma ho sentito dire che il reiserFS non di offende se anche viene spento malamente, tipo staccando la spina del pc. Per quanto riguarda la mia esperienza ieri la morosa mi ha staccato la spina del portatile mentre compilavo e al riavvio non c'era niente di anomalo. Ho anche eseguito reiserfsck dal livecd (se avvio il sistema dall'hd monta il filesistem in scrittura e ovviamente non lo può correggere) ma non ha trovato niente fuori posto. Ho forse avuto fortuna perhè al momento non stava scrivendo su disco... |
|
Back to top |
|
 |
mouser Veteran


Joined: 10 Aug 2004 Posts: 1419 Location: Milano
|
Posted: Fri Feb 18, 2005 1:12 pm Post subject: |
|
|
Bhe', nelle condizioni con cui sono adesso con il mio porty, praticamente un giorni si un giorno no spengo almeno 3 volte il pc brutalmente con il pulsante (grazie, ati, grazie .... )
Certo, quando devo fare cosi'.... mi accerto che il leddino del disco sia spento che non si lamenti l'hp.
Comunque il fatto che a volte non venga corrotto il fs non e' un buon motivo per spegnere in quel modo....... io, per esempio, mi sono fo****o il dma del disco (ancora grazie, ati.... )
mouser  |
|
Back to top |
|
 |
Gianni.Sax n00b

Joined: 15 Jan 2005 Posts: 35 Location: Pisa (Italy)
|
Posted: Fri Feb 18, 2005 1:20 pm Post subject: |
|
|
Grazie a tutti per l'aiuto.
Ho fatto:
Code: | badblocks -s -v /dev/hdb1 |
Ha trovato 96 settori danneggiati...
Oggi vado a comprare un hd nuovo e un gruppo di continuità.
Non c'è modo di recuperare i files che stanno sui settori buoni con i tool reiserfs? _________________ Hey! Ho un blog! |
|
Back to top |
|
 |
Cazzantonio Bodhisattva


Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Fri Feb 18, 2005 1:44 pm Post subject: |
|
|
se guardi il man ri reiserfsck ci dovrebbe essre un modo per segnalargli quali sono i badblocks (e bakblocks ha l'opzione di generare un file con l'elenco dei badblocks da dare in pasto a reiserfsck)
Non posso essere più preciso perchè non l'ho mai fatto ma penso che si tratti di segnalare i badblocks a reiserfsck e poi magari dare un reiserfsck --rebuild tree o cose simili... _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
 |
Gianni.Sax n00b

Joined: 15 Jan 2005 Posts: 35 Location: Pisa (Italy)
|
Posted: Fri Feb 18, 2005 2:09 pm Post subject: |
|
|
Ok, grazie, ci provo subito.
Ciao. _________________ Hey! Ho un blog! |
|
Back to top |
|
 |
mouser Veteran


Joined: 10 Aug 2004 Posts: 1419 Location: Milano
|
Posted: Fri Feb 18, 2005 2:17 pm Post subject: |
|
|
Se risolvi posta il procedimento..... molti utenti te ne saranno grati!!!!!
Ciriciao
mouser  |
|
Back to top |
|
 |
xchris Advocate


Joined: 10 Jul 2003 Posts: 2824
|
Posted: Fri Feb 18, 2005 2:19 pm Post subject: |
|
|
Gianni.Sax wrote: | Ha trovato 96 settori danneggiati...
|
[flame mode on]
per una volta non e' colpa di reiserfs
[/flame mode off]
......santo backup.....prega per noi....
......santo backup.....
etc etc
mi spiace  _________________ while True:Gentoo() |
|
Back to top |
|
 |
mouser Veteran


Joined: 10 Aug 2004 Posts: 1419 Location: Milano
|
Posted: Fri Feb 18, 2005 2:46 pm Post subject: |
|
|
xchris wrote: |
[flame mode on]
per una volta non e' colpa di reiserfs
[/flame mode off]
|
quoto
Spezzo un "settore" a favore di reiserfs
mouser  |
|
Back to top |
|
 |
gutter Bodhisattva


Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Fri Feb 18, 2005 2:51 pm Post subject: |
|
|
@mouser: nel tuo caso sarebbero utili le sysrq per fare in modo di fare il sync del disco così almeno puoi spegnere essendo "quasi" sicuro che le scritture sul disco sono state effettuare. La documentazione relativa la trovi in /usr/srs/linux/Documentation/sysrq.txt. _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
 |
Cazzantonio Bodhisattva


Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Fri Feb 18, 2005 2:55 pm Post subject: |
|
|
xchris wrote: | [flame mode on]
per una volta non e' colpa di reiserfs
[/flame mode off] |
Diciamo che non è colpa di reiserfs... è proprio una caratteristica di reiserfs quella di sputtanarsi quando avviene un fallimento hardware (a proposito, io sono un sostenitore di reiserfs... sulla /, ma la mia /home la tengo con xfs ) _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
 |
gutter Bodhisattva


Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Fri Feb 18, 2005 3:00 pm Post subject: |
|
|
/me sostenitore di reiserfs
P.S.: ma non ditelo in giro  _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
 |
mouser Veteran


Joined: 10 Aug 2004 Posts: 1419 Location: Milano
|
Posted: Fri Feb 18, 2005 3:11 pm Post subject: |
|
|
Il problema e' che quando faccio halt o reboot e va glu il clientX, il pc mi da' una bellissima schermata o nera, o a scrisce bianche..... e l'unico modo per fargli completare lo spegnimento/riavvio e' tenere pigiato il pulsantino che shutdowna (che termini si inventano per non fare ripetizioni ..... ).
Lo stesso identico problema me lo da quando switcho da X ad una console o quando switcho tra 2 interfacce di X o due console differenti!
Burn, ATI burn
mouser  |
|
Back to top |
|
 |
Gianni.Sax n00b

Joined: 15 Jan 2005 Posts: 35 Location: Pisa (Italy)
|
Posted: Fri Feb 18, 2005 4:15 pm Post subject: |
|
|
Ho fatto così:
Code: | badblocks -o badblocks.output /dev/hdb1 |
E mi ha creato il file con tutti i settori danneggiati, poi questo:
Code: | geppetto root # reiserfsck --badblocks badblocks.output --rebuild-tree /dev/hdb1
reiserfsck 3.6.19 (2003 www.namesys.com)
*************************************************************
** Do not run the program with --rebuild-tree unless **
** something is broken and MAKE A BACKUP before using it. **
** If you have bad sectors on a drive it is usually a bad **
** idea to continue using it. Then you probably should get **
** a working hard drive, copy the file system from the bad **
** drive to the good one -- dd_rescue is a good tool for **
** that -- and only then run this program. **
** If you are using the latest reiserfsprogs and it fails **
** please email bug reports to reiserfs-list@namesys.com, **
** providing as much information as possible -- your **
** hardware, kernel, patches, settings, all reiserfsck **
** messages (including version), the reiserfsck logfile, **
** check the syslog file for any related information. **
** If you would like advice on using this program, support **
** is available for $25 at www.namesys.com/support.html. **
*************************************************************
Will rebuild the filesystem (/dev/hdb1) tree
Bad block list will contain only blocks specified in 'badblocks.output' file
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
create_badblock_bitmap: block number (99108992) points out of fs size (40019904).
create_badblock_bitmap: block number (99108993) points out of fs size (40019904).
create_badblock_bitmap: block number (99108994) points out of fs size (40019904).
[...]
create_badblock_bitmap: block number (107347967) points out of fs size (40019904).
create_badblock_bitmap: block number (107347968) points out of fs size (40019904).
create_badblock_bitmap: block number (107347969) points out of fs size (40019904).
create_badblock_bitmap: block number (107347970) points out of fs size (40019904).
create_badblock_bitmap: block number (107347971) points out of fs size (40019904).
Replaying journal..
Reiserfs journal '/dev/hdb1' in blocks [18..8211]: 0 transactions replayed
The problem has occurred looks like a hardware problem. If you have
bad blocks, we advise you to get a new hard drive, because once you
get one bad block that the disk drive internals cannot hide from
your sight,the chances of getting more are generally said to become
much higher (precise statistics are unknown to us), and this disk
drive is probably not expensive enough for you to you to risk your
time and data on it. If you don't want to follow that follow that
advice then if you have just a few bad blocks, try writing to the
bad blocks and see if the drive remaps the bad blocks (that means
it takes a block it has in reserve and allocates it for use for
of that block number). If it cannot remap the block, use badblock
option (-B) with reiserfs utils to handle this block correctly.
bread: Cannot read the block (26836992): (Input/output error).
Aborted |
Cos'altro posso tentare di fare secondo voi a parte tirare testate nel muro?  _________________ Hey! Ho un blog! |
|
Back to top |
|
 |
gutter Bodhisattva


Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Fri Feb 18, 2005 4:24 pm Post subject: |
|
|
Prova a seguire questo consiglio:
Code: | If it cannot remap the block, use badblock
option (-B) with reiserfs utils to handle this block correctly. |
_________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
 |
Gianni.Sax n00b

Joined: 15 Jan 2005 Posts: 35 Location: Pisa (Italy)
|
Posted: Fri Feb 18, 2005 4:50 pm Post subject: |
|
|
L'ho già fatto, l'opzione -B e --badblocks sono la stessa cosa.
Quando ho fatto
Code: | badblocks -o FILE /dev/hdb1 |
e poi
Code: | reiserfsck --fix-fixable --badblocks FILE /dev/hdb1 |
reiserfsck dovrebbe aver preso la lista dei settori danneggiati che ha fatto badblocks, però c'è qualcosa che non funziona.
Credo che il problema sia hardware e abbastanza pesante. Ogni tanto l'hd fa dei rumori strani...
Lo vado a comprare nuovo e festa finita.
Ad ogni modo il suggerimento che mi ha dato Cazzantonio credo che si traduca in quei due comandini scritti sopra, magari per qualcun altro con l'hd meno rotto del mio funzionano.
Grazie a tutti per gli aiuti che mi avete dato.  _________________ Hey! Ho un blog! |
|
Back to top |
|
 |
Flonaldo Guru


Joined: 21 Nov 2003 Posts: 572 Location: Bologna
|
Posted: Fri Feb 18, 2005 5:08 pm Post subject: |
|
|
Credo che difficilmente recupererai qualcosa...non per scoraggiarti ma da quello che ho letto nn ci vedo nulla di buono!
I reiserfs sono belli, buoni e veloci ma se friggi tutto non possono fare miracoli! _________________ Odio un po' di meno gli uomini coi capelli rossi
La mia musica http://www.last.fm/user/Flonaldo/ |
|
Back to top |
|
 |
.:deadhead:. Advocate


Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Fri Feb 18, 2005 5:39 pm Post subject: |
|
|
Cazzantonio wrote: | Diciamo che non è colpa di reiserfs... è proprio una caratteristica di reiserfs quella di sputtanarsi quando avviene un fallimento hardware (a proposito, io sono un sostenitore di reiserfs... sulla /, ma la mia /home la tengo con xfs ) | Non per flammare, ma davvero XFS in caso di fallimento HW continua bel bello a funzionare?
/me che usa reiser con soddisfazione [e dal quale ho anche recuperato dati dopo brutte storie] ma continua a pensare che un UPS [o batteria del portatile] && Backup regolari siano cmq meglio di ogni fsck [/u] _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
 |
Cazzantonio Bodhisattva


Joined: 20 Mar 2004 Posts: 4514 Location: Somewere around the world
|
Posted: Fri Feb 18, 2005 5:52 pm Post subject: |
|
|
.:deadhead:. wrote: | Non per flammare, ma davvero XFS in caso di fallimento HW continua bel bello a funzionare? |
Devo dire che non ci ho fatto sopra uno studio approfondito... so solo che xfs è ritenuto più stabile di reiserfs, che è meno veloce con i file piccoli, che dovrebbe essere un po' meglio per i file grossi (per questo uso reiserfs per la /, ricca di piccoli file, e xfs per la /home e per le altre partizioni che contengono file "grossi").
Inoltre so che reiserfs è famoso per il fatto che in caso di badblocks è praticamente irrecuperabile.... imamgino che xfs sia almeno parzialmente recuperabile se si becca qualche badblocs... spero sinceramente di non scoprirlo mai
Con questo... i backup delle home e della / li faccio... solo che mi risulta problematico backuppare directory o partizioni che contengono giga e giga di "dati" (immagino che capiate a che dati mi riferisco) che non metterò mai su cd o dvd (non amo quel tipo di supporto, infatti aspiro a comprare un bell'ipod un giorno...)
L'unica cosa che posso sperare è che siano recuperabili in caso di problemi.... di sicuro non posso creare un tar.gz da 20 o 30 giga... non saprei dove metterlo... _________________ Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne |
|
Back to top |
|
 |
.:deadhead:. Advocate


Joined: 25 Nov 2003 Posts: 2963 Location: Milano, Italy
|
Posted: Fri Feb 18, 2005 6:13 pm Post subject: |
|
|
Cazzantonio wrote: | spero sinceramente di non scoprirlo mai | eh quando è l'HW a lasciarti a piedi, è brutta...
Cazzantonio wrote: | (non amo quel tipo di supporto, infatti aspiro a comprare un bell'ipod un giorno...) | che è cmq un HD suscettibile cmq a quasti meccanici...O usa memorie flash di spropositata dimensioni Beh, se non ti piacciono i DVD-R [ormai accessibili come prezzi e stra-comodi (ma cm mai odi i DVD?) ] non ti rimane molto...le cartucce DDS...peccato che il costo del lettore sia alto, le cartucce lente e ad accesso sequenziale, oppure RAID, anche se non è un vero backup, ma solo una garanzia contro guasti meccanici  _________________ Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! |
|
Back to top |
|
 |
|