Is there any way to query the size of an existing journal? I have heard a number of sizes thrown around as defaults, but I need to be able to reliably get the exact journal size. Thanks Jason -- ---------------------------------------------------- Storix Software info@storix.com (sales) 1-619-702-6500 support@storix.com (support) 1-877-STORIX-1 (US) http://www.storix.com
On 28 May 2002 11:18:15 -0700, Jason Shelton wrote:>Is there any way to query the size of an existing journal? I have heard >a number of sizes thrown around as defaults, but I need to be able to >reliably get the exact journal size.You can use 'dumpe2fs' to get the journal's inode and then 'debugfs' to 'stat' the inode. Multiply the block count you get from the 'stat' command by the block size and there you go. DS
Hi, On Tue, May 28, 2002 at 05:21:08PM -0400, Christopher D. Carothers wrote:> Hi. So what is the difference in the sizes if I do the "stat <8>" > vs logdump w/i dumpe2fs? I noticed on my system that the size from "stat > <8>" yields about 33 MB but the actual journal data dump comumes right at > 10 MB of blocks. The journal dump appears to tells you which block the > journal starts from and ends at. From there you can subtract and mult by > block size to get the active journal size...I guess.The journal dump tells you where, within the journal, the *active* data starts and ends. That is always going to be smaller than the total size of the journal space. Cheers, Stephen