how to check mds with specfic id exists?
The Monitor.cc has a function *monmap->contains()* which allows us to check whether the mon with a given id exists. This function is not present in *MDSMonitor.cc,* Any idea how to check whether mds with specific id(s) exists? Trying to fix: https://tracker.ceph.com/issues/42597
Hi Suyash, You'd need to look in the mds map to check if a particular mds exists. Browse through MDSMap.h for functions like is_in(), is_up() or get_state(). *Dhairya Parmar* Associate Software Engineer, CephFS Red Hat Inc. <https://www.redhat.com/> dparmar@redhat.com <https://www.redhat.com/> On Sun, Nov 26, 2023 at 7:11 PM Suyash Dongre <suyashd999@gmail.com> wrote:
The Monitor.cc has a function *monmap->contains()* which allows us to check whether the mon with a given id exists. This function is not present in *MDSMonitor.cc,* Any idea how to check whether mds with specific id(s) exists?
Trying to fix: https://tracker.ceph.com/issues/42597 _______________________________________________ Dev mailing list -- dev@ceph.io To unsubscribe send an email to dev-leave@ceph.io
participants (2)
-
Dhairya Parmar
-
Suyash Dongre