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: Siju George <sgeorge.ml@xxxxxxxxx>
Date: Wed, 15 Jul 2009 17:47:15 +0530

On Wed, Jul 8, 2009 at 9:31 PM, Matthew
Dillon<dillon@apollo.backplane.com> wrote:
>
>    Mirror-stream works on HAMMER's B-Tree elements.  Whenever a HAMMER
>    flush occurs (every 30-60 seconds automatically or if you sync) any
>    B-Tree elements which are deleted, updated, or inserted are sent across
>    the wire to the slave.
>

Thankyou so much For you reply Matt :-)

I currently start mirroing with this line in /etc/rc.local

hammer mirror-stream /Backup1/Data /Backup2/Data

So Inorder to make sure that the master PFS and Slave PFS are in sync
when a shut down happens is it enough to put these lines in
/etc/rc.shutdown ?

hammer synctid /Backup1/Data quick
hammer mirror-copy /Backup1/Data /Backup2/Data

Or should i kill all the "mirror-stream" processes

root    592 60.1  0.1  1036  732 con- RL   12:14PM   0:03.58 hammer
mirror-stream /Backup1/Data /Backup2/Data
root    591 41.1  0.1  1036  744 con- SL   12:14PM   0:02.69 hammer
mirror-stream /Backup1/Data /Backup2/Data
root     -1  0.0  0.0     0    0  ??  BL   12:14PM   0:00.00  (hammer-S1)
root     -1  0.0  0.0     0    0  ??  BL   12:14PM   0:00.00  (hammer-S0)
root     -1  0.0  0.0     0    0  ??  BL   12:14PM   0:00.00  (hammer-M)
root     -1  0.0  0.0     0    0  ??  BL   12:14PM   0:00.00  (hammer-S3)
root     -1  0.0  0.0     0    0  ??  BL   12:14PM   0:00.00  (hammer-S2)
root     -1  0.0  0.0     0    0  ??  BL   12:14PM   0:00.00  (hammer-S1)
root     -1  0.0  0.0     0    0  ??  BL   12:14PM   0:00.00  (hammer-S0)
root     -1  0.0  0.0     0    0  ??  BL   12:14PM   0:00.00  (hammer-M)
root    574  0.0  0.0   396  136 con- IL   12:14PM   0:00.00 hammer
mirror-stream /Backup1/Data /Backup2/Data
root     -1  0.0  0.0     0    0  ??  BL   12:14PM   0:00.00  (hammer-S3)
root     -1  0.0  0.0     0    0  ??  BL   12:14PM   0:00.00  (hammer-S2)

before giving the

"hammer mirror-copy" command in /etc/rc.shutdown  ??

also why are there 3 hammer mirror-stream processes?
and what are the hammer-M, hammer-S* processes?

Thankyou so much

--Siju



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