• Home
  • News
  • Technical Guides
  • Troubleshooting
  • Download
  • Videos
  • Top Bloggers!
  • About

VirtualVCP IT Virtualization

rynardtspies: Worst day on the job by far! 1 day ago from TwInbox

Using fdisk to partition the ESX boot disk "/dev/sda" PDF Print E-mail
User Rating: / 3
PoorBest 
Written by Rynardt Spies   
Friday, 23 January 2009 17:17
Bookmark and Share

I'm currently writing a document that I will publish soon on building a low cost lab with VI3. While I was doing some research on VMFS partition alignment, I found that I was unable to create (or delete) partitions on the /dev/sda disk that ESX is installed on. I could make the changes, but as I tried to write the changes to disk, fdisk would come back with the following error:

SCSI disk error : host 1 channel 0 id 0 lun 0 return code = be0000
I/O error: dev 08:00, sector 40355342
Device busy for revalidation (usage=8)

 

I know that I could just use the VI client to create this partition, but as I'm busy writing this fairly detailed document, I wanted to show potential readers how to create such an aligned local VMFS3 partition using fdisk and vmkfstools on the /dev/sda device.

Then I also had the question in my mind... "If the VI client can do it, why can't I?"

Anyway, after playing around with ESX a little, I found a fix. Use with caution though!

You need to remove the lock that ESX has on the device! The esxcfg-advcfg command can do this.

Before running fdisk, execute the following command at the service console:

esxcfg-advcfg -s 0 /Disk/PreventVMFSOverwrite

With PreventVMFSOverwrite now switched off, you can use fdisk to write the partition changes without the error. You will still get "device or resource busy" but it will write the changes.

After you have saved the partition changes using fdisk, run the following commands:

partprobe
esxcfg-advcfg -s 1 /Disk/PreventVMFSOverwrite
  • Add New
  • Search
  • RSS
Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Security Image
Please input the anti-spam code that you can read in the image.
Joomla components by Compojoom
Next >
 
SocialTwist Tell-a-Friend

vmw-vcp_logo_260x40

vmw-vexpert_logo_223x40

 

View Rynardt Spies's profile on LinkedIn

 

Poll

ESX or ESXi in Production Environment?
 

What's the latest?

  • vSphere 4.1: VPXA Holds ESX Host at Ransom
  • Replacing vSphere SSL Certificates
  • The London UK VMware User Group Meeting on 15 July 2010
  • My thoughts on the VCDX Enterprise Admin Exam
  • New vSphere Patches Released on 10 June 2010

Popular

  • ESX 3i: Host in HA Cluster must have userworld swap enabled
  • ESX 3.5 on HP Proliant ML115 G5
  • VMware ESXi 3.5 on HP Proliant ML110 G5
  • Patching ESX 3.5 Using esxupdate
  • Cheap and quiet solution for a home-based ESX Server

Where Am I Today?

calendar_icon_s

Login to VirtualVCP

In order to leave comments, please log in.



  • Forgot your password?
  • Forgot your username?

Support VirtualVCP!

Information and Resources on this site are 100% free, however it costs money to run this site. Please help support this site by giving a donation.

Amount: 

RSS Feeds

VirtualVCP Virtualization Blog - ATOM Feed
VirtualVCP Virtualization Blog - RSS 0.91 Feed
VirtualVCP Virtualization Blog - RSS 2.0 Feed
VirtualVCP IT Virtualization, Powered by Joomla!; Joomla templates by SiteGround vBulletin hosting provider!

valid xhtml valid css