?
Solved

How to add more space in Centos running in vmware workstation

Posted on 2014-04-17
3
Medium Priority
?
1,610 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
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…

649 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