Extending ext4 partition on debian7.0 on vsphere

Posted by VoidPointer on Server Fault See other posts from Server Fault or by VoidPointer
Published on 2013-06-26T05:06:44Z Indexed on 2013/06/29 16:23 UTC
Read the original article Hit count: 213

Filed under:
|
|
|
|

I have allocated thin provisioning of 15GB when i found 8GB as insufficient. Now debian guest is not able to recognize the change of size.

root@debian7-x64:~# lvdisplay
--- Logical volume ---
LV Path                /dev/debian7-x64/root
LV Name                root
VG Name                debian7-x64
LV UUID                EU6mg0-XTXC-ci3D-bQJi-7XN6-r8Hp-SYxcj0
LV Write Access        read/write
LV Creation host, time debian7-x64, 2013-06-25 12:02:49 +0530
LV Status              available
# open                 1
LV Size                7.39 GiB
Current LE             1892
Segments               1
Allocation             inherit
Read ahead sectors     auto
- currently set to     256
Block device           254:0

--- Logical volume ---
LV Path                /dev/debian7-x64/swap_1
LV Name                swap_1
VG Name                debian7-x64
LV UUID                xDNtoz-tJUq-M5D6-GGCN-gzcD-fwUv-fYYDR1
LV Write Access        read/write
LV Creation host, time debian7-x64, 2013-06-25 12:02:49 +0530
LV Status              available
# open                 2
LV Size                376.00 MiB
Current LE             94
Segments               1
Allocation             inherit
Read ahead sectors     auto
- currently set to     256
Block device           254:1

root@debian7-x64:~# pvdisplay
--- Physical volume ---
PV Name               /dev/sda5
VG Name               debian7-x64
PV Size               7.76 GiB / not usable 2.00 MiB
Allocatable           yes (but full)
PE Size               4.00 MiB
Total PE              1986
Free PE               0
Allocated PE          1986
PV UUID               SehkzH-Gq8Y-jI2f-27Tb-uv1Z-tR1R-5OnTxR

root@debian7-x64:~# sfdisk -s
/dev/sda:  15728640
/dev/mapper/debian7--x64-root:   7749632
/dev/mapper/debian7--x64-swap_1:    385024
total: 23863296 blocks

Help me to extend this partition. No problem in rebooting. I dont have any live CD.

Environment : debian 7, with lvm, on vsphere, ext4 partition. Can provide more details when needed.

© Server Fault or respective owner

Related posts about linux

Related posts about debian