Operating System - HP-UX
1825793 Members
2598 Online
109687 Solutions
New Discussion

filesystem showing negative used & free space

 
SOLVED
Go to solution
mjos
Super Advisor

filesystem showing negative used & free space

Hi,

One of the file-systems is showing as negative (-) in the bdf output

/dev/vgtest_db01/lvhom01
131072 -3518 126180 -2% /vac/dbtest/home

The server is B.11.31, ia64

Any idea why it is showing as negative in the used & free space
5 REPLIES 5
SKR_1
Trusted Contributor

Re: filesystem showing negative used & free space

Post lvdisplay for this lv
Also try to remount the FS.

Thanks

SKR
Johnson Punniyalingam
Honored Contributor
Solution

Re: filesystem showing negative used & free space

Hi Mjosm

how about the ..?

du -k /vac/dbtest/home

Obviously there is a difference in how du and bdf behave.
This may occur if we touch open files.
"du" shows output in a positive view: it shows the number of currently allocated
blocks and counts the blocks you've just deleted as free.

"bdf" has a more negative perspective: it shows the free disk space available.

The difference is here: if a still-active process has allocated blocks (such as
for a logfile that you've just deleted), "bdf" counts these as still occupied.
This won't change until the process closes the file ("deallocates the blocks")
as it usually happens when the process terminates.

Thanks,
johnson
Problems are common to all, but attitude makes the difference
mjos
Super Advisor

Re: filesystem showing negative used & free space

#lvdisplay -v /dev/vgtest_db01/lvhom01
--- Logical volumes ---
LV Name /dev/vgtest_db01/lvhom01
VG Name /dev/vgtest_db01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 128
Current LE 32
Allocated PE 32
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) 15

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/disk/disk3387 32 32

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/disk/disk3387 00000 current
00001 /dev/disk/disk3387 00001 current
00002 /dev/disk/disk3387 00002 current
00003 /dev/disk/disk3387 00003 current
00004 /dev/disk/disk3387 00004 current
00005 /dev/disk/disk3387 00005 current
00006 /dev/disk/disk3387 00006 current
00007 /dev/disk/disk3387 00007 current
00008 /dev/disk/disk3387 00008 current
00009 /dev/disk/disk3387 00009 current
00010 /dev/disk/disk3387 00010 current
00011 /dev/disk/disk3387 00011 current
00012 /dev/disk/disk3387 00012 current
00013 /dev/disk/disk3387 00013 current
00014 /dev/disk/disk3387 00014 current
00015 /dev/disk/disk3387 00015 current
00016 /dev/disk/disk3387 00016 current
00017 /dev/disk/disk3387 00017 current
00018 /dev/disk/disk3387 00018 current
00019 /dev/disk/disk3387 00019 current
00020 /dev/disk/disk3387 00020 current
00021 /dev/disk/disk3387 00021 current
00022 /dev/disk/disk3387 00022 current
00023 /dev/disk/disk3387 00023 current
00024 /dev/disk/disk3387 00024 current
00025 /dev/disk/disk3387 00025 current
00026 /dev/disk/disk3387 00026 current
00027 /dev/disk/disk3387 00027 current
00028 /dev/disk/disk3387 00028 current
00029 /dev/disk/disk3387 00029 current
00030 /dev/disk/disk3387 00030 current
00031 /dev/disk/disk3387 00031 current

Unmounte & mounted - still showing as negative
Jaime Bolanos Rojas.
Honored Contributor

Re: filesystem showing negative used & free space

mjos,

You might want to check your 11.31 system, make sure that it got the latest patch bundles installed!

Regards,

Jaime.
Work hard when the need comes out.
mjos
Super Advisor

Re: filesystem showing negative used & free space

Thanks the issue is resolved now.
I went according to what Johnson said regarding the open blocks. I brought down all the filesystems associated with that VG, ran an fsck on the corrupted file-system & then mounted it back, which solved the issues.

Thanks a lot everybody for your help & time