Newsgroup: it.comp.os.linux.sys
Titolo: [ReiserFS] Recover - URGENTE

Ciao,
purtroppo non riesco a recuperare i dati da un volume logico (LVM1) su 
un disco ATA formattato reiserfs.
Il disco ha sopra 4 volumi ma solo 1 non è più leggibibile 
(/dev/VG00/LV00), ho fatto una mappa dei badblocks (sono 160) e poi ho 
lanciato
reiserfsck --rebuild-tree -B blocchi_cattivi_LV00.txt /dev/VG00/LV00
ma non sembra servire a nulla:
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 
reiser...@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/VG00/LV00) tree
Bad block list will contain only blocks specified in 
'blocchi_cattivi_LV00.txt' 
                                 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 (131776) points out of fs size (65536).
create_badblock_bitmap: block number (131780) points out of fs size (65536).
create_badblock_bitmap: block number (131781) points out of fs size (65536).
create_badblock_bitmap: block number (131782) points out of fs size (65536).
create_badblock_bitmap: block number (131783) points out of fs size (65536).
create_badblock_bitmap: block number (131784) points out of fs size (65536).
create_badblock_bitmap: block number (131785) points out of fs size (65536).
create_badblock_bitmap: block number (131786) points out of fs size (65536).
create_badblock_bitmap: block number (131787) points out of fs size (65536).
create_badblock_bitmap: block number (131788) points out of fs size (65536).
create_badblock_bitmap: block number (131789) points out of fs size (65536).
create_badblock_bitmap: block number (131790) points out of fs size (65536).
create_badblock_bitmap: block number (131791) points out of fs size (65536).
create_badblock_bitmap: block number (131792) points out of fs size (65536).
create_badblock_bitmap: block number (131793) points out of fs size (65536).
create_badblock_bitmap: block number (131794) points out of fs size (65536).
create_badblock_bitmap: block number (131795) points out of fs size (65536).
create_badblock_bitmap: block number (131796) points out of fs size (65536).
create_badblock_bitmap: block number (131797) points out of fs size (65536).
create_badblock_bitmap: block number (131798) points out of fs size (65536).
create_badblock_bitmap: block number (131799) points out of fs size (65536).
create_badblock_bitmap: block number (131800) points out of fs size (65536).
create_badblock_bitmap: block number (131801) points out of fs size (65536).
create_badblock_bitmap: block number (131802) points out of fs size (65536).
create_badblock_bitmap: block number (131803) points out of fs size (65536).
create_badblock_bitmap: block number (131804) points out of fs size (65536).
create_badblock_bitmap: block number (131805) points out of fs size (65536).
create_badblock_bitmap: block number (131806) points out of fs size (65536).
create_badblock_bitmap: block number (131807) points out of fs size (65536).
create_badblock_bitmap: block number (131808) points out of fs size (65536).
create_badblock_bitmap: block number (131809) points out of fs size (65536).
create_badblock_bitmap: block number (131810) points out of fs size (65536).
create_badblock_bitmap: block number (131811) points out of fs size (65536).
create_badblock_bitmap: block number (131812) points out of fs size (65536).
create_badblock_bitmap: block number (131813) points out of fs size (65536).
create_badblock_bitmap: block number (131814) points out of fs size (65536).
create_badblock_bitmap: block number (131815) points out of fs size (65536).
create_badblock_bitmap: block number (131816) points out of fs size (65536).
create_badblock_bitmap: block number (131817) points out of fs size (65536).
create_badblock_bitmap: block number (131818) points out of fs size (65536).
create_badblock_bitmap: block number (131819) points out of fs size (65536).
create_badblock_bitmap: block number (131820) points out of fs size (65536).
create_badblock_bitmap: block number (131821) points out of fs size (65536).
create_badblock_bitmap: block number (131822) points out of fs size (65536).
create_badblock_bitmap: block number (131823) points out of fs size (65536).
create_badblock_bitmap: block number (131824) points out of fs size (65536).
create_badblock_bitmap: block number (131825) points out of fs size (65536).
create_badblock_bitmap: block number (131826) points out of fs size (65536).
create_badblock_bitmap: block number (131827) points out of fs size (65536).
create_badblock_bitmap: block number (131828) points out of fs size (65536).
create_badblock_bitmap: block number (131829) points out of fs size (65536).
create_badblock_bitmap: block number (131830) points out of fs size (65536).
create_badblock_bitmap: block number (131831) points out of fs size (65536).
create_badblock_bitmap: block number (131832) points out of fs size (65536).
create_badblock_bitmap: block number (131833) points out of fs size (65536).
create_badblock_bitmap: block number (131834) points out of fs size (65536).
create_badblock_bitmap: block number (131835) points out of fs size (65536).
create_badblock_bitmap: block number (131836) points out of fs size (65536).
create_badblock_bitmap: block number (131837) points out of fs size (65536).
create_badblock_bitmap: block number (131838) points out of fs size (65536).
create_badblock_bitmap: block number (131839) points out of fs size (65536).
create_badblock_bitmap: block number (135216) points out of fs size (65536).
create_badblock_bitmap: block number (135220) points out of fs size (65536).
create_badblock_bitmap: block number (135221) points out of fs size (65536).
create_badblock_bitmap: block number (135222) points out of fs size (65536).
create_badblock_bitmap: block number (135223) points out of fs size (65536).
create_badblock_bitmap: block number (135224) points out of fs size (65536).
create_badblock_bitmap: block number (135225) points out of fs size (65536).
create_badblock_bitmap: block number (135226) points out of fs size (65536).
create_badblock_bitmap: block number (135227) points out of fs size (65536).
create_badblock_bitmap: block number (135228) points out of fs size (65536).
create_badblock_bitmap: block number (135229) points out of fs size (65536).
create_badblock_bitmap: block number (135230) points out of fs size (65536).
create_badblock_bitmap: block number (135231) points out of fs size (65536).
create_badblock_bitmap: block number (135232) points out of fs size (65536).
create_badblock_bitmap: block number (135233) points out of fs size (65536).
create_badblock_bitmap: block number (135234) points out of fs size (65536).
create_badblock_bitmap: block number (135235) points out of fs size (65536).
create_badblock_bitmap: block number (135236) points out of fs size (65536).
create_badblock_bitmap: block number (135237) points out of fs size (65536).
create_badblock_bitmap: block number (135238) points out of fs size (65536).
create_badblock_bitmap: block number (135239) points out of fs size (65536).
create_badblock_bitmap: block number (135240) points out of fs size (65536).
create_badblock_bitmap: block number (135241) points out of fs size (65536).
create_badblock_bitmap: block number (135242) points out of fs size (65536).
create_badblock_bitmap: block number (135243) points out of fs size (65536).
create_badblock_bitmap: block number (135244) points out of fs size (65536).
create_badblock_bitmap: block number (135245) points out of fs size (65536).
create_badblock_bitmap: block number (135246) points out of fs size (65536).
create_badblock_bitmap: block number (135247) points out of fs size (65536).
create_badblock_bitmap: block number (135248) points out of fs size (65536).
create_badblock_bitmap: block number (135249) points out of fs size (65536).
create_badblock_bitmap: block number (135250) points out of fs size (65536).
create_badblock_bitmap: block number (135251) points out of fs size (65536).
create_badblock_bitmap: block number (135252) points out of fs size (65536).
create_badblock_bitmap: block number (135253) points out of fs size (65536).
create_badblock_bitmap: block number (135254) points out of fs size (65536).
create_badblock_bitmap: block number (135255) points out of fs size (65536).
create_badblock_bitmap: block number (135256) points out of fs size (65536).
create_badblock_bitmap: block number (135257) points out of fs size (65536).
create_badblock_bitmap: block number (135258) points out of fs size (65536).
create_badblock_bitmap: block number (135259) points out of fs size (65536).
create_badblock_bitmap: block number (135260) points out of fs size (65536).
create_badblock_bitmap: block number (135261) points out of fs size (65536).
create_badblock_bitmap: block number (135262) points out of fs size (65536).
create_badblock_bitmap: block number (135263) points out of fs size (65536).
create_badblock_bitmap: block number (137296) points out of fs size (65536).
create_badblock_bitmap: block number (137300) points out of fs size (65536).
create_badblock_bitmap: block number (137301) points out of fs size (65536).
create_badblock_bitmap: block number (137302) points out of fs size (65536).
create_badblock_bitmap: block number (137303) points out of fs size (65536).
create_badblock_bitmap: block number (233032) points out of fs size (65536).
create_badblock_bitmap: block number (233036) points out of fs size (65536).
create_badblock_bitmap: block number (233037) points out of fs size (65536).
create_badblock_bitmap: block number (233038) points out of fs size (65536).
create_badblock_bitmap: block number (233039) points out of fs size (65536).
create_badblock_bitmap: block number (233040) points out of fs size (65536).
create_badblock_bitmap: block number (233041) points out of fs size (65536).
create_badblock_bitmap: block number (233042) points out of fs size (65536).
create_badblock_bitmap: block number (233043) points out of fs size (65536).
create_badblock_bitmap: block number (233044) points out of fs size (65536).
create_badblock_bitmap: block number (233045) points out of fs size (65536).
create_badblock_bitmap: block number (233046) points out of fs size (65536).
create_badblock_bitmap: block number (233047) points out of fs size (65536).
create_badblock_bitmap: block number (233048) points out of fs size (65536).
create_badblock_bitmap: block number (233049) points out of fs size (65536).
create_badblock_bitmap: block number (233050) points out of fs size (65536).
create_badblock_bitmap: block number (233051) points out of fs size (65536).
create_badblock_bitmap: block number (233052) points out of fs size (65536).
create_badblock_bitmap: block number (233053) points out of fs size (65536).
create_badblock_bitmap: block number (233054) points out of fs size (65536).
create_badblock_bitmap: block number (233055) points out of fs size (65536).
create_badblock_bitmap: block number (233056) points out of fs size (65536).
create_badblock_bitmap: block number (233057) points out of fs size (65536).
create_badblock_bitmap: block number (233058) points out of fs size (65536).
create_badblock_bitmap: block number (233059) points out of fs size (65536).
create_badblock_bitmap: block number (233060) points out of fs size (65536).
create_badblock_bitmap: block number (233061) points out of fs size (65536).
create_badblock_bitmap: block number (233062) points out of fs size (65536).
create_badblock_bitmap: block number (233063) points out of fs size (65536).
create_badblock_bitmap: block number (233064) points out of fs size (65536).
create_badblock_bitmap: block number (233065) points out of fs size (65536).
create_badblock_bitmap: block number (233066) points out of fs size (65536).
create_badblock_bitmap: block number (233067) points out of fs size (65536).
create_badblock_bitmap: block number (233068) points out of fs size (65536).
create_badblock_bitmap: block number (233069) points out of fs size (65536).
create_badblock_bitmap: block number (233070) points out of fs size (65536).
create_badblock_bitmap: block number (233071) points out of fs size (65536).
create_badblock_bitmap: block number (233072) points out of fs size (65536).
create_badblock_bitmap: block number (233073) points out of fs size (65536).
create_badblock_bitmap: block number (233074) points out of fs size (65536).
create_badblock_bitmap: block number (233075) points out of fs size (65536).
create_badblock_bitmap: block number (233076) points out of fs size (65536).
create_badblock_bitmap: block number (233077) points out of fs size (65536).
create_badblock_bitmap: block number (233078) points out of fs size (65536).
create_badblock_bitmap: block number (233079) points out of fs size (65536).
create_badblock_bitmap: block number (233080) points out of fs size (65536).
create_badblock_bitmap: block number (233081) points out of fs size (65536).
create_badblock_bitmap: block number (233082) points out of fs size (65536).
create_badblock_bitmap: block number (233083) points out of fs size (65536).
Replaying journal..
Reiserfs journal '/dev/VG00/LV00' in blocks [18..8211]: 0 transactions 
replayed
###########
reiserfsck --rebuild-tree started at Thu Aug 10 17:43:09 2006
###########
Pass 0:
####### Pass 0 #######
Loading on-disk bitmap .. ok, 35330 blocks marked used
Skipping 8212 blocks (super block, journal, bitmaps) 27118 blocks will 
be read
0%.                                                          left 25900, 
0 /sec
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 (32958): (Input/output error).
Aborted
Idee ?

 - www: 
