questions about ext3, raid-5, small files and wasted disk space

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

 



Hi,

Assume I want to build a 8 x 250GB disks RAID-5, totally around 1.7TB, with
ext3 file system, 4KB block size, and 32KB chunk size.

Almost half of the files will be very small ( < 8KB), I'm quite confused
with how RAID-5 store data so I want to understand how relation between file
system block size and RAID5 chunk size, to minimize possible wasted space.

I understand that if I store a 224KB file into the RAID5, the file will be
divided into 7 parts x 32KB, plus 32KB parity. (Am I correct in this?)

However, If I store a file smaller than chunk size into the RAID5, what will
happen?  For example, If  I store a 1KB file into it, how much disk space
will be used? will it 4KB (plus 4KB parity or 1KB parity) ?

Similiarly, If I store a 6KB file, will it takes 8KB (plus 8KB parity or 6KB
parity) ?

If  ALL of my files are 6KB, will the physical disk space allocated to
parity NOT ENOUGH to serve the whole filesystem?

Please CC me if possible, thanks.

Kyle



-
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