ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    LXC / LXD Move Container to New Storage Pool

    IT Discussion
    lxc lxd linux containers
    1
    1
    837
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Very easy process, but one that is a little hard to find information on. Just four commands. We have to stop the container, move with a new name, then we can rename to the old name, and start it again. Fast and simple, but not necessarily intuitive.

      lxc stop container
      lxc move container container_temp -s new_storage_pool
      lxc move container_temp container
      lxc start container
      

      Would be really trivial to script, too.

      1 Reply Last reply Reply Quote 2
      • 1 / 1
      • First post
        Last post