Hi,
The red lacquer mei seem to read as follows;
一五四 (ichi go shi = 1 5 4)
I do not understand the meaning of these numbers.
談山神社 x x (Tanzan Jinja x x = Tanzan shrine +something)
The first kanji looks a little strange, but it seems to be a variation of 談.
FYI: http://www.tanzan.or.jp/ENG.htm
IMHO, the red lacquer mei was added later as a notation, when an owner had the sword purified at the shrine.