linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* filesystem on mdadm raid from unpartioned block devices
@ 2011-01-12 22:31 GarBoge
  2011-01-12 22:37 ` Roberto Spadim
  2011-01-13  2:00 ` NeilBrown
  0 siblings, 2 replies; 5+ messages in thread
From: GarBoge @ 2011-01-12 22:31 UTC (permalink / raw)
  To: linux-raid; +Cc: neilb

A quick question that I haven't been able to find and answer for.

I have been using whole block devices (whole unpartitioned hard drives)
in various raid 1 and 5 setups using mdadm 3.1.4 with pretty mundane
options (default options such as striping and but using metadata 1.2).
Typically I use mkfs.ext4 with no options (default) to install the
filesystem.

Is there an issue with alignment on the newer 4096-byte drives. If so
what would be the proper approach?

I thank you for your time.

Ashley


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

* Re: filesystem on mdadm raid from unpartioned block devices
  2011-01-12 22:31 filesystem on mdadm raid from unpartioned block devices GarBoge
@ 2011-01-12 22:37 ` Roberto Spadim
  2011-01-12 22:39   ` Roberto Spadim
  2011-01-13  2:00 ` NeilBrown
  1 sibling, 1 reply; 5+ messages in thread
From: Roberto Spadim @ 2011-01-12 22:37 UTC (permalink / raw)
  To: GarBoge; +Cc: linux-raid, neilb

i think that mkfs.ext4 is 4096 default block size
-b 4096 is the option for device block size


2011/1/12 GarBoge <garboge@shaw.ca>:
> A quick question that I haven't been able to find and answer for.
>
> I have been using whole block devices (whole unpartitioned hard drives)
> in various raid 1 and 5 setups using mdadm 3.1.4 with pretty mundane
> options (default options such as striping and but using metadata 1.2).
> Typically I use mkfs.ext4 with no options (default) to install the
> filesystem.
>
> Is there an issue with alignment on the newer 4096-byte drives. If so
> what would be the proper approach?
>
> I thank you for your time.
>
> Ashley
>
> --
> 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
>



-- 
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
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] 5+ messages in thread

* Re: filesystem on mdadm raid from unpartioned block devices
  2011-01-12 22:37 ` Roberto Spadim
@ 2011-01-12 22:39   ` Roberto Spadim
  0 siblings, 0 replies; 5+ messages in thread
From: Roberto Spadim @ 2011-01-12 22:39 UTC (permalink / raw)
  To: GarBoge; +Cc: linux-raid, neilb

options for raid in mkfs.ext4:


                   stride=stride-size
                          Configure  the  filesystem  for  a  RAID  array with
                          stride-size filesystem blocks. This is the number of
                          blocks  read or written to disk before moving to the
                          next disk, which is sometimes  referred  to  as  the
                          chunk   size.   This  mostly  affects  placement  of
                          filesystem metadata like bitmaps at mke2fs  time  to
                          avoid  placing them on a single disk, which can hurt
                          performance.  It may also be used by the block allo-
                          cator.



                   stripe-width=stripe-width
                          Configure  the  filesystem  for  a  RAID  array with
                          stripe-width filesystem blocks per stripe.  This  is
                          typically  stride-size * N, where N is the number of
                          data-bearing disks in the  RAID  (e.g.  for  RAID  5
                          there is one parity disk, so N will be the number of
                          disks in the array minus 1).  This allows the  block
                          allocator to prevent read-modify-write of the parity
                          in a RAID stripe if possible when the data is  writ-
                          ten.


i don´t know if it work


2011/1/12 Roberto Spadim <roberto@spadim.com.br>:
> i think that mkfs.ext4 is 4096 default block size
> -b 4096 is the option for device block size
>
>
> 2011/1/12 GarBoge <garboge@shaw.ca>:
>> A quick question that I haven't been able to find and answer for.
>>
>> I have been using whole block devices (whole unpartitioned hard drives)
>> in various raid 1 and 5 setups using mdadm 3.1.4 with pretty mundane
>> options (default options such as striping and but using metadata 1.2).
>> Typically I use mkfs.ext4 with no options (default) to install the
>> filesystem.
>>
>> Is there an issue with alignment on the newer 4096-byte drives. If so
>> what would be the proper approach?
>>
>> I thank you for your time.
>>
>> Ashley
>>
>> --
>> 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
>>
>
>
>
> --
> Roberto Spadim
> Spadim Technology / SPAEmpresarial
>



-- 
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
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] 5+ messages in thread

* Re: filesystem on mdadm raid from unpartioned block devices
  2011-01-12 22:31 filesystem on mdadm raid from unpartioned block devices GarBoge
  2011-01-12 22:37 ` Roberto Spadim
@ 2011-01-13  2:00 ` NeilBrown
  2011-01-14 15:44   ` GarBoge
  1 sibling, 1 reply; 5+ messages in thread
From: NeilBrown @ 2011-01-13  2:00 UTC (permalink / raw)
  To: GarBoge; +Cc: linux-raid

On Wed, 12 Jan 2011 15:31:37 -0700 GarBoge <garboge@shaw.ca> wrote:

> A quick question that I haven't been able to find and answer for.
> 
> I have been using whole block devices (whole unpartitioned hard drives)
> in various raid 1 and 5 setups using mdadm 3.1.4 with pretty mundane
> options (default options such as striping and but using metadata 1.2).
> Typically I use mkfs.ext4 with no options (default) to install the
> filesystem.
> 
> Is there an issue with alignment on the newer 4096-byte drives. If so
> what would be the proper approach?

No, no issue.

NeilBrown


> 
> I thank you for your time.
> 
> Ashley


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

* Re: filesystem on mdadm raid from unpartioned block devices
  2011-01-13  2:00 ` NeilBrown
@ 2011-01-14 15:44   ` GarBoge
  0 siblings, 0 replies; 5+ messages in thread
From: GarBoge @ 2011-01-14 15:44 UTC (permalink / raw)
  To: NeilBrown; +Cc: linux-raid

Thanks for the quick reply. I thank you for the great mdadm software.

Ashley


On Thu, 2011-01-13 at 13:00 +1100, NeilBrown wrote:
> On Wed, 12 Jan 2011 15:31:37 -0700 GarBoge <garboge@shaw.ca> wrote:
> 
> > A quick question that I haven't been able to find and answer for.
> > 
> > I have been using whole block devices (whole unpartitioned hard drives)
> > in various raid 1 and 5 setups using mdadm 3.1.4 with pretty mundane
> > options (default options such as striping and but using metadata 1.2).
> > Typically I use mkfs.ext4 with no options (default) to install the
> > filesystem.
> > 
> > Is there an issue with alignment on the newer 4096-byte drives. If so
> > what would be the proper approach?
> 
> No, no issue.
> 
> NeilBrown
> 
> 
> > 
> > I thank you for your time.
> > 
> > Ashley
> 



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

end of thread, other threads:[~2011-01-14 15:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-12 22:31 filesystem on mdadm raid from unpartioned block devices GarBoge
2011-01-12 22:37 ` Roberto Spadim
2011-01-12 22:39   ` Roberto Spadim
2011-01-13  2:00 ` NeilBrown
2011-01-14 15:44   ` GarBoge

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).