Re: Hard Disk is full because of OpenShift Origin

2017-10-31 Thread Sam Padgett
There are some known problems in Docker for Mac where disk usage never
decreases that you might be running into:

https://github.com/docker/for-mac/issues/371

On Mon, Oct 30, 2017 at 4:06 PM, Graham Dumpleton 
wrote:

> If you don't mind having everything trashed, and aren't using Docker
> (seperate to OpenShift) for anything else, just reset the Docker
> installation in the Docker preferences. This will cause Docker to throw
> away the whole VM and start over. You will need to add back the trusting to
> the sub net for OpenShift image registry in Docker preferences.
>
> If you are using Docker for other things and can't loose that work, DON'T
> do this.
>
> Graham
>
>
> On 31 Oct 2017, at 3:25 am, Tien Hung Nguyen 
> wrote:
>
> Hi,
>
> I have executed the commands 'docker exec -it origin bash' and then the
> 'oc login' command in order to login with the user developer, which also
> has the cluster-admin role. Then, I have executed the commands 'oadm
> prune images --confirm', 'oadm prune builds --confirm' and 'oadm prune
> deployments --confirm'. However, it didn't has any effect on my hard disk
> space.
>
> I'm afraid that my local OpenShift Origin installation has some
> problems/errors for some reason, which is the reason why it is taking up
> all my hard disk space.
>
> In this case, is it ok to just delete these paths manually?
> - /var/lib/origin
> - /var/lib/docke
>
>
>
> 2017-10-28 9:58 GMT+02:00 Louis Santillan :
>
>> To run `oc adm prune` (formerly `oadm prune`) you need a real user (not
>> an service account, like `system:admin`) with `cluster-admin` or
>> `system:image-pruner` permission [0].
>>
>>
>> [0] https://docs.openshift.com/container-platform/3.6/admin_
>> guide/pruning_resources.html#pruning-images
>>
>> ___
>> LOUIS P. SANTILLAN
>>
>> SENIOR CONSULTANT, OPENSHIFT, MIDDLEWARE & DEVOPS
>> Red Hat Consulting, NA US WEST 
>>
>> lpsan...@gmail.comM: 3236334854
>> 
>> TRIED. TESTED. TRUSTED. 
>>
>> On Sat, Oct 28, 2017 at 12:41 AM, Tien Hung Nguyen <
>> tienhng.ngu...@gmail.com> wrote:
>>
>>> I have checked the memory in the PATH /mnt/var/lib/origin path and it
>>> says I'm using almost 10GBs there although I have deleted the images with
>>> the ''docker rmi [imageid]' and using 'oc cluster down' commands. I think
>>> that's the problem...
>>> Is it ok to just manually delete the origin folder in the Linux host to
>>> fix that problem?
>>>
>>> Furthermore I have also executed 'docker exec -it origin  bash' command
>>>  in order to get to the Host machine of origin and to execute oadm prune
>>> images command. However, it says that I'm missing a token of an admin
>>> account to execute it.
>>>
>>> I'm using a local OpenShift Origin 3.6 version running on Docker for Mac
>>> and installed via Terminal 'oc cluster up --host-data-dir
>>> /Users/username/oc-data' command. The directory  /Users/username/oc-data'
>>> on my computer occupies only 208,8MB.
>>>
>>> What's the best way to solve this problem?
>>>
>>>
>>> 2017-10-27 22:21 GMT+02:00 Graham Dumpleton :
>>>
 A question for OP. Are you using options to oc cluster up to persist
 data when shutting it down?

 On 27 Oct 2017, at 10:58 pm, Mauricio Améndola <
 mamend...@netlabs.com.uy> wrote:

 Hello,
 The correct way to remove old images is using “oadm prune….”[1]
  command. I remember that there are two folders that increase a lot due to
 tmp files.

 - /var/lib/origin
 - /var/lib/docker

 Try oadm prune and give some feedback
 Regards,

 [1] https://docs.openshift.com/container-platform/3.6/admin_
 guide/pruning_resources.html


 On Oct 26, 2017, at 6:37 PM, Tien Hung Nguyen 
 wrote:

 Hi everybody,

 I have a problem with my hard drive space. Since I'm using OpenShift
 locally with Docker, I have the problem that my hard drive space gets full
 very fast and I can't remove it. I have already run the commands 'oc
 cluster down' and the 'docker rmi [imageip] commands to deleted unused
 images but it has no effect.

 Please, could you tell me how to free up my disk space properly?

 Thank you!

 ___
 users mailing list
 users@lists.openshift.redhat.com
 http://lists.openshift.redhat.com/openshiftmm/listinfo/users


 ___
 users mailing list
 users@lists.openshift.redhat.com
 http://lists.openshift.redhat.com/openshiftmm/listinfo/users