http://csvtosql.sf.net
Per pulire qualcosa bisogna sporcare qualcos'altro. Pero', sovente si riesce
a sporcare tutto senza pulire niente. -- Legge di Murphy

 una volta mi ha salvato la vita (professionale si intende)..
L'avevo lanciato prima di iniziare con operazioni potenzialmente 
pericolose (è lì che ho notato la sfilza di badblock per la prima 
volta), dici che se lancio il rebuild sul "backup" reiserfsck è così 
sgamato da rimettere tutto a posto ?!?
Provo - non voglio illudermi :-)

 Provo - non voglio illudermi :-)
HA FUNZIONATO !!!!!!!!
HO RECUPERATO TUTTTTTOOOOOOOOOOO !!!!!
:-))))))))))))))))))))))))
open source, amo tutto ciň

 HO RECUPERATO TUTTTTTOOOOOOOOOOO !!!!!
Come nota a margine: se si hanno problemi imputabili all'hardware è
SEMPRE consigliabile eseguire subito la copia del disco/partizione con
dd_rescue e, una volta terminato, eseguire tutti i tentativi di recovery
su una seconda copia della prima copia.
Questo perché qualsiasi tentativo di lettura/scrittura ulteriore sul
disco normalmente tende ad aggravare ulteriormente la situazione, per
cui la prima copia è generalmente sempre quella con il maggior numero di
informazioni non corrotte.
-- 
Flavio Visentin
Membro del CICAP
Comitato Italiano per il Controllo delle Affermazioni di P4

 - www: 
http://csvtosql.sf.net
Per Son Benedett, la rundina suta al tecc. -- Antico proverbio della Brianza

 SEMPRE consigliabile eseguire subito la copia del disco/partizione
Questo è sicuro, il problema è che non è possibile sapere a priori se un 
disco è danneggiato (il disco era stoccato nella nastroteca da anni): è 
necessario tentare il mount (che non andrà a buon fine) e poi un primo 
fsck leggero che può dare qualche indicazione riguardo al reale stato 
del FS (per testare il disco a livello HW l'unica soluzione è di 
utilizzare le utility fornite dai costruttori che funzionano 
simpaticamente solo con MS-DOS).
Ciao !

 lanciato
............
Ma come non hai un backup o un mirror dei dischi!
Anche se questa volta ti è andata bene fai un raid5 o un semplice mirror.
L'altro mese su 2 server ibm mi sono saltati due dischi scsi. Il mirror e
l'hot plug mi hanno permesso di cambiare i dischi senza alcun fermo
macchina.

 Ma come non hai un backup o un mirror dei dischi!
No e non vedo a cosa potesse servirmi...
Era uno dei dischi di un vecchio server DB2, è stato conservato perchè 
"non si sa mai" (infatti ho dovuto recuperare un settaggio di DB2 per un 
cliente che non si sa bene per quale motivo ha ancora db2 7).

 passi che hai fatto per recuperare..mi son perso su ddrescue.
Un HDD EIDE/ATA5 Maxtor 15GB archiviato, una volta ricollegato non era 
possibile montare uno dei volumi formattato ReiserFS.
Ho creato un nuovo volume sul disco della macchina su cui avevo montato 
il disco e lanciato ddrescue, rebuild-sb e -tree sul nuovo volume e ho 
recuperato tutto quello che mi serve.
ddrescue {sorgente} {destinazione}
Cosa non è chiaro ?

 open source, amo tutto ciò
altro non e' che un 'dd' che va avanti anche in caso di errore.
buono a sapersi che puo' essere cosi' di aiuto.
-- 
echo onailimissaM | awk 'BEGIN { FS = "" }
{ for (i = NF; i >= 1; i-- )
  printf $i }'; echo