All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans-Peter Jansen <hpj@urpla.net>
To: tarak.anumolu@samsung.com
Cc: linux-raid@vger.kernel.org
Subject: Re: Need some information about mdadm 3.2.5
Date: Wed, 27 Mar 2013 10:28:23 +0100	[thread overview]
Message-ID: <3054921.TrJcO0kqP2@xrated> (raw)
In-Reply-To: <29343933.117831364361439771.JavaMail.weblogic@epml26>

Hi Tarak,

On Mittwoch, 27. März 2013 05:17:19 Tarak Anumolu wrote:
> Hi
> 
> My name is TARAK.
> 
> We got some problem in using mdadm 3.2.5.
> 
> We are trying to do RAID operation on 8 harddisks each of size 1TB with 7
> harddisks as raid devices and 1 hard disk as spare device.
 
> Command : mdadm -C /dev/md0 -f --meta-version 0.9 -l5 -n7 -x1 /dev/sd[a-h]1

Obviously, you already created partitions on your harddisks.

> After the RAID operation is completed when we check the status,

Beware, the raid creation is a long process, working in background.

To check your md, use: "cat /proc/mdstat". This is the most important command 
in using linux md.

> We are
> getting the following errors.
 
>  # parted - s  /dev/md0 print
>  Model: Linux Software RAID Array (md)
>  Disk /dev/md0: 6001GB
>  Sector size (logical/physical): 512B/512B
>  Partition Table: gpt
>  Number Start End Size File system Name Flags
>  1 1049kB 60.0GB 60.0GB xfs primary
>  2 60.0GB 6001GB 5941GB primary

Now, you want to access the md partition as a harddisk?!?

What you're trying to do makes little sense. Think of the md partition as an 
ordinary one. Partitioning happens *before* md creation (if necessary at all, 
as you can create your mds directly on the harddisks, as long as you need just 
one md, and don't want to boot from it). The *next* logical step here is 
creating a filesystem on the md partition. 

E.g.: mkfs.xfs /dev/md0

Then assign a mount point (in /etc/fstab), and use it. Call back (to this ML), 
when you reached this point, as there are a few more important steps to follow 
for maximum enjoyment.

Cheers,
Pete

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

  reply	other threads:[~2013-03-27  9:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-27  5:17 Need some information about mdadm 3.2.5 Tarak Anumolu
2013-03-27  9:28 ` Hans-Peter Jansen [this message]
2013-03-27 10:51   ` Sam Bingner
2015-08-10 23:53     ` Problem with XOR Engine Tarak
2015-08-11  0:10 ` Need some information about mdadm 3.2.5 Tarak Anumolu
2015-08-11  5:51 ` Tarak Anumolu

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=3054921.TrJcO0kqP2@xrated \
    --to=hpj@urpla.net \
    --cc=linux-raid@vger.kernel.org \
    --cc=tarak.anumolu@samsung.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.