Hello Thomas,
I do not think this is os definition specific but i will post on the
mailinglist.
thanks for the hint. We are using debian squeeze.
On 23 Mai, 15:17, Thomas Thrainer <
thoma...@google.com> wrote:
> Hi,
>
> For OS definition specific questions it is usually better to ask directly
> at a mailing list of the provider of the definitions.
>
> But for your case, wouldn't it be possible to replace the dd command on
> your nodes with a small wrapper script?
> You could use dpkg-divert [0] (if you are using Debian, or something
> similar for your distribution) to rename the original dd to dd_orig for
> example. Then you create a small shell script called dd, which essentially
> calls the original dd in background, captures the PID and blacklists it,
> and then waits for the PID. Something like the following should work
> (untested):
>
> #!/bin/bash
>
> /bin/dd_orig $@
> DD_PID=$!
> # do whatever is required to blacklist $DD_PID
> wait $DD_PID
> exit $?
>
Looks good and i tough about execalty this but will the script not
wait till the dd job is done and will blacklist the pid after this?
Running the job in the background with & will not work.
Have you any ideas?
> Cheers,
> Thomas
>
Regards
Thomas
> [0]
http://manpages.debian.net/cgi-bin/man.cgi?query=dpkg-divert
>
>
>
>
>
>
>
>
>
> On Thu, May 23, 2013 at 11:48 AM, tschend <
thomas.sch...@gmail.com> wrote:
> > Hi,
>
> > we are exporting our instance with gnt-backup export and are using the
> > snf-image os defs.
>
> > In our setup we run flashcache to get better disk perfromance.
> > The problem is that snf-image exports with dd and the sequential IO
> > detection from flashcache cannot detect this because the other
> > machines on the host are busy at the same time and create IO.
>
> > We can blacklist the dd pid. Currently we run a script which looks for
> > dd in the process list and then blacklists it.
>
> > Has anyone a idea how we can solve this smarter?
>
> > We though about a wrapper but it is not possible to start an process
> > with a specific pid.
>
> > Best Regards
> > Thomas
>
> --
> Thomas Thrainer | Software Engineer |
thoma...@google.com |