Solved

How to add more space in Centos running in vmware workstation

Posted on 2014-04-17
3
1,438 Views
1 Endorsement
Last Modified: 2014-04-23
Guys,

I have just added additional 30GB for our centos vm,  teh disk has been expanded in vmware workstation, but I'm struggle on how to  expand current disk in centos with additional drive space.

What I would like to have is to expand /dev/mapper/vg_SAO_TR-lv_root to another 30GB which the size was added by me in vm level.


[root@localhost ~]# fdisk -l

Disk /dev/sda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000b460d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64        2611    20458496   8e  Linux LVM

Disk /dev/mapper/vg_SAO_TR-lv_root: 18.9 GB, 18865979392 bytes
255 heads, 63 sectors/track, 2293 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_SAO_TR-lv_swap: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_SAO_TR-lv_root
                       18G   18G  2.0M 100% /
tmpfs                 935M   76K  935M   1% /dev/shm
/dev/sda1             485M   34M  426M   8% /boot
[root@localhost ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_SAO_TR-lv_root
                       18G   18G  2.0M 100% /
tmpfs                 935M   76K  935M   1% /dev/shm
/dev/sda1             485M   34M  426M   8% /boot
[root@localhost ~]# lsv
-bash: lsv: command not found
[root@localhost ~]# lvs
  LV      VG         Attr      LSize  Pool Origin Data%  Move Log Cpy%Sync Convert
  lv_root vg_SAO_TR -wi-ao--- 17.57g
  lv_swap vg_SAO_TR -wi-ao---  1.94g
[root@localhost ~]#
1
Comment
Question by:motioneye
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 40006599
ermmmm
install system-config-lvm to not seek commands

upi need to echo 1 to rescan item in disk and it will be resized, then you need to add LVM type DOS partition, then you can extend LVM to that physical volume and d inflight resize of centos filesystem
0
 

Accepted Solution

by:
motioneye earned 0 total points
ID: 40009102
This link very useful which  it explain step by step how to expand this in LVM

http://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-machine-disk/
0
 

Author Closing Comment

by:motioneye
ID: 40017026
I found ansolution from Google on very clear step how to add and expand disk for Linux running on VMware
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question