linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* -z not on RAID0 / MPIO hurdle
@ 2009-08-12 18:44 mark delfman
  2009-08-13  2:06 ` Goswin von Brederlow
  2009-08-14 15:35 ` Luca Berra
  0 siblings, 2 replies; 6+ messages in thread
From: mark delfman @ 2009-08-12 18:44 UTC (permalink / raw)
  To: linux-raid

Hi.... I am hopeful that the group could provide me with some advice
regarding limiting the drive size on a RAID0.  I know and use the –z
option for other raid levels, but this seems to have no effect on
RAID0.

I am sure many will ask ‘why bother’ or ‘use fdisk’ but the problem is:

We need to have some preserved information on each drive – can be only
a few MB at the end of the drive for example
In the past we have simply used Fdisk to partition, save our data on
Sdx2 and used Mdadm on Sdx1  (which works fine)
But we are looking to move to dual channel SAS drives and use DM MPIO

DM MPIO works fine also, but not on the partitions, only the whole
drive.  So when we MDadm DMx it overwrites the SdX2 partition etc.

The answer was that we used the –z and limited the drive size and
simply used DD to write our data to the end LBA’s....

But on RAID0 the –z does not seem to function, so I cant think of a
way around this   (other than changing the LBA range in the drive and
this is restricted I think)


Does anyone have any ideas?  I appreciate any help
--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: -z not on RAID0 / MPIO hurdle
  2009-08-12 18:44 -z not on RAID0 / MPIO hurdle mark delfman
@ 2009-08-13  2:06 ` Goswin von Brederlow
  2009-08-14  8:29   ` mark delfman
  2009-08-14 15:35 ` Luca Berra
  1 sibling, 1 reply; 6+ messages in thread
From: Goswin von Brederlow @ 2009-08-13  2:06 UTC (permalink / raw)
  To: mark delfman; +Cc: linux-raid

mark delfman <markdelfman@googlemail.com> writes:

> Hi.... I am hopeful that the group could provide me with some advice
> regarding limiting the drive size on a RAID0.  I know and use the –z
> option for other raid levels, but this seems to have no effect on
> RAID0.
>
> I am sure many will ask ‘why bother’ or ‘use fdisk’ but the problem is:
>
> We need to have some preserved information on each drive – can be only
> a few MB at the end of the drive for example
> In the past we have simply used Fdisk to partition, save our data on
> Sdx2 and used Mdadm on Sdx1  (which works fine)
> But we are looking to move to dual channel SAS drives and use DM MPIO
>
> DM MPIO works fine also, but not on the partitions, only the whole
> drive.  So when we MDadm DMx it overwrites the SdX2 partition etc.
>
> The answer was that we used the –z and limited the drive size and
> simply used DD to write our data to the end LBA’s....
>
> But on RAID0 the –z does not seem to function, so I cant think of a
> way around this   (other than changing the LBA range in the drive and
> this is restricted I think)
>
>
> Does anyone have any ideas?  I appreciate any help

LVM and --setphysicalvolumesize on pvcreate?

MfG
        Goswin
--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: -z not on RAID0 / MPIO hurdle
  2009-08-13  2:06 ` Goswin von Brederlow
@ 2009-08-14  8:29   ` mark delfman
  2009-08-17  7:32     ` Goswin von Brederlow
  0 siblings, 1 reply; 6+ messages in thread
From: mark delfman @ 2009-08-14  8:29 UTC (permalink / raw)
  To: Goswin von Brederlow; +Cc: linux-raid

Hi Goswin,

I am not sure that this would work well for us... we would have you
use LVM to create individual block targerts, then use MD to create
RAIDs and then LVM again to create pools.

We would ideally stay to LVM on all our raids (whether 0 / 6 etc). so
would like to keep it in there...

Does any know if there is a reason -z doesn’t work with RAID0 (i mean
is it designed to not work because of abc reason, or simply its never
been needed etc)?


Thank you for you help


Mark D
On Thu, Aug 13, 2009 at 3:06 AM, Goswin von Brederlow<goswin-v-b@web.de> wrote:
> mark delfman <markdelfman@googlemail.com> writes:
>
>> Hi.... I am hopeful that the group could provide me with some advice
>> regarding limiting the drive size on a RAID0.  I know and use the –z
>> option for other raid levels, but this seems to have no effect on
>> RAID0.
>>
>> I am sure many will ask ‘why bother’ or ‘use fdisk’ but the problem is:
>>
>> We need to have some preserved information on each drive – can be only
>> a few MB at the end of the drive for example
>> In the past we have simply used Fdisk to partition, save our data on
>> Sdx2 and used Mdadm on Sdx1  (which works fine)
>> But we are looking to move to dual channel SAS drives and use DM MPIO
>>
>> DM MPIO works fine also, but not on the partitions, only the whole
>> drive.  So when we MDadm DMx it overwrites the SdX2 partition etc.
>>
>> The answer was that we used the –z and limited the drive size and
>> simply used DD to write our data to the end LBA’s....
>>
>> But on RAID0 the –z does not seem to function, so I cant think of a
>> way around this   (other than changing the LBA range in the drive and
>> this is restricted I think)
>>
>>
>> Does anyone have any ideas?  I appreciate any help
>
> LVM and --setphysicalvolumesize on pvcreate?
>
> MfG
>        Goswin
>
--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: -z not on RAID0 / MPIO hurdle
  2009-08-12 18:44 -z not on RAID0 / MPIO hurdle mark delfman
  2009-08-13  2:06 ` Goswin von Brederlow
@ 2009-08-14 15:35 ` Luca Berra
  2009-08-15  9:33   ` mark delfman
  1 sibling, 1 reply; 6+ messages in thread
From: Luca Berra @ 2009-08-14 15:35 UTC (permalink / raw)
  To: linux-raid

On Wed, Aug 12, 2009 at 07:44:10PM +0100, mark delfman wrote:
>DM MPIO works fine also, but not on the partitions, only the whole
>drive.  So when we MDadm DMx it overwrites the SdX2 partition etc.
run kpartx on the dm device, it should create mappings for the single
partitions.
L.

-- 
Luca Berra -- bluca@comedia.it
         Communication Media & Services S.r.l.
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X        AGAINST HTML MAIL
  / \

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: -z not on RAID0 / MPIO hurdle
  2009-08-14 15:35 ` Luca Berra