>>>
>>> ___
>>> users mailing list
>>> users@lists.openshift.redhat.com
>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>>
>>>
>>
>
>

Re: Hard Disk is full because of OpenShift Origin

2017-10-30 Thread Tien Hung Nguyen
Hi,

I have executed the commands 'docker exec -it origin bash' and then the 'oc
login' command in order to login with the user developer, which also has
the cluster-admin role. Then, I have executed the commands 'oadm prune
images --confirm', 'oadm prune builds --confirm' and 'oadm prune
deployments --confirm'. However, it didn't has any effect on my hard disk
space.

I'm afraid that my local OpenShift Origin installation has some
problems/errors for some reason, which is the reason why it is taking up
all my hard disk space.

In this case, is it ok to just delete these paths manually?
- /var/lib/origin
- /var/lib/docke



2017-10-28 9:58 GMT+02:00 Louis Santillan :

> To run `oc adm prune` (formerly `oadm prune`) you need a real user (not an
> service account, like `system:admin`) with `cluster-admin` or
> `system:image-pruner` permission [0].
>
>
> [0] https://docs.openshift.com/container-platform/3.6/
> admin_guide/pruning_resources.html#pruning-images
>
> ___
>
> LOUIS P. SANTILLAN
>
> SENIOR CONSULTANT, OPENSHIFT, MIDDLEWARE & DEVOPS
>
> Red Hat Consulting, NA US WEST 
>
> lpsan...@gmail.comM: 3236334854
> 
> TRIED. TESTED. TRUSTED. 
>
> On Sat, Oct 28, 2017 at 12:41 AM, Tien Hung Nguyen <
> tienhng.ngu...@gmail.com> wrote:
>
>> I have checked the memory in the PATH /mnt/var/lib/origin path and it
>> says I'm using almost 10GBs there although I have deleted the images with
>> the ''docker rmi [imageid]' and using 'oc cluster down' commands. I think
>> that's the problem...
>> Is it ok to just manually delete the origin folder in the Linux host to
>> fix that problem?
>>
>> Furthermore I have also executed 'docker exec -it origin  bash' command
>>  in order to get to the Host machine of origin and to execute oadm prune
>> images command. However, it says that I'm missing a token of an admin
>> account to execute it.
>>
>> I'm using a local OpenShift Origin 3.6 version running on Docker for Mac
>> and installed via Terminal 'oc cluster up --host-data-dir
>> /Users/username/oc-data' command. The directory  /Users/username/oc-data'
>> on my computer occupies only 208,8MB.
>>
>> What's the best way to solve this problem?
>>
>>
>> 2017-10-27 22:21 GMT+02:00 Graham Dumpleton :
>>
>>> A question for OP. Are you using options to oc cluster up to persist
>>> data when shutting it down?
>>>
>>> On 27 Oct 2017, at 10:58 pm, Mauricio Améndola 
>>> wrote:
>>>
>>> Hello,
>>> The correct way to remove old images is using “oadm prune….”[1]
>>>  command. I remember that there are two folders that increase a lot due to
>>> tmp files.
>>>
>>> - /var/lib/origin
>>> - /var/lib/docker
>>>
>>> Try oadm prune and give some feedback
>>> Regards,
>>>
>>> [1] https://docs.openshift.com/container-platform/3.6/admin_
>>> guide/pruning_resources.html
>>>
>>>
>>> On Oct 26, 2017, at 6:37 PM, Tien Hung Nguyen 
>>> wrote:
>>>
>>> Hi everybody,
>>>
>>> I have a problem with my hard drive space. Since I'm using OpenShift
>>> locally with Docker, I have the problem that my hard drive space gets full
>>> very fast and I can't remove it. I have already run the commands 'oc
>>> cluster down' and the 'docker rmi [imageip] commands to deleted unused
>>> images but it has no effect.
>>>
>>> Please, could you tell me how to free up my disk space properly?
>>>
>>> Thank you!
>>>
>>> ___
>>> users mailing list
>>> users@lists.openshift.redhat.com
>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>>
>>>
>>> ___
>>> users mailing list
>>> users@lists.openshift.redhat.com
>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>>
>>>
>>>
>>
>> ___
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>>
>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Hard Disk is full because of OpenShift Origin

