Re: How to reduce active mds number

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

 



Hi,
I am testing the same case.
My system is 1 MON , 2 MDS, 3OSD.
Here is my steps:

1) First, I set the max number of MDS to 2 , so there are two active MDSs.
192.168.200.184:6800/2095 '0' mds0.1 up:active seq 66
192.168.200.185:6800/1911 '1' mds1.1 up:active seq 25635
2) I want to set the active one to standby. I excute"ceph mds
set_max_mds 1" and "ceph mds stop 0".
    But here is why I confuse:
    mds0 becomes stopping not standby.??
    It shows:
192.138.200.185:6800/14465 ‘1’mds0.6 up:stopping seq 14
192.138.200.184:6800/15442 ‘0’mds1.1 up:active seq 210

3) When I excute"ceph mds set_max_mds 2", mds0 doesn't become active,
    I type"ceph mds dump -o -"
    But it shows:
192.138.200.185:6800/14465 ‘1’mds0.6 up:stopping seq 14 export_targets=1
192.138.200.184:6800/15442 ‘0’mds1.1 up:active seq 210
   There is no two active MDSes, why?

4) Therefore, I still hope that there are one active mds and one
standby mds(by default).
    I restart the system. I execute" /etc/init.d/ceph -a stop" and "
/etc/init.d/ceph -a start"
    I type"ceph -s"
    But it shows:
mds e52:  2/2/1 up {0=up:rejoin, 1=up:resolve}
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  what means?
    After awhile I execue”ceph mds stat” , it shows:
‘e61: 2/2/1 up {o=up:relay, 1=up:relay}’ (0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ what means?

5) I set the man active number to one because I still want the system
by default value(one active and one standby).
    I execute"ceph mds set_max_mds 1"
    It shows:
mds e80: 2/2/1 up {0=up:rejoin, 1=up:rejoin}, 1:up:standby
mds e80: 2/2/1 up {0=up:active, 1=up:rejoin}, 1:up:standby
mds e80: 2/2/1 up {0=up:active, 1=up:active}, 1:up:standby
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    I don't know what it means.
    Why there are three statuses? Aren't there just 2 MDSes in my system?
    I execue"ceph -s"
    It shows:
mds e94: 2/2/1 up {0=up:active,1=up:active}, 1 up:standby

Please help me to solve these questions..
And teach me how to set the MDS by the default(1 active & 1 standby)?
Thank you very much  ^^


Best regards

Stefanie Chen
--
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