All of lore.kernel.org
 help / color / mirror / Atom feed
* How to reduce active mds number
@ 2011-04-22  9:20 AnnyRen
  2011-04-22 15:46 ` Sage Weil
  0 siblings, 1 reply; 5+ messages in thread
From: AnnyRen @ 2011-04-22  9:20 UTC (permalink / raw)
  To: ceph-devel

Hi,

I'm testing MDS expasion,
my original environment has 3 MON, 2 MDS (one active, one standby), 10
OSD which are built on 15 physical machines.

the following is my step to test add/remove active MDS:


Step1: check mds status

root@MON1:~# ceph mds dump -o -
4097:   192.168.200.184:6800/2095 '0' mds0.1 up:active seq 66
4107:   192.168.200.185:6800/1911 '1' mds-1.0 up:standby seq 2
There are two mds, one is active, another is standby

Step2: ceph mds set_max_mds 2

Step3: ceph -s
2011-04-22 08:33:03.836554   mds e18: 2/2/2 up {0=up:active,1=up:active}

or
root@MON1:~# ceph mds dump -o -
max_mds 2
in      0,1
up      {0=4097,1=4107}
failed
stopped
4097:   192.168.200.184:6800/2095 '0' mds0.1 up:active seq 66
4107:   192.168.200.185:6800/1911 '1' mds1.1 up:active seq 25635


Step4: I want to set one mds to standby, so I execute "ceph mds set_max_mds 1"

root@MON1:~# ceph mds set_max_mds 1
2011-04-22 08:35:29.964667 mon <- [mds,set_max_mds,1]
2011-04-22 08:35:30.133274 mon0 -> 'max_mds = 1' (0)


Step5: Then I check mds status

root@MON1:~# ceph mds stat
2011-04-22 08:39:04.160139 mon <- [mds,stat]
2011-04-22 08:39:04.160823 mon0 -> 'e19: 2/2/1 up {0=up:active,1=up:active}' (0)
                                                              ^^^^^^
What does the 2/2/1 means ?

I found that the number of active MDS still remains two...
Could you tell me how to reduce the active mds number from 2 to 1...?
and what the 2/2/1 means ?

Thanks a lot !  :)

Best Regards,
Annie

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-03 17:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-22  9:20 How to reduce active mds number AnnyRen
2011-04-22 15:46 ` Sage Weil
2011-05-03  2:07   ` doki74216
2011-05-03 17:34     ` Tommi Virtanen
2011-05-03 17:51       ` Tommi Virtanen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.