• 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

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 the CTO in the Cloud Infrastructure Business Group (CIBG) at VMware. Besides writing on Yellow-Bricks, Duncan co-authors the vSAN Deep Dive book series and the vSphere Clustering Deep Dive book series. Duncan also co-hosts the Unexplored Territory Podcast.

Follow Me

  • Twitter
  • LinkedIn
  • Spotify
  • YouTube

Recommended Book(s)

Advertisements




Copyright Yellow-Bricks.com © 2023 · Log in