{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/os/issues/483","labels_url":"https://api.github.com/repos/rancher/os/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/rancher/os/issues/483/comments","events_url":"https://api.github.com/repos/rancher/os/issues/483/events","html_url":"https://github.com/rancher/os/issues/483","id":100778367,"number":483,"title":"Orphan files in filesystem root","user":{"login":"ndarilek","id":1172,"avatar_url":"https://avatars.githubusercontent.com/u/1172?v=3","gravatar_id":"","url":"https://api.github.com/users/ndarilek","html_url":"https://github.com/ndarilek","followers_url":"https://api.github.com/users/ndarilek/followers","following_url":"https://api.github.com/users/ndarilek/following{/other_user}","gists_url":"https://api.github.com/users/ndarilek/gists{/gist_id}","starred_url":"https://api.github.com/users/ndarilek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndarilek/subscriptions","organizations_url":"https://api.github.com/users/ndarilek/orgs","repos_url":"https://api.github.com/users/ndarilek/repos","events_url":"https://api.github.com/users/ndarilek/events{/privacy}","received_events_url":"https://api.github.com/users/ndarilek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-13T14:09:47Z","updated_at":"2015-08-16T16:02:06Z","closed_at":null,"body":"Apologies if I missed this and it has already been filed, I can't think of suitable search terms.\r\n\r\nWhen working on a RancherVM instance, I did something like:\r\n\r\n    cd /\r\n    tar cf home.tar home\r\n\r\nThen I scp'd home.tar to another system and rebooted the VM.\r\n\r\nWhen it came back up, I noticed that it was using more disk space than I'd expected. In particular, it was using 50G, roughly twice the space of the 25G /home.\r\n\r\nI did a bit of digging and discovered that /var/lib/system-docker was 25G. A bit of extra work turned up home.tar hiding in one of the overlay directories even though /home.tar no longer existed. Removing it brought disk usage down as expected.\r\n\r\nI recognize that /opt and /home are the only stateful directories, which was my expectation when I created /home.tar temporarily. What surprised me was /home.tar vanishing only to continue existing in an overlay directory. It might be nice if non-stateful files could be removed from overlays somehow. Makes me wonder if cruft may persist between boots and eventually come to fill my disks, and if there's anything I might do about it (other than use huge disks and postpone the problem.) But if I'm told that /opt and /home are the only stateful locations, then I'd expect for anything not in those directories to be blown away between boots.\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/rancher/os/issues/comments/131576758","html_url":"https://github.com/rancher/os/issues/483#issuecomment-131576758","issue_url":"https://api.github.com/repos/rancher/os/issues/483","id":131576758,"user":{"login":"ibuildthecloud","id":1754002,"avatar_url":"https://avatars.githubusercontent.com/u/1754002?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildthecloud","html_url":"https://github.com/ibuildthecloud","followers_url":"https://api.github.com/users/ibuildthecloud/followers","following_url":"https://api.github.com/users/ibuildthecloud/following{/other_user}","gists_url":"https://api.github.com/users/ibuildthecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildthecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildthecloud/subscriptions","organizations_url":"https://api.github.com/users/ibuildthecloud/orgs","repos_url":"https://api.github.com/users/ibuildthecloud/repos","events_url":"https://api.github.com/users/ibuildthecloud/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildthecloud/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T16:02:06Z","updated_at":"2015-08-16T16:02:06Z","body":"In rancheros v0.3.3 no containers are ever really deleted from system-docker.  Do a `system-docker ps -a` and you should see a lot of old containers.   You can just delete those.  This has been changed in v0.4, which has not been released yet.  In v0.4 the ephemeral containers are actually deleted."}}