TruCluster
cancel
Showing results for 
Search instead for 
Did you mean: 

df shows boot partition 88% used when only 18% used

SOLVED
Go to solution
Victor Semaska
Frequent Advisor

df shows boot partition 88% used when only 18% used

We have a V5.1B PK3 Trucluster consisting of five ES45s. We've noticed that the '# df -k' command shows the space used for the boot partition for member 5 to be 88% used when it's actually only 18% used. Checked this by '# du -sk /cluster/members/member5/boot_partition'. The space used for the other boot partitions is correct.

We've shut down member five and have run /sbin/advfs/verify on it with no errors reported.

Any ideas?

Thanks,
Vic

5 REPLIES
Greg Yates
Valued Contributor

Re: df shows boot partition 88% used when only 18% used

Vic,

Does "/sbin/advfs/vdf root5_domain" output agree with the du output? The "df" results for AdvFS file systems is not always accurate (which is why we have vdf now). Since you've rebooted I'll assume it's not the problem that sometimes causes this discrepancy which is an open file that has been deleted but not yet closed (btw, you can find these by using lsof or fuser).

Greg
Michael Schulte zur Sur
Honored Contributor
Solution

Re: df shows boot partition 88% used when only 18% used

Hi,

df uses quota information. You may want to run a quotacheck to correct any discrepancies in the quota information.

hth,

Michael
Victor Semaska
Frequent Advisor

Re: df shows boot partition 88% used when only 18% used

Greg,

Thanks for the reply. I wasn't aware of the vdf command. When I use the command on a 'good' boot_partition I get this:

# /sbin/advfs/vdf -k root4_domain
Domain 1024-blocks Metadata Used Available Capacity
root4_domain 262144 6002 44022 212120 19%

Metadata+Used+Available add up to total exactly(262,144). When I use the command on the 'bad' boot_partition I get this:

# /sbin/advfs/vdf -k root5_domain
Domain 1024-blocks Metadata Used Available Capacity
root5_domain 262144 5994 229434 185320 29%

Metadata+Used+Available is over by 158,604. Seems like something got corrupted.

Thanks,
Vic
Victor Semaska
Frequent Advisor

Re: df shows boot partition 88% used when only 18% used

Michael,

That was it. In the past I always ran quotacheck for all disks with the command:

# quotacheck -av

This time I ran it just for that partition with the command:

# quotacheck -v /cluster/members/member5/boot_partition

My mistake, according to the man page for quotacheck, is that the -a option checks only those disks listed in /etc/fstab plus a couple of other rules. The boot partitions aren't in /etc/fstab.

Thanks,
Vic

Michael Schulte zur Sur
Honored Contributor

Re: df shows boot partition 88% used when only 18% used

Hi Victor,

glad to be of help.

Michael

ps.
have you already read this?
http://forums1.itrc.hp.com/service/forums/helptips.do?#28