Re: Attempt to change raid1 to raid0 results in division error in kernel

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

 



On 5/23/2013 5:44 AM, Robert Goliasz wrote:
> Hi,
> 
> When attempting to change raid level from 1 to 0 

I don't even know if this is possible.

> (I was doing some testing
> trying to convert a raid1 array to a raid10 one), I got a division error.
...
>   gbl-macbook# mdadm --grow /dev/md0 -l 0

If it is possible, this command line won't work because you didn't
specify a chunk size for the RAID0 stripe.  Every striped array type
requires a chunk size.

>   zsh: segmentation fault  mdadm --grow /dev/md0 -l 0
>   gbl-macbook# 
...

> Afterwards, my mounted filesystem (/dev/md0) disappeared (it's no longer
> mounted), and all operations related to software raid seem to fail:

Well of course.  Experimenting with mdadm without knowing what you're
doing will often result in lost/corrupted arrays and other forms of damage.

At this point you should simply start a new thread and ask:

"How do I convert a RAID1 array to RAID0?"

or

"How do I convert a RAID1 array to RAID10?"

instead of working backwards from your mistakes here.

-- 
Stan

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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