1753667 Members
5588 Online
108799 Solutions
New Discussion юеВ

Disk Space

 
SOLVED
Go to solution
Srividhya Narayanan
Frequent Advisor

Disk Space

Hi,

I'm new to unix system admn, This might be a lame question, I'm trying to find out where 1500MB of disk space has disappeared. The volume group vg00 was originally created with 2 disk drives (total 4GB). Using SAM I was able to find out that 1160MB of space is available in vg00. I also found out the total disk space allocated for the logical volumes in vg00 is 1250MB. when I add 1160+1250 = 2410MB, what happened to 1500MB from the original 4GB?

when I run bdf, I get the following output:
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 99669 22983 66719 26% /
/dev/vg00/lvol1 47829 25693 17353 60% /stand
/dev/vg00/lvol9 307421 261190 15488 94% /var
/dev/vg00/lvol8 331093 261606 36377 88% /usr
/dev/vg00/lvol7 191989 48829 123961 28% /tmp
/dev/vg00/lvol6 251285 142896 83260 63% /opt
/dev/vg00/lvol5 19861 2587 15287 14% /home

Can somebody help me. Thanks so much
Sri
12 REPLIES 12
Kofi ARTHIABAH
Honored Contributor
Solution

Re: Disk Space

Hi Sri:

The space that you do not seem to "see" presently is unallocated space which can be used to increase filesystems in vg00. to find out how much free space is available, run the following:

# vgdisplay | grep Free

This will return the amount of diskspace you have in each volume group (the value is in terms of Physical Extents = 4Mb per physical extent by default)

if you needed to say expand /opt the space you need will come out of this unallocated pool of "Free PE"

Do a man on the following commands: lvextend ; extendfs
nothing wrong with me that a few lines of code cannot fix!
Antoanetta Naghiu
Esteemed Contributor

Re: Disk Space

The bdf shows you the mounted file systems. (disk space allocated to logical volumes having file systems on them and being mounted).
You can have disk space allocated to logical volumes that have file system created on them but are not mounted or logical volumes that don?t have file system created. As well, you can have disk space allocated to raw devices used for swap, databases, etc.
So, take a look either in sam->disk and file system->logical volumes area or run vgdisplay ?v vg00.
Hope this helps.
Andreas Voss
Honored Contributor

Re: Disk Space

Hi,

i give you a script in the attachment which shows you all information of the vg's and disks.

Cheers

Andrew
Srividhya Narayanan
Frequent Advisor

Re: Disk Space

Andrew, This is the output of the script.

/dev/vg00 : 4056 MB [64 0x000000]
/dev/dsk/c0t5d0 2028 / 628 MB 4.5.0 ST32550W
/dev/dsk/c0t8d0 2028 / 628 MB 4.8.0 ST32550W
/dev/vg00/lvol1 48 / 16 MB 60% hfs 1 /stand
/dev/vg00/lvol2 128 MB swap 1
/dev/vg00/lvol3 100 / 65 MB 26% hfs 1 /
/dev/vg00/lvol5 20 / 14 MB 14% hfs 1 /home
/dev/vg00/lvol6 252 / 81 MB 63% hfs 1 /opt
/dev/vg00/lvol7 200 / 121 MB 28% hfs 1 /tmp
/dev/vg00/lvol8 332 / 35 MB 88% hfs 1 /usr
/dev/vg00/lvol9 320 / 15 MB 94% hfs 1 /var

According to this there are 628+628 = 1256MB free space. Total space allocated to logical volumns is 1400MB (by adding from above result). Still I cant figure out what happened to 1400MB space? I also ran vgdisplay -v vg00,
Total PE 1014
Alloc PE 700
Free PE 314

Also how do I find out if any disk space is allocated to raw devices?

Thank You,
Sri
Anthony deRito
Respected Contributor

Re: Disk Space

Hello Sri, the output of vgdisplay
-v /dev/vg00 will show you ALL logical volumes including the ones used for raw devices. From the script that Andrew gave you and the output of vgdisplay, it definitley appears that LVM thinks it has allocated another 1400MB of logical disk space other than what it already has for filesystems and swap. Is rebulding vg00 an option for you?? I would make a call to the response center and talk to an LVM Guru if it not.

Tony
Antoanetta Naghiu
Esteemed Contributor

Re: Disk Space

Sri,
Could you run vgdisplay -v vg00 and add the output, or at list take a look if you have any logical volumes than lvol1 .... lvol9?
Antoanetta Naghiu
Esteemed Contributor

Re: Disk Space

Sri,
I've got another idea: Please, run lvdisplay -v /dev/vg00/lvol1
Does the output contains 2 columns with /dev/dsk/c0t... and again /dev/dsk/c0t... the other disk?
If yes, that could be the explanation of a missing space: it is mirrored!
Srividhya Narayanan
Frequent Advisor

Re: Disk Space

I dont think I want to rebuild vg00, All my system files reside on these two disks. Well let me try calling the response center, can anyone tell me phone number to call.

I ran vgdisplay -v vg00, here is the output. I dont see any logical volumns other than lvol1..lvol9. Any suggestion?
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 39
VGDA 4
PE Size (Mbytes) 4
Total PE 1014
Alloc PE 700
Free PE 314
Total PVG 0

--- Logical volumes ---
LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 100
Current LE 25
Allocated PE 50
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 128
Current LE 32
Allocated PE 64
Used PV 2

LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 48
Current LE 12
Allocated PE 24
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 332
Current LE 83
Allocated PE 166
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 252
Current LE 63
Allocated PE 126
Used PV 2

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 320
Current LE 80
Allocated PE 160
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 200
Current LE 50
Allocated PE 100
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 20
Current LE 5
Allocated PE 10
Used PV 2

Thank You.
Sri
Antoanetta Naghiu
Esteemed Contributor

Re: Disk Space

Do not panic. If you run lvdisplay , you'll see you've got the mirror. (see my previous reply). The vgdisplay show that every lvol is using 2 physical volume (tow physical disk). YOU ARE OKAY!!!
Please run lvlnboot -v and you may see that you have even the secondary boot dsik configured. Hei! You are in the best situation that ever could be!
If you need something else, just ask...
Cheers,
Antoanetta