2017-10-28 Thread Louis Santillan
To run `oc adm prune` (formerly `oadm prune`) you need a real user (not an
service account, like `system:admin`) with `cluster-admin` or
`system:image-pruner` permission [0].


[0]
https://docs.openshift.com/container-platform/3.6/admin_guide/pruning_resources.html#pruning-images

___

LOUIS P. SANTILLAN

SENIOR CONSULTANT, OPENSHIFT, MIDDLEWARE & DEVOPS

Red Hat Consulting, NA US WEST 

lpsan...@gmail.comM: 3236334854

TRIED. TESTED. TRUSTED. 

On Sat, Oct 28, 2017 at 12:41 AM, Tien Hung Nguyen  wrote:

> I have checked the memory in the PATH /mnt/var/lib/origin path and it
> says I'm using almost 10GBs there although I have deleted the images with
> the ''docker rmi [imageid]' and using 'oc cluster down' commands. I think
> that's the problem...
> Is it ok to just manually delete the origin folder in the Linux host to
> fix that problem?
>
> Furthermore I have also executed 'docker exec -it origin  bash' command
>  in order to get to the Host machine of origin and to execute oadm prune
> images command. However, it says that I'm missing a token of an admin
> account to execute it.
>
> I'm using a local OpenShift Origin 3.6 version running on Docker for Mac
> and installed via Terminal 'oc cluster up --host-data-dir
> /Users/username/oc-data' command. The directory  /Users/username/oc-data'
> on my computer occupies only 208,8MB.
>
> What's the best way to solve this problem?
>
>
> 2017-10-27 22:21 GMT+02:00 Graham Dumpleton :
>
>> A question for OP. Are you using options to oc cluster up to persist data
>> when shutting it down?
>>
>> On 27 Oct 2017, at 10:58 pm, Mauricio Améndola 
>> wrote:
>>
>> Hello,
>> The correct way to remove old images is using “oadm prune….”[1]  command.
>> I remember that there are two folders that increase a lot due to tmp files.
>>
>> - /var/lib/origin
>> - /var/lib/docker
>>
>> Try oadm prune and give some feedback
>> Regards,
>>
>> [1] https://docs.openshift.com/container-platform/3.6/admin_
>> guide/pruning_resources.html
>>
>>
>> On Oct 26, 2017, at 6:37 PM, Tien Hung Nguyen 
>> wrote:
>>
>> Hi everybody,
>>
>> I have a problem with my hard drive space. Since I'm using OpenShift
>> locally with Docker, I have the problem that my hard drive space gets full
>> very fast and I can't remove it. I have already run the commands 'oc
>> cluster down' and the 'docker rmi [imageip] commands to deleted unused
>> images but it has no effect.
>>
>> Please, could you tell me how to free up my disk space properly?
>>
>> Thank you!
>>
>> ___
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>>
>> ___
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>>
>>
>>
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Hard Disk is full because of OpenShift Origin

2017-10-28 Thread Tien Hung Nguyen
I have checked the memory in the PATH /mnt/var/lib/origin path and it says
I'm using almost 10GBs there although I have deleted the images with the
''docker rmi [imageid]' and using 'oc cluster down' commands. I think
that's the problem...
Is it ok to just manually delete the origin folder in the Linux host to fix
that problem?

Furthermore I have also executed 'docker exec -it origin  bash' command  in
order to get to the Host machine of origin and to execute oadm prune images
command. However, it says that I'm missing a token of an admin account to
execute it.

I'm using a local OpenShift Origin 3.6 version running on Docker for Mac
and installed via Terminal 'oc cluster up --host-data-dir
/Users/username/oc-data' command. The directory  /Users/username/oc-data'
on my computer occupies only 208,8MB.

What's the best way to solve this problem?


2017-10-27 22:21 GMT+02:00 Graham Dumpleton :

> A question for OP. Are you using options to oc cluster up to persist data
> when shutting it down?
>
> On 27 Oct 2017, at 10:58 pm, Mauricio Améndola 
> wrote:
>
> Hello,
> The correct way to remove old images is using “oadm prune….”[1]  command.
> I remember that there are two folders that increase a lot due to tmp files.
>
> - /var/lib/origin
> - /var/lib/docker
>
> Try oadm prune and give some feedback
> Regards,
>
> [1] https://docs.openshift.com/container-platform/3.6/
> admin_guide/pruning_resources.html
>
>
> On Oct 26, 2017, at 6:37 PM, Tien Hung Nguyen 
> wrote:
>
> Hi everybody,
>
> I have a problem with my hard drive space. Since I'm using OpenShift
> locally with Docker, I have the problem that my hard drive space gets full
> very fast and I can't remove it. I have already run the commands 'oc
> cluster down' and the 'docker rmi [imageip] commands to deleted unused
> images but it has no effect.
>
> Please, could you tell me how to free up my disk space properly?
>
> Thank you!
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
>
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Hard Disk is full because of OpenShift Origin

2017-10-27 Thread Graham Dumpleton
A question for OP. Are you using options to oc cluster up to persist data when 
shutting it down?

> On 27 Oct 2017, at 10:58 pm, Mauricio Améndola  
> wrote:
> 
> Hello,
> The correct way to remove old images is using “oadm prune….”[1]  command. I 
> remember that there are two folders that increase a lot due to tmp files. 
> 
> - /var/lib/origin
> - /var/lib/docker
> 
> Try oadm prune and give some feedback
> Regards,
> 
> [1] 
> https://docs.openshift.com/container-platform/3.6/admin_guide/pruning_resources.html
>  
> 
> 
> 
>> On Oct 26, 2017, at 6:37 PM, Tien Hung Nguyen > > wrote:
>> 
>> Hi everybody,
>> 
>> I have a problem with my hard drive space. Since I'm using OpenShift locally 
>> with Docker, I have the problem that my hard drive space gets full very fast 
>> and I can't remove it. I have already run the commands 'oc cluster down' and 
>> the 'docker rmi [imageip] commands to deleted unused images but it has no 
>> effect.
>> 
>> Please, could you tell me how to free up my disk space properly?
>> 
>> Thank you!
>> 
>> ___
>> users mailing list
>> users@lists.openshift.redhat.com 
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
> 
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users

___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Hard Disk is full because of OpenShift Origin

2017-10-27 Thread Mauricio Améndola
Hello,
The correct way to remove old images is using “oadm prune….”[1]  command. I 
remember that there are two folders that increase a lot due to tmp files. 

- /var/lib/origin
- /var/lib/docker

Try oadm prune and give some feedback
Regards,

[1] 
https://docs.openshift.com/container-platform/3.6/admin_guide/pruning_resources.html
 



> On Oct 26, 2017, at 6:37 PM, Tien Hung Nguyen  
> wrote:
> 
> Hi everybody,
> 
> I have a problem with my hard drive space. Since I'm using OpenShift locally 
> with Docker, I have the problem that my hard drive space gets full very fast 
> and I can't remove it. I have already run the commands 'oc cluster down' and 
> the 'docker rmi [imageip] commands to deleted unused images but it has no 
> effect.
> 
> Please, could you tell me how to free up my disk space properly?
> 
> Thank you!
> 
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users

___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Hard Disk is full because of OpenShift Origin

2017-10-27 Thread Graham Dumpleton
What platform are you on?

If you are on MacOS X or Windows try the following.

Run:

docker run --rm -it -v /:/mnt busybox /bin/sh

This will give you an interactive shell in busybox, but where /mnt has the 
Docker VM file system mounted.

Then go to:

   /mnt/var/lib/origin

and see how much space is being taken up by running 'du -ks .'.

There is a chance that if you were using persistent volumes in OpenShift, that 
any data is still taking up space if the directories weren't cleaned up.

