DragonFly users List (threaded) for 2009-07
DragonFly BSD
DragonFly users List (threaded) for 2009-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: hammer mirror shows differrent results from differrent terminals


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Jul 2009 16:23:42 -0700 (PDT)

:pkill hammer
:hammer synctid /Backup1/Data quick
:hammer mirror-copy /Backup1/Data /Backup2/Data
:
:at the end of /etc/rc.shutdown
:
:the "pkill hammer" command kills all "mirror-stream" processes but
:does not kill any kernel helper threads. Is that OK?
:
:also while starting "hammer mirror-stream" using /etc/rc.local there
:are 3 mirror-stream processes.
:
:root    574  0.0  0.0   396  136 con- IL    8:31AM   0:00.00 hammer
:mirror-stream /Backup1/Data /Backup2/Data
:root    591  0.0  0.0  1100  236 con- IL    8:31AM   0:00.00 hammer
:mirror-stream /Backup1/Data /Backup2/Data
:root    592  0.0  0.0  1100  224 con- IL    8:31AM   0:00.00 hammer
:mirror-stream /Backup1/Data /Backup2/Data
:
:Is this OK? I have a doubt since you said " The mirroring utility is
:not designed to handle
:   parallel feeds to the same PFS target."
:
:Thanks
:
:Siju

    It may not die immediately when you kill it.  You definitely
    want to use the lockf(1) utility to ensure that you are only
    running one thing at a time (as appropriate for what you are
    doing).

    hammer mirror-stream forks itself twice so it can exec ssh.  It
    should exec ssh via those forks though I'm not sure what actually
    shows up in the ps.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>



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