(a) If the lease under which an action is brought under subdivision 1 is for a term of more than 20 years, the action may not begin until the landlord serves a written notice on the tenant and on all creditors with legal or equitable recorded liens on the property. The notice must state: (1) the lease will be canceled unless the amounts, agreements, and legal obligations in default are paid or performed within 30 days, or a longer specified period; and (2) if the amounts, agreements, and legal obligations are not paid or performed within that period, then the landlord may evict the tenant at the expiration of the period.