Solved

check partition size in esxi

Posted on 2010-08-19
17
1,225 Views
Last Modified: 2012-05-10
How do I check the partition sizes in ESXi 4. I have vMA running. I have vdp.pl script. I thought I might be able to do -h switch but that didnt work either. Also, the fdisk -l does not list the partition sizes ..please assit.
0
Comment
Question by:VMwareLover
  • 7
  • 6
  • 4
17 Comments
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
You can check it, but it's slightly different in ESXi than ESX. There was an EE post on this a couple/few months back that I assisted with....let me find it and post back...

Regards,
~coolsport00
0
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
Enable SSH if you haven't already (sounds like you have) and Putty into your ESXi host. Once logged in, type:

df -h

That should work for you.

~coolsport00
0
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
This is the EE post back in June:
http://www.experts-exchange.com/Software/VMWare/Q_26231328.html

~coolsport00
0
 
LVL 28

Accepted Solution

by:
bgoering earned 500 total points
Comment Utility
You can glean the imformation from fdisk -l

You will get output similar to
Disk /dev/disks/vmhba2:0:3:0: 429.4 GB, 429491220480 bytes
255 heads, 63 sectors/track, 52216 cylinders, total 838850040 sectors
Units = sectors of 1 * 512 = 512 bytes

                 Device Boot         Start       End    Blocks   Id  System
/dev/disks/vmhba2:0:3:1           128 838850039 419424956   ee  EFI GPT

in this case start - end + 1 gives blocks,  83885003 - 128 + 1 = 838849912 Units of 512 bytes
838849912 * 512 = 429491154944 bytes
divide by 1024 to get 419424956 KB
divide by 1024 to get 409595 MB
divide by 1024 to get 400 GB

Hope this helps


0
 

Author Comment

by:VMwareLover
Comment Utility
Something must be really wrong , cuz my partitions are tiny.. plz see below.. f I decipher the sizes using ur tehnique, my partitions are really small.. also what do these partitions really mean?

Coosport, I dont want to enable ssh on the hosts or use any unsupported feature..


vdf.PNG
0
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
How are you viewing the info you screenshotted above? Did you try vCLI? The commands I provided will work with that, as well.

~coolsport00
0
 

Author Comment

by:VMwareLover
Comment Utility
I am using vMA. How do I use that in vCLI?
0
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
Actually, I spoke (typed) too soon :)  Let me do some more checking...the cmds are different in vCLI. I'm not familiar with vMA.

~coolsport00
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 28

Assisted Solution

by:bgoering
bgoering earned 500 total points
Comment Utility
Your partitions look normal for ESXi 4. It doesn't take much room for the OS - I have one of mine installed on a 1 GB USB Stick with plenty of room to spare. Your larger partitions will comprise your vmf datastores, and you can easily view the size of those through the vSphere client. Here are the relevant entries from a ESXi 4.1 system (USB) Drive using fdisk -l -u

Disk /dev/disks/mpx.vmhba32:C0:T0:L0: 1039 MB, 1039663104 bytes
64 heads, 32 sectors/track, 991 cylinders, total 2030592 sectors
Units = sectors of 1 * 512 = 512 bytes

                           Device Boot      Start         End      Blocks  Id System
/dev/disks/mpx.vmhba32:C0:T0:L0p1          8192   1843199    917504    5  Extended
/dev/disks/mpx.vmhba32:C0:T0:L0p4   *        32      8191      4080    4  FAT16 <32M
/dev/disks/mpx.vmhba32:C0:T0:L0p5          8224    520191    255984    6  FAT16
/dev/disks/mpx.vmhba32:C0:T0:L0p6        520224   1032191    255984    6  FAT16
/dev/disks/mpx.vmhba32:C0:T0:L0p7       1032224   1257471    112624   fc  VMKcore
/dev/disks/mpx.vmhba32:C0:T0:L0p8       1257504   1843199    292848    6  FAT16

Good Luck

0
 
LVL 28

Expert Comment

by:bgoering
Comment Utility
Note that if you installed to a hard disk (instead of a USB or flash drives) you will likely see a vmfs partition that will be large enough to take the rest of the drive.

0
 

Author Comment

by:VMwareLover
Comment Utility
OK but how can I run fdisk -l -u via vMA. When I run this on vMA it doesnt tell me the size. If you think thats normal, what happens when this gets filled up with logs. What do these partitions even mean?
Linux
Linux swap / Solaris ... I am guessing this is the swap
Linux
Extended
Linux

This is what I see on my fdisk -l.
0
 
LVL 28

Expert Comment

by:bgoering
Comment Utility
I am not sure if you can control the partition size ESXi creates like you can with ESX. Take a look at http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=1007638&sliceId=2&docTypeID=DT_KB_1_1&dialogID=101514977&stateId=1 0 101522021 for how to check free space in each partition, and how to manage/delete files should a filesystem become full.

I have only ever even heard of a problem with log files as related to IPMI, and I don't use IPMI here so haven't run across it.

Good Luck

BTW http://www.boche.net/blog/index.php/2008/10/24/esx-partitioning-a-lost-art-form-in-esxi/ is an article from ESXi 3.5 has some discussion (but no resolution) for your concerns.
0
 

Author Comment

by:VMwareLover
Comment Utility
I simply ran df via vMA on the target host and that seems to be giving me what I was looking for. But I am still not sure if this is safe and wont blow up on me one day... Gosh cant belive you cant edit this ...
df.PNG
0
 
LVL 28

Expert Comment

by:bgoering
Comment Utility
I worried about it a bit myself when first playing with ESXi, but like I mentioned earlier about the only problem I have even heard about with out of space had to do with IPMI, and I don't use that featuer. If you do use that feature you may want to explore further.

I would expect (but haven't seen it documented) that log rotation on ESXi would be fairly agressive. In ESX(i) platforms the vmkernel log seems to be the most active, but it doesn't ever get all that big.

Good Luck
0
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
I would suspect that with the going away of ESX, this will (crossing my fingers, but certainly not holding my breath)...this will be *enhanced* with the next major release??? Will be at VMworld next weekend so will be asking a LOT of questions about future enhancements :)

~coolsport00
0
 
LVL 28

Expert Comment

by:bgoering
Comment Utility
I plan at asking a few myself at VMworld :)
0
 
LVL 40

Expert Comment

by:coolsport00
Comment Utility
Email me offline (see my EE profile) and let me know if you'd like to get together somewhere. I just missed out on the Sunday evening party, but may still try to go to get in (sorry for blogging on your post "VMwareLover").

~coolsport00
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:

762 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

12 Experts available now in Live!

Get 1:1 Help Now