This though is data that the Docker VM would be taking up. If the VM disk file 
has expanded, then removing anything in it may not reclaim it. Not sure how VM 
disk space works and whether can reclaim or whether just expands.

I am not sure where the comparable directory is when using Docker service on 
Linux.

For that you could perhaps run:

docker exec -it origin bash

when oc cluster up is running and then go to:

/var/lib/origin/

in the origin container and see space consumed there. Will be same directory as 
get to above, and mounted from external place Docker service has it.

Graham

> On 27 Oct 2017, at 4:50 pm, Tien Hung Nguyen  wrote:
> 
> I have checked the volumes already using the docker command docker volume ls. 
> However, everything seems pretty normal there.
> 
> Furthermore, I have checked my images with docker images ls. I have found a 
> lot of old images created by OpenShift, which used a lot of GBs on my Hard 
> Disk. That‘s why I started to manually delete those images with the docker 
> command: docker rmi [imageid], but that didn‘t change my hard disk space at 
> all. 
> 
> Do you have any other ideas?
> 
>> Am 27.10.2017 um 01:24 schrieb Graham Dumpleton :
>> 
>> See if you have a lot of docker volumes that haven't been cleaned up 
>> properly.
>> 
>>   docker volume ls
>> 
>> Maybe that is hanging onto space.
>> 
>> Graham
>> 
>>> On 27 Oct 2017, at 8:37 am, Tien Hung Nguyen  
>>> wrote:
>>> 
>>> Hi everybody,
>>> 
>>> I have a problem with my hard drive space. Since I'm using OpenShift 
>>> locally with Docker, I have the problem that my hard drive space gets full 
>>> very fast and I can't remove it. I have already run the commands 'oc 
>>> cluster down' and the 'docker rmi [imageip] commands to deleted unused 
>>> images but it has no effect.
>>> 
>>> Please, could you tell me how to free up my disk space properly?
>>> 
>>> Thank you!
>>> 
>>> ___
>>> users mailing list
>>> users@lists.openshift.redhat.com
>>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>> 


___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Hard Disk is full because of OpenShift Origin

2017-10-26 Thread Tien Hung Nguyen
I have checked the volumes already using the docker command docker volume ls. 
However, everything seems pretty normal there.

Furthermore, I have checked my images with docker images ls. I have found a lot 
of old images created by OpenShift, which used a lot of GBs on my Hard Disk. 
That‘s why I started to manually delete those images with the docker command: 
docker rmi [imageid], but that didn‘t change my hard disk space at all. 

Do you have any other ideas?

> Am 27.10.2017 um 01:24 schrieb Graham Dumpleton :
> 
> See if you have a lot of docker volumes that haven't been cleaned up properly.
> 
>docker volume ls
> 
> Maybe that is hanging onto space.
> 
> Graham
> 
>> On 27 Oct 2017, at 8:37 am, Tien Hung Nguyen  
>> wrote:
>> 
>> Hi everybody,
>> 
>> I have a problem with my hard drive space. Since I'm using OpenShift locally 
>> with Docker, I have the problem that my hard drive space gets full very fast 
>> and I can't remove it. I have already run the commands 'oc cluster down' and 
>> the 'docker rmi [imageip] commands to deleted unused images but it has no 
>> effect.
>> 
>> Please, could you tell me how to free up my disk space properly?
>> 
>> Thank you!
>> 
>> ___
>> users mailing list
>> users@lists.openshift.redhat.com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
> 

___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Hard Disk is full because of OpenShift Origin

2017-10-26 Thread Graham Dumpleton
See if you have a lot of docker volumes that haven't been cleaned up properly.

docker volume ls

Maybe that is hanging onto space.

Graham

> On 27 Oct 2017, at 8:37 am, Tien Hung Nguyen  wrote:
> 
> Hi everybody,
> 
> I have a problem with my hard drive space. Since I'm using OpenShift locally 
> with Docker, I have the problem that my hard drive space gets full very fast 
> and I can't remove it. I have already run the commands 'oc cluster down' and 
> the 'docker rmi [imageip] commands to deleted unused images but it has no 
> effect.
> 
> Please, could you tell me how to free up my disk space properly?
> 
> Thank you!
> 
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users


___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users