Re: mdadm does not create partition devices whatsoever, "partitionable" functionality broken

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13/05/11 21:32, Roman Mamedov wrote:
On Fri, 13 May 2011 15:22:09 -0400
Phil Turmel<philip@xxxxxxxxxx>  wrote:

I always use LVM.  While the lack of attention to MD partitions might
justify that, the real reason is the sheer convenience of creating,
manipulating, and deleting logical volumes on the fly.  While you may not
need it *now*, when you discover that you *do* need it, you won't be able to
use it.  Online resizing of any of your LVs is the killer feature.

Can it defragment non-contiguous LVs yet?


What is perhaps more relevant, is can filesystems see the fragmentation of the LV's? I don't know the answer.

Fragmentation of files is not a problem unless files are split into /lots/ of small pieces. The bad reputation of fragmentation has come from the DOS/Windows world, where poor filesystems combined with shotgun-style allocators give you much slower performance than necessary.

Modern Linux filesystems have various techniques to keep fragmentation to a minimum. But (AFAIK) they make the assumption that the underlying device is contiguous. If the filesystem /knows/ that the device is in bits, then it could take that into account in its allocation policy (in the same way that it takes raid stripes into account).

Still, you don't usually have many segments in an LV - if you want the LV to be fast, you can request it to be contiguous when creating it. Then you only get a fragment for each time it is grown. It's a price often worth paying for the flexibility.


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


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux