[Ocfs2-users] About DISK space of OCFS2.

ohue.hidetoshi at jp.fujitsu.com ohue.hidetoshi at jp.fujitsu.com
Sun Oct 18 21:00:14 PDT 2009


Hi Tao
Thank you for your quick reply. 

I learnt to do pre allocation. 
So,I copied file(1byte) each 1file until the change occurs to the result of "df". 
I learnt to change of each 8192K byte in the "df" command. 

Thank you.
Hide

>Date:    Mon, 19 Oct 2009 09:46:50 +0800
>From:    Tao Ma <tao.ma at oracle.com>
>Subject: Re: [Ocfs2-users] About DISK space of OCFS2.

>Hi ohue,
>	ocfs2 is a cluster file system, so in order to speed up the process and 
>avoid cluster lock, we do some preallocation in some system 
>files(local_alloc files and inode_alloc files). And df is used to 
>indicate the fs statistics for the whole volume.
>
>In your case, the ocfs2 volume have already allocated enough inodes and 
>disk spaces to this mounted node, so when you create a new file this 
>node will try to allocate inodes and disk spaces from its own 
>inode_alloc and local_alloc. And if it succeeds, you won't see any disk 
>change for the whole volume.
>
>Hope I explain it clearly.
>
>Regards,
>Tao
>
>ohue.hidetoshi at jp.fujitsu.com wrote:
>> Hi ALL
>> 
>> I have a question about DISK space of OCFS2. 
>> I copy a file by a "cp" command after check the DISK space by "df -k" command.
>> There is no change when I cheked the DISK space by "df -k"command again. 
>> 
>> I show below an procedure.
>> -------------------------------------------------------------------------------
>> root at CPU_N:/fm/bbb> ls -l
>> total 3
>> -rwxr-xr-x 1 root root  89 Jan  3 16:01 qmount.sh
>> -rwxr-xr-x 1 root root 137 Jan  3 16:01 qumount.sh
>> -rwxr-xr-x 1 root root 435 Jan  3 16:01 set_if.sh
>> -rwxr-xr-x 1 root root  97 Jan  3 16:01 shtest.sh
>> -rwxr-xr-x 1 root root 468 Jan  3 16:01 syslog_chg.sh
>> -rwxr-xr-x 1 root root  46 Jan  3 16:01 testtest.sh
>> 
>> root at CPU_N:/fm/bbb> df -k
>> Filesystem           1K-blocks      Used Available Use% Mounted on
>> /dev/sda4              6594680    150216   6444464   3% /fm
>> 
>> root at CPU_N:/fm/bbb> cp set_if.sh set_if.cpy
>> 
>> root at CPU_N:/fm/bbb> sync
>> 
>> root at CPU_N:/fm/bbb> df -k
>> Filesystem           1K-blocks      Used Available Use% Mounted on
>> /dev/sda4              6594680    150216   6444464   3% /fm
>> 
>> root at CPU_N:/fm/bbb> ls -l
>> total 4
>> -rwxr-xr-x 1 root root  89 Jan  3 16:01 qmount.sh
>> -rwxr-xr-x 1 root root 137 Jan  3 16:01 qumount.sh
>> -rwxr-xr-x 1 root root 435 Jan  3 16:04 set_if.cpy
>> -rwxr-xr-x 1 root root 435 Jan  3 16:01 set_if.sh
>> -rwxr-xr-x 1 root root  97 Jan  3 16:01 shtest.sh
>> -rwxr-xr-x 1 root root 468 Jan  3 16:01 syslog_chg.sh
>> -rwxr-xr-x 1 root root  46 Jan  3 16:01 testtest.sh
>> -------------------------------------------------------------------------------
>> 
>> *The version is the following. 
>>  Linux-2.6.21.7
>>  ocfs2-tools-1.2.3
>> 
>> 
>> Do you know a reason and a solution? 
>> Please give it for me.
>> 
>> Hide
>> 
>> _______________________________________________
>> Ocfs2-users mailing list
>> Ocfs2-users at oss.oracle.com
>> http://oss.oracle.com/mailman/listinfo/ocfs2-users



More information about the Ocfs2-users mailing list