@ 2009-08-15  9:33   ` mark delfman
  0 siblings, 0 replies; 6+ messages in thread
From: mark delfman @ 2009-08-15  9:33 UTC (permalink / raw)
  To: linux-raid

Thank you Luca!  much appreciated

On Fri, Aug 14, 2009 at 4:35 PM, Luca Berra<bluca@comedia.it> wrote:
> On Wed, Aug 12, 2009 at 07:44:10PM +0100, mark delfman wrote:
>>
>> DM MPIO works fine also, but not on the partitions, only the whole
>> drive.  So when we MDadm DMx it overwrites the SdX2 partition etc.
>
> run kpartx on the dm device, it should create mappings for the single
> partitions.
> L.
>
> --
> Luca Berra -- bluca@comedia.it
>        Communication Media & Services S.r.l.
>  /"\
>  \ /     ASCII RIBBON CAMPAIGN
>  X        AGAINST HTML MAIL
>  / \
> --
> 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
>
--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: -z not on RAID0 / MPIO hurdle
  2009-08-14  8:29   ` mark delfman
@ 2009-08-17  7:32     ` Goswin von Brederlow
  0 siblings, 0 replies; 6+ messages in thread
From: Goswin von Brederlow @ 2009-08-17  7:32 UTC (permalink / raw)
  To: mark delfman; +Cc: Goswin von Brederlow, linux-raid

mark delfman <markdelfman@googlemail.com> writes:

> Hi Goswin,
>
> I am not sure that this would work well for us... we would have you
> use LVM to create individual block targerts, then use MD to create
> RAIDs and then LVM again to create pools.

Last I tried raid on lvm would mess with the idle I/O
determination. The raid rebuild would cause I/O on the device mapper
and then raid things the user is doing I/O and slows the raid rebuild
down to the minimum speed.

> We would ideally stay to LVM on all our raids (whether 0 / 6 etc). so
> would like to keep it in there...
>
> Does any know if there is a reason -z doesn’t work with RAID0 (i mean
> is it designed to not work because of abc reason, or simply its never
> been needed etc)?
>
>
> Thank you for you help
>
>
> Mark D
> On Thu, Aug 13, 2009 at 3:06 AM, Goswin von Brederlow<goswin-v-b@web.de> wrote:
>> mark delfman <markdelfman@googlemail.com> writes:
>>
>>> Hi.... I am hopeful that the group could provide me with some advice
>>> regarding limiting the drive size on a RAID0.  I know and use the –z
>>> option for other raid levels, but this seems to have no effect on
>>> RAID0.
>>>
>>> I am sure many will ask ‘why bother’ or ‘use fdisk’ but the problem is:
>>>
>>> We need to have some preserved information on each drive – can be only
>>> a few MB at the end of the drive for example
>>> In the past we have simply used Fdisk to partition, save our data on
>>> Sdx2 and used Mdadm on Sdx1  (which works fine)
>>> But we are looking to move to dual channel SAS drives and use DM MPIO
>>>
>>> DM MPIO works fine also, but not on the partitions, only the whole
>>> drive.  So when we MDadm DMx it overwrites the SdX2 partition etc.
>>>
>>> The answer was that we used the –z and limited the drive size and
>>> simply used DD to write our data to the end LBA’s....
>>>
>>> But on RAID0 the –z does not seem to function, so I cant think of a
>>> way around this   (other than changing the LBA range in the drive and
>>> this is restricted I think)
>>>
>>>
>>> Does anyone have any ideas?  I appreciate any help
>>
>> LVM and --setphysicalvolumesize on pvcreate?
>>
>> MfG
>>        Goswin
>>

MfG
        Goswin
--
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-17  7:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-12 18:44 -z not on RAID0 / MPIO hurdle mark delfman
2009-08-13  2:06 ` Goswin von Brederlow
2009-08-14  8:29   ` mark delfman
2009-08-17  7:32     ` Goswin von Brederlow
2009-08-14 15:35 ` Luca Berra
2009-08-15  9:33   ` mark delfman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).