On Wed, Nov 17, 2010 at 10:57 AM, Rakesh Kumar <kumar3...@gmail.com> wrote:
> > > On Sat, Nov 13, 2010 at 6:02 PM, Sirtaj Singh Kang <sir...@sirtaj.net>wrote: > >> >> On 13-Nov-10, at 12:39 PM, Raj Mathur (राज माथुर) wrote: >> [snip] >> >> He wanted a formula. He has not got a formula. >>> >> >> Here's a formula: >> >> y = x * 1.0158 >> >> Explanation: >> >> I decided to check the ext3 overhead empirically, since I not keen to >> delve into the resize2fs sources. I've attached a simple python script that >> I used on a bunch of machines to measure the difference between block device >> size (reported by /proc/partitions) >> and fs size (as reported by statfs). It currently reports on all mounted >> ext2 and ext3 filesystems. >> > Great to know this because i have never seen this ever. But i want to know > one thing that when i studied this, found that we keep this size bigger > because of metadata. And if it is correct metadata will increase with the > size of PV and VG then how can a specific formula be derived. > >> >> I might be doing something really dumb, but it looks like there is >> 1.56-58% overhead for almost all ext3 filesystems over 1G in size created >> with default mkfs flags. It gets higher for smaller filesystems. Note that >> the journal overhead may not be included in this value. >> >> If anyone gets different values or finds any errors in the attached script >> I'd appreciate a note. >> > > >> End of story. >>> >> >> It's kind of a boring story. >> >> -Taj. >> >> >> >> >> _______________________________________________ >> Ilugd mailing list >> Ilugd@lists.linux-delhi.org >> http://frodo.hserus.net/mailman/listinfo/ilugd >> >> > > Sorry if i wrote rudely anywhere but my intention was not to disrespect > anyone. Everybody is doing his/her work at their respected places and is > here to learn from other and contribute for others. So their shouldn't be > any matter of unnecessary dispute type of discussions. > > -- > Regards > RAKESH > "Allow Your Own Inner Light to Guide You" > And why do we keep the size greater than the desired. I mean if i want to extend the size by 2G, doesn't it work? # lvextend -L+2G /dev/Volume_group/lvm # resize_reiserfs -f /dev/Volume_group/lvm -- Regards RAKESH "Allow Your Own Inner Light to Guide You" _______________________________________________ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd