Reclaim 100GB on disk not "seen" by fdisk but shown in parted

خرید بک لینک

I am running Ubuntu 14.04 and am using lvm for the root and swap partitions. When I use parted ( or gparted) I see 110GB unpartitioned on /dev/sda .

hari@Ubuntu02:~$ sudo parted /dev/sda unit GB print free
Model: VMware Virtual disk (scsi)
Disk /dev/sda: 3408GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system  Flags
        0.00GB  0.00GB  0.00GB            Free Space
 1      0.00GB  0.26GB  0.25GB  primary   ext2         boot
        0.26GB  0.26GB  0.00GB            Free Space
 2      0.26GB  805GB   805GB   extended
 5      0.26GB  805GB   805GB   logical                lvm
 3      805GB   1636GB  831GB   primary                lvm
 4      1636GB  3299GB  1662GB  primary                lvm
        3299GB  3408GB  110GB             Free Space

However when I use fdisk to create the partition , It does not show this free space.

hari@Ubuntu02:~$ sudo fdisk -l /dev/sda

Disk /dev/sda: 3408.5 GB, 3408486045696 bytes
255 heads, 63 sectors/track, 414391 cylinders, total 6657199308 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: 0x000d989d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758  1572861951   786180097    5  Extended
/dev/sda3      1572861952  3196057599   811597824   8e  Linux LVM
/dev/sda4      3196057600  6442450943  1623196672   8e  Linux LVM
/dev/sda5          501760  1572861951   786180096   8e  Linux LVM

It seems that the free space starts at sector 6442450943 and goes till sector 6657199308.

I naively tried a lvextend but it give me the following message.

hari@Ubuntu02:~$ sudo lvextend -L+100G /dev/ubuntu-vg/root
  Extending logical volume root to 3.63 TiB
  Insufficient free space: 25600 extents needed, but only 2 available

Given that /dev/sda2 is my only logical volume and the free sectors are after /dev/sda5 how do I reclaim the 110GB unpartitioned space and add it to my lvm volume-group using parted , fdisk and lv- commands.

- - , .
.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 228 تاريخ: يکشنبه 20 تير 1395 ساعت: 22:58

صفحه بندی