Re: questions about monmap and command

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

 



On Wed, 1 Jun 2011, Almond wrote:
> Hi
> 
> I have 2 questions about monitor.
> The test environment contains 3 mon(mona<--leader, monb and monc), 2
> mds ,11 osd and ceph v0.26 .
> 
> (1)
> I killed the cmon process on mona.
> Both log and 'ceph mon stat' showed the latest mon's stat(mon.b@1 won
> leader election with quorum 1,2).
> 
> Then I dump monmap to check, but it didn't record the latest mons' state.
> Can someone tell me what the purpose of monmap is?

The monmap always enumerates all monitors, regardless of whether they are 
up or down.  (It is different from the osdmap and mdsmap in that respect.)  
The only way to tell who is part of the quorum and who is not is via the 
'ceph mon stat' command.

> root@MON2:/mnt/ext4/monb/monmap# ceph mon getmap -o lmonmpa
> 2011-06-01 07:17:35.669787 mon <- [mon,getmap]
> 2011-06-01 07:17:35.670964 mon1 -> 'got latest monmap' (0)
> 2011-06-01 07:17:35.671058 7fa86a776720  wrote 465 byte payload to lmonmpa
> root@MON2:/mnt/ext4/monb/monmap# monmaptool --print lmonmpa
> monmaptool: monmap file lmonmpa
> epoch 1
> fsid 73277084-b580-e4f8-da6d-3179bd7a0f0b
> last_changed 2011-05-11 11:16:28.730170
> created 2011-05-11 11:16:28.730170
> 0: 192.168.200.181:6789/0 mon.a
> 1: 192.168.200.182:6789/0 mon.b
> 2: 192.168.200.183:6789/0 mon.c
> 
> (2)
> root@MON2:/var/log/ceph# ceph mon stat
> 2011-06-01 07:21:39.228470 7f3aab8c4710 -- 192.168.200.182:0/14828 >>
> 192.168.200.181:6789/0 pipe(0x1a70d60 sd=5 pgs=0 cs=0 l=0).fault first
> fault
> 2011-06-01 07:21:45.230389 mon <- [mon,stat]
> 2011-06-01 07:21:45.230988 mon1 -> 'e1: 3 mons at
> {a=192.168.200.181:6789/0,b=192.168.200.182:6789/0,c=192.168.200.183:6789/0},
> election epoch 24, quorum 1,2' (0)
>                    ^^^^^
> What does (0) in the last line mean?

0 is the result code for the command (0 == success).  

sage
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux