hammer mirror shows differrent results from differrent terminals

Siju George sgeorge.ml at gmail.com
Wed Jul 15 05:22:59 PDT 2009


On Wed, Jul 8, 2009 at 9:31 PM, Matthew
Dillon<dillon at 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





More information about the Users mailing list