?
Solved

How to add more space in Centos running in vmware workstation

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

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

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

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Suggested Courses

764 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