Solved

How to add more space in Centos running in vmware workstation

Posted on 2014-04-17
3
1,314 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
  • 2
3 Comments
 
LVL 61

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now