I am new here, so first of all - Hello, everybody.
My issue is as follows:
I got Linux CentOS 6.2 istalled on SSD, which is 60 GB. However, the allocation is as follows:
- 26G - is root /
- 12G - home
- 17G - swap
What i would like to do is shrink swap to about 2G, and expand root /, with remaining 15G.
What i have done so far is:
- shrink swap file - I use an instruction which I have found on the Net
cat /etc/fstab | grep swap
lvresize /dev/VolGroup/lv_swap -L 2G
The result is as:
--- Logical volume ---
LV Name /dev/VolGroup/lv_swap
VG Name VolGroup
LV UUID kGtj3Z-P9ke-tgrc-58hD-OBLe-zRmN-T8kRH4
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GiB
- it was 17.5 GB before
Current LE 512
Read ahead sectors auto
- currently set to 256
Block device 253:1
So, i got 15.7G free:
PV /dev/sda2 VG VolGroup lvm2 [55.41 GiB / 15.70 GiB free]
Total: 1 [55.41 GiB] / in use: 1 [55.41 GiB] / in no VG: 0 [0 ]
Now the question is - how can I add those 15 GB to root /?
If i missed something, or you need more info - please do not hesitate to ask/point that.