I am getting errors that my disk is nearly full, but i am using three logical volumes, and would need to know which i need to extend. I still have 50GB unassigned.
Up until now i always extend all logical volumes together, but now i wanted to really only extend the needed volume.
[EDIT: output from the asked commands]
11:58:27|nva@nvaws[~] > df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 5766196 5094104 379180 94% /
none 1800512 264 1800248 1% /dev
none 1806624 768 1805856 1% /dev/shm
none 1806624 112 1806512 1% /var/run
none 1806624 0 1806624 0% /var/lock
/dev/mapper/nvaws-db 5160576 1971944 2926488 41% /var/lib/postgresql
/dev/mapper/nvaws-usr
19223252 4957612 13289156 28% /usr
/dev/mapper/nvaws-home
61929340 29253760 29534180 50% /home
11:58:32|nva@nvaws[~] >
12:01:13|nva@nvaws[~] > sudo vgdisplay
--- Volume group ---
VG Name nvaws
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 8
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 145.93 GiB
PE Size 4.00 MiB
Total PE 37359
Alloc PE / Size 26880 / 105.00 GiB
Free PE / Size 10479 / 40.93 GiB
VG UUID BBudpK-uLAo-ttes-g2ll-8jyI-xh74-J7xN8n
12:01:35|nva@nvaws[~] > sudo lvdisplay
--- Logical volume ---
LV Name /dev/nvaws/home
VG Name nvaws
LV UUID bB5jZc-1jeP-Eptl-WKzi-20C1-1FCB-2EWm3p
LV Write Access read/write
LV Status available
# open 1
LV Size 60.00 GiB
Current LE 15360
Segments 4
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Name /dev/nvaws/usr
VG Name nvaws
LV UUID 5XtAi2-Vwqo-ieHj-NrG5-jNbk-cE5z-35aHyj
LV Write Access read/write
LV Status available
# open 1
LV Size 40.00 GiB
Current LE 10240
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Logical volume ---
LV Name /dev/nvaws/db
VG Name nvaws
LV UUID ahxV6P-vpjY-aRAw-bhcZ-oPGZ-2y9x-zhjlp5
LV Write Access read/write
LV Status available
# open 1
LV Size 5.00 GiB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
12:01:50|nva@nvaws[~] >
12:02:03|nva@nvaws[~] > sudo pvdisplay
--- Physical volume ---
PV Name /dev/md1
VG Name nvaws
PV Size 145.93 GiB / not usable 960.00 KiB
Allocatable yes
PE Size 4.00 MiB
Total PE 37359
Free PE 10479
Allocated PE 26880
PV UUID cTYM85-ad2e-60i4-Pze5-9GXO-T4PC-DR7g9r
12:02:06|nva@nvaws[~] >
I hope you guys can make more of that than i can :)
One remark: i extended the home
logical volume yesterday, and added 10GB. It seemed the most likely candidate. SO i guess that will show itself.
df
and see which volume is nearly full?