I was attempting to follow the instructions listed here


I started with a 150 gig Drive that is running LVM and as you can see from the screenshots when I try to do the fdisk I am getting "no free sectors available" VMware
(source: zillabunny.com)

(source: zillabunny.com)

If possible I'd like to do this live as I would in windows (disk management, right click drive, extend[i understand this may not be possible]).

Can someone please assist me in this?

Thank you!


Here is what my GPARTED looks like, it says the extra 50 gigs I've added is unallocated and i'm still unable to resize my drive

enter image description here

  • I have the exact same issue, did you found a workaround ?
    – Antzi
    Oct 1 '15 at 8:56

You will need to get the disk geometry to be re-read, you can try the partprobe CLI command or rescanning your SCSI bus. Failing that, you will need to reboot the VM.

This will find your SCSI bus number, in my example, it's 2:

cwatson@odin:~$ grep mpt /sys/class/scsi_host/host?/proc_name

Then rescan your bus using this command:

echo "- - -" > /sys/class/scsi_host/host2/scan

Another way to rescan your SCSI bus is by running this command:

echo 1 > /sys/class/scsi_device/0\:0\:0\:0/device/rescan

Note that the colons in the path are preceded with back-slashes. You can find your device ID by running this (you may have more than once SCSI device):

ls -l ls /sys/class/scsi_device

Update: As per your GParted screenshot, you'll need to unmount the LVM partition from within GParted, then resize the extended partition to take up the extra space, and then create a new partition within that extended partition, and use LVM to span your volume across both partitions (outside the scope of this answer).

  • # grep mpt /sys/class/scsi_host/host?/proc_name /sys/class/scsi_host/host2/proc_name:mptspi # echo "- - -" > /sys/class/scsi_host/host2/scan
    – zillabunny
    Sep 24 '15 at 14:37
  • # fdisk /dev/sda Command (m for help): p Disk /dev/sda: 187.9 GB, 187904819200 bytes 255 heads, 63 sectors/track, 22844 cylinders, total 367001600 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00026739 Device Boot Start End Blocks Id System /dev/sda1 * 2048 499711 248832 83 Linux /dev/sda2 501758 314570751 157034497 5 Extended /dev/sda5 501760 314570751 157034496 8e Linux LVM
    – zillabunny
    Sep 24 '15 at 14:38
  • Command (m for help): n Partition type: p primary (1 primary, 1 extended, 2 free) l logical (numbered from 5) Select (default p): l Adding logical partition 6 No free sectors available
    – zillabunny
    Sep 24 '15 at 14:38
  • would appear that I am getting the same result. even after scanning the scsi bus.
    – zillabunny
    Sep 24 '15 at 14:39
  • I am going to just restart this and see if it makes any difference
    – zillabunny
    Sep 24 '15 at 14:40

I had the same problem and succeed using cfdisk utility instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.