[mythtv-users] Totally OT - but need help wit RAID5 array
James Pifer
jep at obrien-pifer.com
Fri Nov 17 17:14:40 UTC 2006
On Fri, 2006-11-17 at 17:07 +0000, Robin Hill wrote:
> On Fri Nov 17, 2006 at 10:52:05AM -0500, James Pifer wrote:
>
> > On Fri, 2006-11-17 at 09:46 -0600, Carl Fongheiser wrote:
> > > On 11/17/06, James Pifer <jep at obrien-pifer.com> wrote:
> > >
> > > It tries, but 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 dev/hdd
> > > 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: Cannot open dev/hdd: No such file or directory
> > > mdadm: create aborted
> > > [root at storage ~]#
> > >
> > > No guarantee of success, but you could try executing this from the
> > > root directory, rather than root's home directory.
> > >
> > > Carl Fongheiser
> >
> > That did make a difference but I got this scary question. Is it going to
> > leave the data alone?
> >
> > [root at storage /]# mdadm --create --verbose /dev/md0 --assume-clean --force --level=5 --raid-devices=3 /dev/hdb /dev/hdc dev/hdd
> > 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?
> >
> I wouldn't do, no - hdd doesn't contain any valid data so adding it
> into the array will only lead to trouble. Instead try replacing dev/hdd
> with missing, i.e.
>
> mdadm --create --verbose /dev/md0 --assume-clean --force \
> --level=5 --raid-devices=3 /dev/hdb /dev/hdc missing
>
> Odd that it complains about the missing drive now but was quite happy
> creating it the array without it originally!
>
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?
James
More information about the mythtv-users
mailing list