Posts Tagged ‘How to…’

Preserving partitions when adding datastores to ESXi

Thursday, April 15th, 2010

I was recently building out a new ESXi box and bought a Seagate Barracuda 1.5Tb SATA 2 drive to use as the datastore as well as to backup some data from a laptop who’s hard drive was acting up. The hard drive was/is making all sorts of bad sounds, so I wanted to get the data backed up as quickly as possible. As soon as I got the drive home, I started backing up my data, rather than checking how vSphere handles disks with data already on them. When I was sure I had a clean backup, I moved to the ESXi 4.0 host to add the Barracuda, minus the 400 gig backup partition.

To my dismay, when I went to add the datastore through vSphere I was informed that the entire disk would be used and my backup partition would be overwritten. After a quick run through the vSphere interface to make sure I hadn’t missed an option somewhere to allow me to add only the unused space, I moved to the ESXi 4.0 maintenance console to try and create the datastore by hand.

Below are the steps I ended up using to create the vmfs3 partition without losing my backup partition:

  1. Log into the ESXi 4.0 maintenance console as root
  2. Open the new disk with fdisk
  3. Create a new primary partition that uses the remaining space on the disk.
  4. Set the partition type to VMFS (hex: fb)
  5. Use vmkfstools to create  the VMFS3 file system (vmkfstools -C vmfs3 /dev/disks/[yourdevice]:[parition number])*
  6. Exit the ESXi 4.0 maintenance console
  7. Under the vSphere client, again as root, select the “Configuration” tab, then select “storage” and click “refresh” in the upper right-hand corner

Your new datastore has now been added while protecting your backup partition and it’s data. Through the “Configuration” tab you can also rename this datastore to something more friendly than the UUID ESXi assigns it by default.

Footnotes:

* the device name and partition number under ESXi is dynamic, so you’ll need to replace this with whatever is valid for your system. Generally, the partition number is following the device name and a colon (:). The partition number should correspond the the partition number you created with fdisk, not your backup partition.

3rd party MSN problems: Update!

Saturday, January 31st, 2009

In my previous post 3rd party MSN problems, I discussed how to update pidgin to use MSN-Pecan, rather than Libpurple. After doing some research, the problem was found to be the implementation of MSNP15. Official MSN clients, as well as a few 3rd party clients, seem to fall back on older protocols. As MSN-Pecan uses MSNP12, it will work.

This morning, I accidentally signed in under MSN, rather than the WLM account on pidgin and lo-and-behold it worked! The pidgin folks have pushed out a fix to the MSNP15 problem and pidgin should function correctly now.

If you’d like to follow the bug report, it can be found here.

3rd party MSN problems

Monday, January 12th, 2009

Yesterday I attempted to connect to my MSN account with pidgin and received the error “Unable to retrieve MSN Address Book.“  After a bit of research I found that Microsoft has prevaricated parts of the MSN protocol in turn for the WLM protocol.

In order to fix this issue, you must switch your protocol to WLM from MSN. If you don’t have the WLM option in the ‘add account’ dialog box install the X11 plugin for msn-pecan. (Under Gentoo this is: x11-plugins/pidgin-msn-pecan)

After this install, a restart of pidgin, and creating a WLM pidgin account I was able to resume chatting happily.

Windows XP as a router…

Sunday, August 24th, 2008

I’ve recently working in an environment where only a wireless network connection was available, however; 2 of my 3 machines did not support wireless internet. After dealing with not having those machines offline for a while, I finally decided to do something about it.

Materials:

1 Cat5 cross-over cable

1 Windows XP machine with wireless and ethernet capabilities

1 Router (I used my LinkSys WRT54G)

Procedure:

1. Connect to the wireless network with your Windows XP machine

2. Open the network properties for that interface (Control Panel -> Network Connections -> (right click) Properties for the device)

3. Open the advanced tab and enable “Allow other users to connect through this computer’s internet connect”

4. Connect the cross-over cable to both the Windows XP machine’s NIC and the uplink on the router

5. Renew the router’s DHCP

At this point you should be able to plug into the router and use the internet as normal. If this setup doesn’t work, you may need to open the properties dialog for your Local Area Network connection and set it to use the wireless adapter as it’s internet source.