PDA

View Full Version : df -h space issue confusion on the /var - SuSe 10 sp1



gopalelango
31-Aug-2012, 14:37
Greetings!

The df -h on the /var is showing the 80GB used size but du -ksh /var is showing 687MB of the total used size of this directory;The total size of the /var partition is 89GB. I am confusing at this point ,also i have gone through the each directories and files size and found everything is normal size ,no files size is above 1GB in the /var directory, but the df -h confuses me and noticed there 80GB used on the /var partition.

kernel version : vmlinuz-2.6.16.46-0.12-bigsmp
Os version : SUSE Linux Enterprise server 10 sp1

Is this bugs or filesystem for the /var corrupted or hard/soft link on the /var ? should i upgraded from the current version SLES 10 sp1 to higher version? I appreciate your suggestion,recommendation and update.

Regards,
Elango

ab
31-Aug-2012, 17:11
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Is this bugs or filesystem for the /var corrupted or hard/soft link
> on the /var ?

I'd bet on something like the answer provided here:

http://serverfault.com/questions/64052/file-size-mismatch

> should i upgraded from the current version SLES 10 sp1 to higher
> version?

Definitely, no matter what the outcome of this question. SP1 is really,
really old.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQQOIvAAoJEF+XTK08PnB5cY0P+gK6ISiMTJ J+QA6k8ZjW99mX
ut8vQ35KYd7fiRipgecfWDquB/zLmuPV3ghow/CwaaT7uN2zkJXtourix6442AwU
pvSjS6TzqibKJ8x0U4lBuAjrQnO/m/yFGf9rTGtWMWdVeOuOP+0sgmy1AK7luWI6
D39r7weQxsmhoG8nqL7yrgwwp3wLTDG77MtzrpP5mojJt2UjwH MemNwA+SW0XO4Y
KTs1wt9EW/N2lNtGePy9huWGOBlNOM5poN6Rub5M/qMvPcu2/D18mwbTtQIcFR7l
JoHf9G2mA0ZTl1j7jo/TPF2DnvA6MVJ/T/F9y6m2FNb59z/viMTva7EgAk+U3c97
HB49mW2iGaGli3u9sQN3NgvONvo+3LrNX0xcqA6RC4c6k6Iw7s RJ2T78KDjD/8LS
urFmQGneF5cN9hNzguiTfDQ9cL0Cb+ls3jHDCQ6gcbIVIRvIWq D0YDZ12BaHqaqv
QfKOcy+gi12meDJz5l1DwH0kvDaO5Q9xGebXcOuRlzJF41v+vX vx0E/bpLQmWcRU
ofoRw/aoQQ0Vm9EYymKMgAKq1lV0gEjYvBYlTfpIVDi5eDXK0xZQVmp5 K7gjHdf8
T1O+OoT/Cxl3CWJ+dpeBZqFkPiHDbTBbJZ8B/kGjWoVqS228qg8YagfLmbfNjZZN
4As9dxfw6zvv6sPqLqvE
=qXHW
-----END PGP SIGNATURE-----

gopalelango
01-Sep-2012, 08:34
thanks for the prompting update and mentioned the right link. Can i run the fsck on the /var partition after unmounted it? and what is the proper fsck syntax to fix this issue?

Is there any inbuild software on the suse to check the filesystem integrity and fix the error for the same.

thanks in advanced
Elango

KBOYLE
01-Sep-2012, 17:52
gopalelango wrote:


> Can i run the fsck on the /var partition after unmounted it? and what
> is the proper fsck syntax to fix this issue?
>
> Is there any inbuild software on the suse to check the filesystem
> integrity and fix the error for the same.


Check the man pages for information:



man fsck



> fsck is used to check and optionally repair one or more
> Linux file systems. filesys can be a device name (e.g. /dev/hdc1,
> /dev/sdb2), a mount point (e.g. /, /usr, /home), or
> an ext2 label or UUID specifier (e.g.
> UUID=8868abf6-88c5-4a83-98b8-bfc24057f7bd or LABEL=root). Normally,
> the fsck program will try to handle filesystems on different
> physical disk drives in parallel to reduce the total amount of time
> needed to check all of the filesystems.

If your filesystem hasn't been checked for a long time, it will be
checked when the system is booted, You can check /var/log/messages. It
is always a good idea to check /var/log/messages for clues about what
is happening with your system.

fsck will check and repair disk errors. If you cannot umount a certain
mount point, you can boot into rescue mode with an installation CD and
then run these disk checks.

--
Kevin Boyle - Knowledge Partner
If you find this post helpful and are using the web interface,
show your appreciation and click on the star below...

ab
01-Sep-2012, 19:42
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> thanks for the prompting update and mentioned the right link. Can i
> run the fsck on the /var partition after unmounted it? and what is
> the proper fsck syntax to fix this issue?

No no no.... the 'Accepted Answer' on that page had nothing to do with
fsck. Read the answer with a '6' by it, and more-importantly, a green
checkmark. The only instance of 'fsck' is at the bottom and is almost
certainly not what you want to do (it won't hurt, but it's probably
irrelevant).

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQQlcQAAoJEF+XTK08PnB5hg8QAKleQCWrTe MjIbxJB1GNedPZ
p1R5OWG1i6Z0OHZLocdmDNK8w3+B8JYP5FQt5G8UrNVuu1bPnY w8t98BmHrytGHy
DzUFn1gCXxxINzLdgTSL2RrmvNpvPJ5T8FOPLtqdSoCtA/JKKhHFmhm/B1NkNP1Z
HWhmRqqfygS8zr5ydiP9N/EmtL0X0SAUPOFLieDQ4VYGoTv/d+fMCxQ244OzQrPi
5wDluQcZjEN13eQaCuNRw8ASOUDX5RuQMQ5yaCl9aJnKU45E6h IOdWEiRLMgEv/5
3tlrAD3rFAp5R08vh45PsglxQFOR4fTmtuPpmdkr+aJlf92r62 dTJq3sTiqaGihY
DmBbmZxVb2sx7yUIqdItziWqa4q7MFTuJyMuaBcBToKgUVpLYd zz2IOpRLZeJxCE
vxMZM68gXVQ0wN+9Q3bPMxId/2F1ZRfXWy2pHqdpShVDdRdf7ar8tphW9MZOye/O
jpO5idJqIeZvt8TPpjmIeoF9PyS0E8n2+LcvE9o0tv/CThnVtcTI0XgMVSrwcaGf
B066oPPBtqyYTUQOSEf1ehN3SwwhQFWJp0NpbcA7ifsW0B9RU1 +zjmFAy+9HYZMD
O7NOTlmzGPUU9t3FgHkkMhWFAgfsYLVSnBHVoPXdEvDq2fd8uI BttJtCWcYqnTpN
szsjsWluhIWchi/Cq54z
=B2zH
-----END PGP SIGNATURE-----

gopalelango
03-Sep-2012, 08:02
Thanks for prompting update both of you!

Does anyone have a solution or suggestion on this issue.Thank you in advanced for your cooperation.

Regards,
Elango