vmware enlarging space for linux -


its maybe stupid question how can enlarge linux machine 20 40gb? need increase / space. made on vmware , says 40gb if make :

df -h  filesystem               size  used avail use% mounted on /dev/mapper/zabbix-root   19g   17g  789m  96% / udev                     489m  4.0k  489m   1% /dev tmpfs                    200m  276k  199m   1% /run none                     5.0m     0  5.0m   0% /run/lock none                     498m     0  498m   0% /run/shm /dev/sda1                228m   25m  192m  12% /boot 

or

fdisk -l  disk /dev/mapper/zabbix-root: 20.1 gb, 20124270592 bytes 255 heads, 63 sectors/track, 2446 cylinders, total 39305216 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: 0x00000000  disk /dev/mapper/zabbix-root doesn't contain valid partition table  disk /dev/mapper/zabbix-swap_1: 1069 mb, 1069547520 bytes 255 heads, 63 sectors/track, 130 cylinders, total 2088960 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: 0x00000000 

i still se 20gb... how can mount 20gb?

thanks lot.

depending on distribution, that:

reboot or echo "- - -" > /sys/class/scsi_host/host0/rescan 

now linux aware of disk size change, use pvextend extend pv.
using vgdisplay, make sure have free space on vg.
extend lv using lvextend , finally, use resize2fs change fs.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -