Solved

How to add more space in Centos running in vmware workstation

Posted on 2014-04-17
3
1,381 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 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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