Skip to content

Instantly share code, notes, and snippets.

@develforever
Created April 7, 2020 23:18
Show Gist options
  • Select an option

  • Save develforever/487e41e899f8318debf8ee7fb0355f69 to your computer and use it in GitHub Desktop.

Select an option

Save develforever/487e41e899f8318debf8ee7fb0355f69 to your computer and use it in GitHub Desktop.

Revisions

  1. develforever renamed this gist Apr 7, 2020. 1 changed file with 2 additions and 0 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #!/bin/bash

    # Stop all running containers.
    lxc stop -all
    lxc storage list
  2. develforever renamed this gist Apr 7, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. develforever created this gist Apr 7, 2020.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # Stop all running containers.
    lxc stop -all
    lxc storage list
    truncate -s +20G /var/lib/lxd/disks/default.img
    zpool set autoexpand=on default
    zpool status -vg default
    zpool online -e default device_id_from_step_above
    zpool set autoexpand=off default
    service lxd restart
    # Done