• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Yellow Bricks

by Duncan Epping

  • Home
  • ESXTOP
  • Stickers/Shirts
  • Privacy Policy
  • About
  • Show Search
Hide Search

Enabling maintenance mode via esxcli

Duncan Epping · Jan 7, 2020 ·

I have been having to place my lab host into maintenance mode a few times now via the command-line, for whatever reason I just keep forgetting the command that I should use to place my host into maintenance mode using esxcli, so I figured I would dump it here so I can find it easily. Hopefully, now it sticks…

enter maintenance mode:

esxcli system maintenanceMode set --enable true

exit maintenance mode:

esxcli system maintenanceMode set --enable false

Share it:

  • Tweet

Related

Server esxcli, esxi

Reader Interactions

Comments

  1. Harri Waltari says

    15 January, 2020 at 16:30

    As lots of organisations do use VSAN it might be beneficial also to add the required mode here:
    -m|–vsanmode= Action the VSAN service must take before the host can enter maintenance mode (default ensureObjectAccessibility). Allowed values are:
    ensureObjectAccessibility: Evacuate data from the disk to ensure object accessibility in the vSAN cluster, before entering maintenance mode.
    evacuateAllData: Evacuate all data from the disk before entering maintenance mode.
    noAction: Do not move vSAN data out of the disk before entering maintenance mode.

    • Duncan Epping says

      22 January, 2020 at 11:12

      Yes, for sure!

  2. MaartenBren says

    18 June, 2020 at 11:28

    Just neede this too!
    Thanks 🙂

  3. Mohammed mubeen says

    24 October, 2020 at 02:35

    God bless you for below commands
    esxcli system maintenanceMode set –enable true

    exit maintenance mode:
    esxcli system maintenanceMode set –enable false

Primary Sidebar

About the author

Duncan Epping is a Chief Technologist in the Office of CTO of the Cloud Platform BU at VMware. He is a VCDX (# 007), the author of the "vSAN Deep Dive", the “vSphere Clustering Technical Deep Dive” series, and the host of the "Unexplored Territory" podcast.

Upcoming Events

29-08-2022 – VMware Explore US
07-11-2022 – VMware Explore EMEA
….

Recommended Reads

Sponsors

Want to support Yellow-Bricks? Buy an advert!

Advertisements

Copyright Yellow-Bricks.com © 2022 · Log in