We study the CP violation in the lepton-number-violating process B 0 s → D − s µ + µ + π − and its CP-conjugate process B0s → D + s µ − µ − π + that are induced by two GeV-scale Majorana neutrinos with nearly degenerate masses. Our result shows that the size of the CP violation could become considerable if the mass difference between the two Majorana neutrinos is around the decay width of the neutrinos. We perform experimental analysis on the CP-violating processes at LHCb within its upgrade II. The analysis shows that under current constraint on the heavy-light neutrino mixing parameter, it is possible that such CP violation is observed with the LHCb experimental ability. We also give the upper bound on the heavy-light mixing parameter |UµN | 2 under the assumption that no positive signal of the process is observed. The result shows that such modes can give complementary constraint compared with previous experiments such as NuTeV, BEBC, etc. in the mass region 1 GeV < mN < 3 GeV.