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

Re: mdadm problem creating device



On Sun, Jan 06, 2008 at 02:51:09PM -0800, Andrew Sackville-West wrote:
> On Sun, Jan 06, 2008 at 03:38:29PM -0500, Douglas A. Tutty wrote:
> > On Sun, Jan 06, 2008 at 02:53:57PM -0500, S Scharf wrote:
> > > I installed a new disk and am trying to create a one disk raid 1 on it
> > > (and will add the second disk later)
> > > 
> >  
> > > but when I run mdadm I get the followng:
> > > 
> > > $ sudo mdadm --create /dev/md0 --level=raid1 --raid-devices=2 /dev/sda3
> > > missing
> > > mdadm: /dev/sda3 is too small: 0K
> > > mdadm: create aborted
> > 
> > I'm just guessing here, since I set up my raid1 when I installed Etch,
> > but you told it raid1 and you told it to use two devices but you only
> > gave it one device.  What happens if you use --raid-devices=1?
> 
> OP is building a deprecated (I think that's the term) array. It seems
> to be a common (I used it to build my array) way to migrate a
> system. Put one of the two disk array on ide1 while your system is on
> ide0. Then build the array with a disk missing. move data onto the
> broken array, then add the other disk in and it will sync up. Pretty
> slick trick really. 

Yes, I understand that.  Do you know why he's having a problem?

Doug.


Reply to: