HPUX shows the size incorrectly, why? (IA, 11.31 with update from 0909)
I did a lvextend for 1GB to make sure the FS is done correctly.
lvextend -L 601000m /dev/vgdoc09/dm_data05 (OK)
fsadm -F vxfs -b 601024m /data/dm_data05 (OK)
nB: There are less then 1000 files on FS dm_data05, running with 1kb blocksize, FS version 1 (lvmadm -l).
I then check:
[test:tng]/data/dm_data05 # bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vgdoc09/dm_data05
615448576 24165277 554328103 4% /data/dm_data05 (1 big LUNs a 600GB)
why only 554328103?? I expect almost 600GB.
in Gbytes:
[test:tng]/data/dm_data05 # bdfgigs /data/dm_data05
File-System Gbytes Used Avail %Used Mounted on
/dev/vgdoc09/dm_data05 587 23 529 4% /data/dm_data05
why only 587G ??
which df command:
[test:tng]/data/dm_data05 # df -k .
/data/dm_data05 (/dev/vgdoc09/dm_data05) : 578493594 total allocated Kb
554324814 free allocated Kb
24168780 used allocated Kb
5 % allocation used
There are 600GB lun, why only show 578493594?? there are less than 22GB!
--Reference: Another FS on the server, which shows OK. blocksize is 1K and with default mount option. FS version 1
[test:tng]/data/dm_data05 # bdf /data/dm_data04
Filesystem kbytes used avail %used Mounted on
/dev/vgdoc07/dm_data04
1048281088 837389112 197711245 81% /data/dm_data04 (5 LUNs a 200GB)
[test:tng]/data # bdfgigs /data/dm_data04
File-System Gbytes Used Avail %Used Mounted on
/dev/vgdoc07/dm_data04 1000 809 179 82% /data/dm_data04
Why different sizes? notice the bdf shows correctly for an another FS on the same server.
What did I done wrong?
Regards
Tuan
[test:tng]/data # vgdisplay -v vgdoc09
--- Volume groups ---
VG Name /dev/vgdoc09
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 128
Cur PV 2
Act PV 2
Max PE per PV 30000
VGDA 4
PE Size (Mbytes) 32
Total PE 38398
Alloc PE 37564
Free PE 834
Total PVG 2
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 120000g
VG Max Extents 3840000
--- Logical volumes ---
LV Name /dev/vgdoc09/dm_data05
LV Status available/syncd
LV Size (Mbytes) 601024
Current LE 18782
Allocated PE 37564
Used PV 2
--- Physical volumes ---
PV Name /dev/disk/disk697
PV Status available
Total PE 19199
Free PE 417
Autoswitch On
Proactive Polling On
PV Name /dev/disk/disk703
PV Status available
Total PE 19199
Free PE 417
Autoswitch On
Proactive Polling On
--- Physical volume groups ---
PVG Name CL-IX-doc09
PV Name /dev/disk/disk697
PVG Name CL-9M-doc09
PV Name /dev/disk/disk703
[test:tng]/data #