All of lore.kernel.org
 help / color / mirror / Atom feed
From: tormen <tormen@gmx.net>
To: dm-devel@redhat.com
Subject: Questions about dm-raid isw (device naming and partition table)
Date: Fri, 06 Aug 2010 11:42:41 -0400	[thread overview]
Message-ID: <4C5C2D71.7010706@gmx.net> (raw)

 Hi everybody,

I am new to dm-raid and have a couple of questions regarding how it works
(specifically regarding the device naming and access to the partition
table).

Any answer (or references to documentation) would be great!

Before I start with my questions: A short description of my use case for
dm-raid isw:

I am having a notebook with a RAID-0 (stripe) intel fake hardware raid
(on 4 sata devices :)).

Out of the box (setup by the manufacturer - with Win7) when starting
with the linux rescue cd (that used dm-raid isw),
I got these partitions:
    dm-0 (seemed to be everything == the 4 drives combined)
    dm-1 (primary partition)
    dm-2 (primary partition, active)
    dm-3 (primary parition)

After repartioning (with linux based acronis disk-director that also
uses dm-raid isw)
now I have:
    dm-0, dm-1, ... dm-10 where dm-0 still seems to be the WHOLE
raid-disk and dm-1 to dm-10 represent the 10 partitions (logical and/or
primary).

//////////////////////////////////////////////////////////////////////////////////////////////////////////////

/1st/ question:
With dm-raid isw and 1 RAID: dm-0 is everything (like the whole virtual
(raid) disk)?

/2nd/ question:
Can I use cfdisk to access the parition table / view the partioning
under linux?
... because when I try
        cfdisk /dev/dm-0
I get this error message:
        "FATAL ERROR: Bad primary partition 1: Partition ends in the
final partial cyllinder
And the same when I try to print the partition table with cfdisk.

If I start cfdisk -z /dev/dm-0 it works and could (from scratch)
partition the raid-drive.
But I noticed that then the partitions seem to be called dm-0p1, dm-0p2
(I hope I recall the naming correctly).

/3rd/ question:
Why would the partitions be called dm-0p1, dm0p2, ... within cfdisk
while otherwise I see dm-1, dm-2, ... ?
What is the difference between dm-0p1 and dm-1?

/4th/ question:
So regardless of logical / primary partitions the devices are always
named consecutively (1, 2, 3...)?
(in contrast to: /dev/sda1.../dev/sda4 beging primary paritions and
/dev/sda5 being the first logical partition)

/5th/ question:
Is there a way to partition the raid (e.g. with cfdisk) under linux
(without using third party software like acronis) so that Win7 and Linux
can access the raid-drive / partition table ((and don't complain about
fatal errors))?

/6th/ question:
Does the "partition 1" from the above cfdisk fatal error message refer
to /dev/dm-1
(because that is the 1st partition on the raid device /dev/dm-0) or what
partition / device
does it refer to?

Thanks a lot in advance for any hint / advise!

Best,

Knuth

                 reply	other threads:[~2010-08-06 15:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4C5C2D71.7010706@gmx.net \
    --to=tormen@gmx.net \
    --cc=dm-devel@redhat.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.