LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-20-2013, 10:20 AM   #1
pedenski
Member
 
Registered: Feb 2012
Posts: 33

Rep: Reputation: Disabled
cannot detect additional virtual disk on centos


Hi, perhaps this is somewhat a vmware ESXI question, im having trouble detecting the additional virtual hard disk that ive added on my ESXI.

I have 2 issues
.
1st: initially my setting was Hard Disk 1 & 2 were both 240GB. I increased both of them to 300GB hoping for the changes to be reflected on my server.

Hard Disk 1 - Virtual Disk - 300GB
Hard Disk 2 - Virtual Disk - 300GB

running df -h showed nothing was changed on my /
Code:
#df -h 
Filesystem                      Size    Used    Avail   Use%    Mounted On
/dev/mapper/vg_centos-lv_root   237G    234G       0    100%    /
mpfs                            947M    324K    947M    1%      /dev/shm
/dev/sda1                       485M     52M    408M    12%     /boot
/dev/sda1                       485M    52M     408     12%     /mnt/disk_sda1
Please clarify if changing the value directly on my virtual disk on ESXI is not the proper way of extending the storage capacity.

if yes, how could i bring it back to the original 240GB, i cant seem to decrease the value anymore.

2nd: and so i figured that maybe adding a new virtual disk to extend it on my / is the right way..

so i added another virtual disk on ESXI

Hard Disk 3 - Virtual Disk - 100GB


Linux cant seem to detect the additional 100GB on my system. can someone please read and explain the below code into human readeable format.

#fdisk -l
Code:
/dev/sda1       *       1       64      512000          83      Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64       2089    16264192        8e      Linux LVM

Disk /dev/sdb: 257.7GB  257..... bytes
255 heads, 63 sectors/trac, 31330 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
Diskidentifier: 0xd2d850c6


        Device Boot     Start   End     Blocks          Id      System
        /dev/sdb1       1       31330   251658193+      83      Linux


Disk /dev/mapper/vg_centos-lv_root: 257.7 GB, 25769.....bytes
255 heds, 63 sectors/track, 31329 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: 0x0000000


Disk /dev/mapper/vg_centos-lv_swap: 4261 MB, 4261... bytes
255 heads, 63 sectors/track, 518 cylinders
Units = cylinders of 16065 * 512 = 8225280 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000000000
~

Last edited by pedenski; 05-20-2013 at 10:22 AM.
 
Old 05-22-2013, 03:21 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,921

Rep: Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618
This is kind of a normal issue with a VM. The VM can manipulate the resources but then you have to fix the client level. It would at first thought seem to be as if you directly replaced the 250 with 300 disk but vm's are kind of funny. They sort of act like you added more to the drive. On top of that you have a mapper. As to the correct fix there are many ways to go.

One way is to just make a full backup of the system and apply it to a new VM. Kind of a long way to go.

The other choice is to fix your client. Might start with gparted and see what it sees, fix the partition, then fix the lvm.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add additional virtual desktops in vtwm? linuxlicious Linux - Desktop 1 02-08-2013 09:09 PM
Debian does Not detect additional RAM Abhid Linux - Hardware 23 09-19-2012 06:36 AM
Extend Disk of a virtual CentOS Server Steve_Aug Linux - General 3 01-12-2012 12:53 PM
Detect viruses inside the .vmdk(VMware "Virtual MAchine Disk Format") image? m4rtin Linux - Security 1 02-06-2011 04:42 AM
virtual hosts already configured, adding an additional one fails? elby Linux - Newbie 2 05-24-2009 12:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration