Re: cf cell's df result question


George Lestaris
 

Hello Kyungwon,

Where do you see that your cell disk is using 10G? It could be because of
how the BOSH VMs partition the disk.

On Thu, Sep 14, 2017 at 9:46 PM, Lior Okman <lior.okman(a)gmail.com> wrote:


Hi,

Usually a certain percentage (5% by default) of the available disk space
is reserved for uid 0. You can check to see what that percentage amounts to
in bytes using the following command if the filesystem is ext{2,3,4}:

echo $(( $(tune2fs -l /dev/xvdb2 |grep "Reserved block count"|cut -f2
-d: ) * $(tune2fs -l /dev/xvdb2 | grep "Block size" |cut -f2 -d: ) ))

See tune2fs(8) for details.

For a 100G disk this would amount to your missing 5G.

--
Lior

On Thu, Sep 14, 2017 at 1:45 PM, 강경원 <kyungwon.kang(a)samsung.com> wrote:

Hi, when I check the cell's disk, it's using 10G but df result reports
only 5G is used. Can I know why?



diego-cell/b3d42906-84f3-40db-8361-64232dac4ff8:/var/vcap/data# df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 4.0K 3.9G 1% /dev
tmpfs 799M 548K 798M 1% /run
/dev/xvda1 2.9G 1.9G 866M 69% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 3.6M 3.9G 1% /run/shm
none 100M 0 100M 0% /run/user
/dev/xvdb2 91G 5.1G 81G 6% /var/vcap/data



Regards,

Kyungwon Kang.


강경원(Kang, Kyungwon) Marcus Kang
RHCA/PMP/ITIL Master/OCP(Oracle/Solaris)
직급:수석
클라우드기술그룹(클라우드) M.P: 82-10-8998-2092
kyungwon.kang(a)samsung.com




--
George Lestaris
GrootFS <https://www.github.com/cloudfoundry/grootfs> Product Manager, Cloud
Foundry <https://www.cloudfoundry.org/>, Pivotal <https://www.pivotal.io/>

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.