Disk space usage shown in df command is incorrect because of Attribute Inode Leakage
book
Article ID: 100002771
calendar_today
Updated On:
Resolution
The issue is fixed in Storage Foundation 5.0MP3 on Solaris. The fix provided can only prevent VxFS from leaking attributes inode but it will not be able to reclaim the filesystem space used by the attribute inode.
The filesystem has to be recreated in order to reclaim the space.
Applies To
Solaris 5.0MP1 SFCFS cluster
VRTS Kernel Modules:
===========================
35 134e6d8 3a728 305 1 vxdmp (VxVM 5.0MP1-2007-01-22a: DMP Dr)
37 7c002000 33fd48 306 1 vxio (VxVM 5.0MP1-2007-01-22a I/O dri)
39 1384fa0 d48 307 1 vxspec (VxVM 5.0MP1-2007-01-22a control)
214 7b323070 c30 308 1 vxportal (VxFS 5.0_REV-5.0MP1u_sol portal)
215 7ae00000 1bc8a0 21 1 vxfs (VxFS 5.0_REV-5.0MP1u_sol SunOS )
216 7b66e000 20e78 310 1 vxglm (VxGLM 4.0 (SunOS 5.10))
217 7afd0000 24818 321 1 llt (LLT 5.0)
218 7b3b8000 47dc0 322 1 gab (GAB device 5.0)
219 7aa00000 4e578 323 1 vxfen (VRTS Fence 5.0)
239 7aa80000 a2c8 309 1 fdd (VxQIO 5.0_REV-5.0MP1u_sol Quick)
Issue/Introduction
df and du commands show a difference in usage for more than 2GB
The space used by the attribute inode list cannot be shown with ordinary filesystem commands, e.g. ls or du. In order to check the size of the attribute inode list, we need to run the following VxFS fsdb command.
# echo '1fset.67i' | fsdb -F vxfs /dev/vx/rdsk/diskgroup/volume
> 1fset.67i <<< attribute inode list
inode structure at 0x00000018.0300
type IFILT mode 4000000777 nlink 1 uid 0 gid 0 size 12,172,132,352 <<< type IFILT with file size of 12GB
atime 1211172680 557882 (Sun May 18 21:51:20 2008 PDT)
mtime 1211172680 557882 (Sun May 18 21:51:20 2008 PDT)
ctime 1211172680 557882 (Sun May 18 21:51:20 2008 PDT)
aflags 0 orgtype 3 eopflags 0 eopdata 0
fixextsize/fsindex 999 rdev/reserve/dotdot/matchino 99
blocks 2,693,134 gen 18025 version 0 35073 iattrino 0 <<< actual space used is 2.6GB (1KB filesystem block size)
dotdot 0 inattrino 0
ext0: INDIR boff: 0x00000000 bno: 132936 len: 8
ext1: NULL boff: 0x00000000 bno: 0 len: 0
ext2: NULL boff: 0x00000000 bno: 0 len: 0
ext3: NULL boff: 0x00000000 bno: 0 len: 0
ext4: NULL boff: 0x00000000 bno: 0 len: 0
ext5: NULL boff: 0x00000000 bno: 0 len: 0
Please note that the attribute inode list is a sparce file where the file size (12GB) is much bigger than the actual space allocated (2GB).
Additional Information
ETrack: 1314993
Was this article helpful?
thumb_up
Yes
thumb_down
No