| To: | lord@xxxxxxx |
|---|---|
| Subject: | Re: It just begs the question everywhere: how to move a journaling log to a new device? |
| From: | Jeremy Jackson <jerj@xxxxxxxxxxxx> |
| Date: | Wed, 19 Nov 2003 23:06:51 -0500 |
| Cc: | Laurent Imbaud <laurent@xxxxxxxxx>, linux-xfs@xxxxxxxxxxx |
| References: | <3FBC281B.30105@saiph.com> <1069297762.11773.22.camel@fubar> |
| Sender: | linux-xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 |
Steve Lord wrote:
As for sizing the log, it always seems to be like asking how long a piece of string is. Perhaps, but this is really good stuff to know. I'm saving this email in my bag of tricks until such time as it becomes part of the standard documentation. Are you saying the log space is unaccounted space between two AGs, or does it get an extent or is marked in some kind of block bitmap (I really don't know much about XFS data structures). If so, something that comes to mind is, could the log get allocated as an inode or extent? It would make it possible to shift it around and reclaim the space. I guess it would be hard to have an extent on another device (realtime ss excluded) for and external log. xfs_fsr when unmounted? Say an fs grows so much that the log is no longer in the middle, or its size needs to be changed. As for tail pushing, the continuous throughput could be improved by using a ping-pong buffer. 2 log devices, on separate disks. One is written to until it becomes full, then logging switches to the other while the first is read and flushed. This way each device is written then read sequentially, rather than each process fighting the other and the head seeking back and forth to service them. Actually, now that I think of it, the ping-pong thing make it easy to move the log around, resize it (to a different location), etc. while mounted. Setup the new log, wait till old one fills up or force a switch to the new one, flush the old one, then de-allocate it. Now if I only I didn't have to work for a living... Cheers, Jeremy Jackson |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | TAKE - pagebuf, Nathan Scott |
|---|---|
| Next by Date: | immutable bits, Greg Whynott |
| Previous by Thread: | Re: It just begs the question everywhere: how to move a journaling log to a new device?, Eric Sandeen |
| Next by Thread: | Re: It just begs the question everywhere: how to move a journaling log to a new device?, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |