Re: Recovering RAID set after OS disk failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jun 3, 2014, at 22:20, Eyal Lebedinsky <eyal@xxxxxxxxxxxxxx> wrote:

> 
> 
> On 06/04/14 15:00, Davide Guarisco wrote:
>> 
>> On Jun 2, 2014, at 23:05, Eyal Lebedinsky <eyal@xxxxxxxxxxxxxx> wrote:
>> 
>> […]
>> 
>> OK, I am lost now.
>> 
>> Davide
> 
> So you do not have an fstab entry, no problem. File systems usually mount just fine
> with automatic detection (replace mountPoint with the directory where it usually mounts).
> 	sudo mount -o ro /dev/md0 /mountPoint
> [if it looks good then you can remove the readonly option '-o ro']
> 
> Or you can check the array directly:
> 	sudo file -s /dev/md0
> 
> For me I get:
> 
> $ sudo file -s /dev/md0
> /dev/md0: Linux rev 1.0 ext4 filesystem data, UUID=1db56f55-de4f-435e-80ed-e525f07d30df, volume name "data1" (needs journal recovery) (extents) (64bit) (large files) (huge files)
> 
> If there is no fs showing then you probably did have some partitions. Or it did
> not assemble correctly (hope not).
> 
> cheers


I was busy for the last few days….

So, yes, it is working !!!!

davide@gecko:~$ sudo mdadm --detail /dev/md0
/dev/md0:
        Version : 0.90
  Creation Time : Tue Mar  3 23:27:50 2009
     Raid Level : raid5
     Array Size : 2930279808 (2794.53 GiB 3000.61 GB)
  Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Wed May 28 21:52:54 2014
          State : clean 
 Active Devices : 4
Working Devices : 4
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 128K

           UUID : f8a943c7:2ffa13d0:9770de34:eca2e81c (local to host gecko)
         Events : 0.46

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8       33        1      active sync   /dev/sdc1
       2       8       49        2      active sync   /dev/sdd1
       3       8       65        3      active sync   /dev/sde1


And of course, I need to mount it….

davide@gecko:~$ sudo mkdir /gecko
davide@gecko:~$ sudo mount /dev/md0 /gecko

cd /gecko, ls shows me all my files!

Now all is left to do is to save the fstab entry and install netatalk.

Thanks a lot to all who helped me out!

Davide

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux