File system Output inconsistence

Saturday, August 8, 2009 at 4:16 AM
The df command reports large values that do not match the filesystem size.
Filesystems are controlled by either Veritas Volume Manager or Solstice[TM] Disk Suite

root# df -h / <--- Solaris 9 or greater--- Filesystem size used avail capacity Mounted on
/dev/md/dsk/d210 5.8G 16384E 6.3G 308102866625852% /
root#df -k grep /test
/dev/vx/dsk/datadg/testvol 147501463 18446744054756400981 19097702069127613704992 76% /test

Size of the metadevice (Disk Suite) or the volume (Volume Manager) do not agree with the filesytem size. This can happen when the user grows/shrinks the metadevice or volume, but does not adjust the size of the filesystem. This usually occurs in error To confirm that the result of the df -k command is inaccurate: 1. Determine the number of blocks in the file system: # df
2. Determine the number of blocks in the corresponding metadevice or volume:
# metastat

# vxlist -ht -v

Note: The numbers will not match exactly but they should be close.

To adjust the numbers:
1. Unmirror the device.
2. Umount the file system (if file system is /, /usr, or /var, you will need to boot the CD-ROM).
3. Perform a ufsdump on the file system to back up the data.
4. newfs the file system.
5. Restore the data.
6. Re-mirror the device.
The following workarounds have been successful as a temporary resolution to
the problem. However, they might not work in all cases.

Please try this if not solved
1.umount /etc/mnttab
mount -F mntfs mnttab /etc/mnttab
df -k
2.umount the file system:
Fsck the file system until it reports no errors
Mount the file system
df -k


Post a Comment

Solaris | Powered by Blogger | Entries (RSS) | Comments (RSS) | Designed by MB Web Design | XML Coded By