1846636 Members
1452 Online
110256 Solutions
New Discussion

Missing disk space

 
SOLVED
Go to solution
Abhijith Madhav
Occasional Advisor

Missing disk space

I have created a single logical volume encompassing two disks. The total disk space available is about 65GB as shown in the output of the 'vgdisplay' output below. However on mounting the creating volume I find that I can get only 31 GB of diskspace(output of df command).

Could someone help me get to know where the remaining disk space is and how do I recover it back??

Attempts to 'lvextend' failed obviously as all PE's are marked as allocated.


"
#vgdisplay -v /dev/vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 8683
VGDA 4
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 8680
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg01/felogs
LV Status available/syncd
LV Size (Mbytes) 65440
Current LE 8180
Allocated PE 8180
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c3t2d0
PV Status available
Total PE 4340
Free PE 0
Autoswitch On

PV Name /dev/dsk/c2t1d0
PV Status available
Total PE 4340
Free PE 0
Autoswitch On


#df -k /dev/vg01/felogs
(/dev/vg01/felogs ) : 31031384 total allocated Kb
25864912 free allocated Kb
5166472 used allocated Kb
16 % allocation used

"
7 REPLIES 7
Kapil Jha
Honored Contributor

Re: Missing disk space

this is your new installation or its old running???
Can you check in lsof is some big file is open??? if it is restart that process.
Hope this help.
Kapil
I am in this small bowl, I wane see the real world......
Jeeshan
Honored Contributor

Re: Missing disk space

Can you give me the command you used to create vg,lv ?

I guess you miss some parameters while creating the LV.
a warrior never quits
Aneesh Mohan
Honored Contributor
Solution

Re: Missing disk space

Hi Abijith,

the below o/p shows the lv allocation is proper

--- Logical volumes ---
LV Name /dev/vg01/felogs
LV Status available/syncd
LV Size (Mbytes) 65440
Current LE 8180
Allocated PE 8180
Used PV 2


So can you do..umount ,extendfs,mount


Thanks,
Aneesh
Abhijith Madhav
Occasional Advisor

Re: Missing disk space

The extendfs helped. I now have all my diskspace available. Thank you. As Ahsan suggests this might have to do with the way I initially created the lv long back. Do you know of any other reason??

"
#extendfs /dev/vg01/felogs
#extendfs -q /dev/vg01/felogs
Disk size is 67010560
#df -k /dev/vg01/felogs
(/dev/vg01/felogs ) : 66045308 total allocated Kb
60876652 free allocated Kb
5168656 used allocated Kb
7 % allocation used
"

Thanks to Kapil and Ahsan for their suggestions too.

Kapil - I did not have any process which had a big file open

Ahsan - Created the logical volume long before. Don't remember the parameters. It was a bit of a trail and error method and it might be the cause.
Jeeshan
Honored Contributor

Re: Missing disk space

Sometimes it seems that if the vgcreate option you don't specify large file optionas as well as lvcreate, it might be problem for extending lasrge disk space.

Happy to see, your problem has solved.
a warrior never quits
Torsten.
Acclaimed Contributor

Re: Missing disk space

"largefiles" has nothing to do with vgcreate or lvcreate.

I'm sure somebody created that LVOL with a size of around ~30GB in the past and extended this LVOL to the larger size later - without running lvextend. For this reason the filesystem was still at the original size.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Abhijith Madhav
Occasional Advisor

Re: Missing disk space

Found solution