linux - Issue in increasing the ubuntu disk size (vitualbox image) -


my ubuntu disk size 52.4 gb, disk still showing 11g. suggestions below? root@mubuntu:~# fdisk -l ------------ disk /dev/sda: 52.4 gb, 52428800000 bytes 255 heads, 63 sectors/track, 6374 cylinders, total 102400000 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: 0x000ac38c

   device boot      start         end      blocks   id  system /dev/sda1   *        2048      499711      248832   83  linux /dev/sda2          499712      501757        1023   8e  linux lvm /dev/sda3          501758    23486463    11492353    5  extended /dev/sda5          501760    23486463    11492352   8e  linux lvm  root@mubuntu:~# df -h filesystem                    size  used avail use% mounted on /dev/mapper/mubuntu--vg-root   11g  9.5g  161m  99% / none                          4.0k     0  4.0k   0% /sys/fs/cgroup udev                          991m  4.0k  991m   1% /dev tmpfs                         201m  1.1m  200m   1% /run none                          5.0m     0  5.0m   0% /run/lock none                         1001m     0 1001m   0% /run/shm none                          100m     0  100m   0% /run/user /dev/sda1                     236m   66m  158m  30% /boot 

--> below good?

root@mubuntu:~# pvscan   pv /dev/sda5   vg mubuntu-vg   lvm2 [10.96 gib / 0    free]   total: 1 [10.96 gib] / in use: 1 [10.96 gib] / in no vg: 0 [0   ]  root@mubuntu:~# pvdisplay   --- physical volume ---   pv name               /dev/sda5   vg name               mubuntu-vg   pv size               10.96 gib / not usable 2.00 mib   allocatable           yes (but full)   pe size               4.00 mib   total pe              2805   free pe               0   allocated pe          2805   pv uuid               upfw6u-dhec-0ub9-0faj-hmfw-10lk-po2nws  root@mubuntu:~# vgdisplay   --- volume group ---   vg name               mubuntu-vg   system id                format                lvm2   metadata areas        1   metadata sequence no  4   vg access             read/write   vg status             resizable   max lv                0   cur lv                2   open lv               2   max pv                0   cur pv                1   act pv                1   vg size               10.96 gib   pe size               4.00 mib   total pe              2805   alloc pe / size       2805 / 10.96 gib   free  pe / size       0 / 0      vg uuid               v9h4ea-xjbr-veff-qsek-avhe-apfk-1j4yi2  root@mubuntu:~# lvdisplay   --- logical volume ---   lv path                /dev/mubuntu-vg/root   lv name                root   vg name                mubuntu-vg   lv uuid                os34mi-sjz0-dtpa-2104-xof8-f4wm-sy0xfm   lv write access        read/write   lv creation host, time mubuntu, 2014-08-30 15:51:45 -0500   lv status              available   # open                 1   lv size                10.46 gib   current le             2677   segments               1   allocation             inherit   read ahead sectors     auto   - set     256   block device           252:0    --- logical volume ---   lv path                /dev/mubuntu-vg/swap_1   lv name                swap_1   vg name                mubuntu-vg   lv uuid                fmnrhr-7i3c-jmak-dmqr-oma3-s3jv-oetzds   lv write access        read/write   lv creation host, time mubuntu, 2014-08-30 15:51:46 -0500   lv status              available   # open                 2   lv size                512.00 mib   current le             128   segments               1   allocation             inherit   read ahead sectors     auto   - set     256   block device           252:1 

whenever set virtual disk dynamic allocation in virtual box, virtual box not occupy space @ once i.e. in case had set 52.4gb size of virtual disk max size virtual hard disk can take. when virtual box create dynamically allocated disk starts least size of may 100kb content in virtual os starts increase disk grows, , grows size have set. whenever check size of hard disk inside virtual os show size max size have set.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jquery - Keeping Kendo Datepicker in min/max range -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -