[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [atomic] How to migrate a Fedora Atomic Host from devicemapper to overlay2



On 03/28/2017 09:01 PM, Colin Walters wrote:
There's some work on `atomic storage migrate`:
https://trello.com/c/vAunYr5K/310-docker-storage-migrate-images-containers-when-switching-drivers

However, if you just have a fresh system and are OK blowing away
all of your containers/volumes:

```
$ systemctl stop docker
$ rm /var/lib/docker/* -rf
$ lvm lvremove atomicos/docker-pool
  # Reallocate space to the root - tweak how much to your liking
$ lvm lvextend -r -L +50%FREE atomicos/root

When I tried this, I got an error.  Looks like you need '-l' instead:

$ lvm lvextend -r -l +50%FREE atomicos/root

$ echo STORAGE_DRIVER=overlay2 >> /etc/sysconfig/docker-storage-setup
$ rm /etc/sysconfig/docker-storage
$ systemctl start docker
```



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]