[mythtv-users] Totally OT - but need help wit RAID5 array

Robin Hill myth at robinhill.me.uk
Fri Nov 17 18:53:07 UTC 2006


On Fri Nov 17, 2006 at 01:37:39PM -0500, James Pifer wrote:

> On Fri, 2006-11-17 at 18:08 +0000, Robin Hill wrote:
> > On Fri Nov 17, 2006 at 12:14:40PM -0500, James Pifer wrote:
> > 
> > > I still get the same thing:
> > > [root at storage /]# mdadm --create --verbose /dev/md0 --assume-clean --force --level=5 --raid-devices=3 /dev/hdb /dev/hdc missing
> > > mdadm: layout defaults to left-symmetric
> > > mdadm: chunk size defaults to 64K
> > > mdadm: /dev/hdb appears to contain an ext2fs file system
> > >     size=312581632K  mtime=Wed Nov 15 09:54:22 2006
> > > mdadm: /dev/hdb appears to be part of a raid array:
> > >     level=raid5 devices=3 ctime=Wed Nov 15 09:42:22 2006
> > > mdadm: /dev/hdc appears to be part of a raid array:
> > >     level=raid5 devices=3 ctime=Wed Nov 15 09:42:22 2006
> > > mdadm: size set to 156290816K
> > > Continue creating array?
> > > 
> > That's okay - you'll want to say yes here.  This should rewrite the
> > metadata (with a new UUID but everything else should remain the same as
> > previously) and start the array with the 2 drives.
> > 
> 
> Partial success. I even got real excited for a few seconds. Ran fsck and
> it came up and said clean, which was obviously surprising. I then
> mounted the array readonly and started to look around. I had three
> directories I was looking for: backups, data, and storage_backup.
> Misleading as the directory is, backups was my least important. "data"
> is the one I was really after, and it held the majority of the files.
> The good news is that the directory is there. The bad news is that it's
> empty... 
> 
> But based on the free space being reported, I should certainly see a lot
> more. I also have a few directories like:
> ?-w-r-s-wt 16272  325562376 3572026441 1204767827 Oct  2  2002 home
> 
> I added hdd and it's working away at that. 
> 
If it's an ext3 drive then you'll have to force fsck to work, otherwise
it'll just check whether the drive has a "clean shutdown" flag or not.
Try doing:
        fsck -f /dev/md0

At least you're getting somewhere now :)

Cheers,
        Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <myth at robinhill.me.uk>  |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20061117/cda10dfd/attachment.pgp 


More information about the mythtv-users mailing list