Guozhonghua
2013-Apr-16 02:52 UTC
[Ocfs2-users] Why is it no space on OCFS2 disk, but there is about 17.8G ramained with the disk checked with df tool? Thanks a lot.
Hi, everyone The test environment is Ubuntu 1204, with ocfs2-tools 1.6.4, Linux kernel version is 3.2.40. I format the disk of sdc as the OCFS2, and sdc disk is one LUN on iSCSI storage. root at Server13:~# fdisk -l /dev/sdc Disk /dev/sdc: 222.0 GB, 222049599488 bytes 255 heads, 63 sectors/track, 26995 cylinders, total 433690624 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x2887d2e0 Device Boot Start End Blocks Id System I formatted one disk with the command line as below, 32 node and block is 4K, cluster_size is 1M, used as Virtual machine storage: mkfs.ocfs2 -b 4k -C 1M -L targetwu-lun1 -T vmstore -N 32 /dev/sdc The disk capacity is about 200G after formatting. As the capacity is used, there is remained about 17.8G on the disk sdc. It is no space when I copy one file about 5G to the mount point /vms/he: root at Server13:~# cp /vms/Share/X16w2k3-1-11 /vms/he/;echo $? cp: writing `/vms/he/X16w2k3-1-11': No space left on device cp: failed to extend `/vms/he/X16w2k3-1-11': No space left on device 1 It is OK to create file with 1K size. root at Server13:/vms/he# dd if=/dev/zero of=filename.a bs=1K count=2;echo $? 2+0 records in 2+0 records out 2048 bytes (2.0 kB) copied, 2.237e-05 s, 91.6 MB/s 0 The remained inode number is as below: root at Server13:~# df -i /vms/he Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sdc 211763 193537 18226 92% /vms/he The cluster size informations: root at Server13:/var/spool# debugfs.ocfs2 -n -R "stats" /dev/sdc | grep -i "Cluster Size" Block Size Bits: 12 Cluster Size Bits: 20 The disk stats is: debugfs: stats Revision: 0.90 Mount Count: 0 Max Mount Count: 20 State: 0 Errors: 0 Check Interval: 0 Last Check: Mon Mar 18 14:04:56 2013 Creator OS: 0 Feature Compat: 3 backup-super strict-journal-super Feature Incompat: 4688 sparse inline-data xattr refcount Tunefs Incomplete: 0 Feature RO compat: 1 unwritten Root Blknum: 513 System Dir Blknum: 514 First Cluster Group Blknum: 256 Block Size Bits: 12 Cluster Size Bits: 20 Max Node Slots: 32 Extended Attributes Inline Size: 256 Label: targetwu-lun1 UUID: 158526F2CC804CB8B9A8734B11D62B08 Hash: 2796710281 (0xa6b26989) DX Seed[0]: 0x00000000 DX Seed[1]: 0x00000000 DX Seed[2]: 0x00000000 Cluster stack: classic o2cb Inode: 2 Mode: 00 Generation: 2995084755 (0xb2855dd3) FS Generation: 2995084755 (0xb2855dd3) CRC32: 00000000 ECC: 0000 Type: Unknown Attr: 0x0 Flags: Valid System Superblock Dynamic Features: (0x0) User: 0 (root) Group: 0 (root) Size: 0 Links: 0 Clusters: 211763 ctime: 0x50f74cb4 -- Thu Jan 17 08:58:28 2013 atime: 0x0 -- Thu Jan 1 08:00:00 1970 mtime: 0x50f74cb4 -- Thu Jan 17 08:58:28 2013 dtime: 0x0 -- Thu Jan 1 08:00:00 1970 ctime_nsec: 0x00000000 -- 0 atime_nsec: 0x00000000 -- 0 mtime_nsec: 0x00000000 -- 0 Refcount Block: 0 Last Extblk: 0 Orphan Slot: 0 Sub Alloc Slot: Global Sub Alloc Bit: 65535 root at Server13:/vms/he# dd if=/dev/zero of=filename.iso2 bs=1k count=500;echo $? dd: writing `filename.iso2': No space left on device 4+0 records in 3+0 records out 3072 bytes (3.1 kB) copied, 0.00250058 s, 1.2 MB/s The information about /vms/he is as below: root at Server13:/vms/he# ls -al total 193093636 drwxr-xr-x 4 root root 3896 Apr 13 10:34 . drwxr-xr-x 15 root root 4096 Apr 12 16:44 .. -rw-r--r-- 1 root root 4 Apr 12 15:09 aa -rw-r--r-- 1 root root 4 Apr 12 16:44 aaa.txt -rw------- 1 root root 3651141632 Apr 3 16:24 CAS-174 -rw------- 1 root root 2030043136 Apr 5 13:19 CAS-178 -rw-r--r-- 1 root root 940818432 Mar 18 11:32 CAS-R0105.iso -rw-r--r-- 1 root root 3070230528 Apr 12 14:51 F3w2k3-1-11 -rw-r--r-- 1 root root 6520045568 Apr 13 10:01 Fedora1_EN -rw-r--r-- 1 root root 5651824640 Apr 13 10:46 Fedora2_EN -rw-r--r-- 1 root root 6450839552 Apr 12 13:45 Fedora3_EN -rw-r--r-- 1 root root 5645533184 Apr 10 18:02 Fedora_EN -rw-r--r-- 1 root root 3072 Apr 13 10:29 filename.a -rw-r--r-- 1 root root 1024 Apr 13 10:25 filename.iso2 -rw-r--r-- 1 root root 0 Apr 13 10:25 filename.iso2d drwxr-xr-x 2 root root 3896 Apr 13 10:23 gzh_test -rw-r--r-- 1 root root 419430400 Apr 12 14:25 h2w2k3-1-11 -rw-r--r-- 1 root root 18874880 Apr 12 14:25 h5 -rw-r--r-- 1 root root 18874880 Apr 9 16:08 h61h5 -rw-r--r-- 1 root root 18874880 Apr 9 13:48 h62h5 -rw-r--r-- 1 root root 18874880 Apr 11 14:26 h63h5 -rw-r--r-- 1 root root 18874880 Apr 9 13:48 h64h5 -rw-r--r-- 1 root root 18874880 Apr 9 13:48 h65h5 -rw-r--r-- 1 root root 18874880 Apr 9 13:48 h66h5 -rw-r--r-- 1 root root 18874880 Apr 11 18:09 h67h5 -rw-r--r-- 1 root root 18874880 Apr 9 13:48 h68h5 -rw-r--r-- 1 root root 18874880 Apr 11 15:43 hh10h5 -rw-r--r-- 1 root root 18874880 Apr 11 15:43 hh1h5 -rw-r--r-- 1 root root 18874880 Apr 11 16:36 hh2h5 -rw-r--r-- 1 root root 18874880 Apr 9 13:50 hh3h5 -rw-r--r-- 1 root root 18874880 Apr 9 13:50 hh4h5 -rw-r--r-- 1 root root 18874880 Apr 11 16:21 hh5h5 -rw-r--r-- 1 root root 18874880 Apr 11 16:19 hh6h5 -rw-r--r-- 1 root root 18874880 Apr 9 13:50 hh7h5 -rw-r--r-- 1 root root 18874880 Apr 9 13:50 hh8h5 -rw-r--r-- 1 root root 18874880 Apr 9 13:50 hh9h5 -rw-r--r-- 1 root root 18998099968 Apr 13 2013 XXa -rw------- 1 root root 3011510272 Apr 12 14:27 Linux-clone drwxr-xr-x 2 root root 3896 Mar 18 14:04 lost+found -rw------- 1 root root 9080668160 Apr 13 2013 XX -rw------- 1 root root 5391777792 Apr 13 2013 XX-clone -rw------- 1 root root 5385486336 Apr 12 14:38 XX-clone10 -rw------- 1 root root 5387583488 Apr 12 13:57 XX-clone11 -rw------- 1 root root 5385486336 Apr 12 14:38 XX-clone12 -rw------- 1 root root 5391777792 Apr 13 10:46 XX-clone13 -rw------- 1 root root 5385486336 Apr 12 13:19 XX-clone14 -rw------- 1 root root 5387583488 Apr 12 13:53 XX-clone15 -rw------- 1 root root 5389680640 Apr 12 14:38 XX-clone16 -rw------- 1 root root 5395972096 Apr 13 10:46 XX-clone17 -rw------- 1 root root 5389680640 Apr 12 14:38 XX-clone18 -rw------- 1 root root 5391777792 Apr 12 14:38 XX-clone19 -rw------- 1 root root 5387583488 Apr 12 13:17 XX-clone2 -rw------- 1 root root 5391777792 Apr 12 13:38 XX-clone3 -rw------- 1 root root 5385486336 Apr 12 14:03 XX-clone4 -rw------- 1 root root 5387583488 Apr 12 14:40 XX-clone5 -rw------- 1 root root 5385486336 Apr 12 13:19 XX-clone6 -rw------- 1 root root 5387583488 Apr 12 14:40 XX-clone7 -rw------- 1 root root 5387583488 Apr 12 14:38 XX-clone8 -rw------- 1 root root 5393874944 Apr 12 14:38 XX-clone9 -rw------- 1 root root 5389680640 Apr 13 2013 XX-clone0 -rw-r--r-- 1 root root 10486272 Mar 20 11:05 test4 -rw-r--r-- 1 root root 1621098496 Apr 12 14:38 tf11w2k3-1-11 -rw-r--r-- 1 root root 1621098496 Apr 12 14:53 tf12w2k3-1-11 -rw-r--r-- 1 root root 1621098496 Apr 12 14:38 tf13w2k3-1-11 -rw-r--r-- 1 root root 1621098496 Apr 12 14:54 tf14w2k3-1-11 -rw-r--r-- 1 root root 1627390464 Apr 12 15:41 tf15w2k3-1-11 -rw-r--r-- 1 root root 1621098496 Apr 12 14:38 tf16w2k3-1-11 -rw-r--r-- 1 root root 1621098496 Apr 12 14:54 tf20w2k3-1-11 -rw-r--r-- 1 root root 1621098496 Apr 12 14:54 tf3w2k3-1-11 -rw------- 1 root root 6291968 Apr 12 14:25 tt -rw------- 1 root root 2480930816 Mar 14 18:37 ubuntu-1210 -rw-r--r-- 1 root root 6291968 Mar 25 14:48 uuuqui -rw-r--r-- 1 root root 3917479936 Apr 1 15:11 XX_lldptool_muban_6-clone -rw-r--r-- 1 root root 3818913792 Mar 14 15:55 XX_muban -rw-r--r-- 1 root root 458227712 Apr 12 16:54 X13w2k3-1-11 -rw-r--r-- 1 root root 0 Apr 13 09:24 X16w2k3-1-11 -rw-r--r-- 1 root root 281018368 Apr 12 15:05 X1w2k3-1-11 -rw-r--r-- 1 root root 210763776 Apr 13 10:37 zero Why is it no capacity to cp or create large size file, but the disk capacity remains about 17.8G with df check? Is it OK, or something wrong with it? Thanks a lot. Guozhonghua 2013-4-16 ------------------------------------------------------------------------------------------------------------------------------------- ???????????????????????????????????????? ???????????????????????????????????????? ???????????????????????????????????????? ??? This e-mail and its attachments contain confidential information from H3C, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20130416/35d1fd9d/attachment-0001.html