All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robin Hill <robin@robinhill.me.uk>
To: Mike Muratet <muratetm@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Converting RAID5 to RAID0
Date: Sun, 31 Aug 2014 18:13:27 +0100	[thread overview]
Message-ID: <20140831171327.GB25561@cthulhu.home.robinhill.me.uk> (raw)
In-Reply-To: <loom.20140831T143354-68@post.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1515 bytes --]

On Sun Aug 31, 2014 at 12:43:26PM +0000, Mike Muratet wrote:

> I am doing some experiments with mdadm to combine two 1TB disks into a RAID
> array. I used fdisk to create the partitions and mdadm to create a two disk
> RAID5 array. I would like to have more space and I can live without
> redundancy. I searched the man pages and boards for a way to do that and found:
> 
> $ sudo mdadm /dev/md0 -f /dev/sdd
> mdadm: set /dev/sdd faulty in /dev/md0
> $ sudo mdadm /dev/md0 -r /dev/sdd
> mdadm: hot removed /dev/sdd from /dev/md0
> $ sudo echo raid0 > /sys/block/md0/md/level
> 
> -bash: /sys/block/md0/md/level: Permission denied
> 
> which was not the result I expected.
> 
> Is it possible to convert RAID5 to RAID0?
> 
It should be, yes. I'd use "mdadm --grow --level=0" rather than direct
interaction with sysfs though. You may need to add "--force" in order to
get a 1-disk RAID0 array though (it's mentioned as being required for
create anyway).

> There are no data on the disk. Is there a way to start over?
> 
Sure. Just stop the arrays (mdadm -S /dev/md0) and then run a new create
command. You'll be prompted about an existing array (and filesystem, if
you'd created that) but can continue to overwrite with the new settings.

Cheers,
    Robin

-- 
     ___        
    ( ' }     |       Robin Hill        <robin@robinhill.me.uk> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

  reply	other threads:[~2014-08-31 17:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-31 12:43 Converting RAID5 to RAID0 Mike Muratet
2014-08-31 17:13 ` Robin Hill [this message]
2014-08-31 22:31 ` NeilBrown
2014-09-10 16:15   ` Add disks and convert level 0 to level 5 Michael Muratet
2014-09-11  0:27     ` NeilBrown
2014-09-17 14:59       ` Michael Muratet
2014-09-17 15:15         ` Robin Hill
2014-09-11  7:27     ` Robin Hill
2014-09-01 14:10 Converting RAID5 to RAID0 Michael Muratet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140831171327.GB25561@cthulhu.home.robinhill.me.uk \
    --to=robin@robinhill.me.uk \
    --cc=linux-raid@vger.kernel.org \
    --cc=muratetm@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.