Repository Space calculation in OVM x86 environment.

I presented LUN of 50 GB from Storage.

When I created repository using 50GB, 4.3 GB of space got used for overhead associated with it.

[root@OVS-2 ~]# df -h /OVS/Repositories/0004fb0000030000f1532acb312df8a2
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/14f504e46494c45006a504d3265522d31386d342d5a76416f 50G 4.3G 46G 9% /OVS/Repositories/0004fb0000030000f1532acb312df8a2

At this current point of time It is showing me equal usage in GUI and OVS CLI.
Currently I have not put any thing on repository. Now I am going to upload the ISO image to repsoitory using winscp.
I connected the winscp session to OVS server and browsed to path /OVS/Repositories/0004fb0000030000f1532acb312df8a2/ISOs and started transerring ISO image to mentioned path.

If I am checking the utilization at OVS CLI level it is showing me the currect utilization but at GUI level utilization is misleading it is still 9% there. We need to refresh the repository to see the correct utilization.

[root@OVS-1 ~]# df -h /OVS/Repositories/0004fb0000030000f1532acb312df8a2/
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/14f504e46494c45006a504d3265522d31386d342d5a76416f 50G 12G 39G 23% /OVS/Repositories/0004fb0000030000f1532acb312df8a2

[root@OVS-1 ~]# cd !$
cd /OVS/Repositories/0004fb0000030000f1532acb312df8a2/

[root@OVS-1 0004fb0000030000f1532acb312df8a2]# du -sh *
0 Assemblies
7.0G ISOs
0 lost+found
0 Templates
0 VirtualDisks
0 VirtualMachines
[root@OVS-1 0004fb0000030000f1532acb312df8a2]#
If we are doing operation using GUI then repository will take the correct utilization. If we are doing it from CLI then we have to do it manually.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s