Deane1967
Contributor
Contributor

no COS Swap Configued

Jump to solution

Hi,

I wonder if anyone can help me. I recently upgraded an ESX server from 3.5 to 4 U1. Since the upgrade I have been unable to power on any virtual machines at all. I can vmotion running machines to the upgraded server but when trying to power on a VM I get insufficient resources.

On the console of the ESX server there is a message stating:-

0:00:02:36.680 cpu0:4096)No COS Swap Configured

I've looked through a number of threads about changing /etc/fstab but I don't have access to a utility dumpuuid which they keep referring to.

Can anyone help with this?

Merry christmas by the way Smiley Happy

0 Kudos
1 Solution

Accepted Solutions
AndreTheGiant
Immortal
Immortal

If you add /dev/sdd1 to fstab that you could have big problem when you add/remove shared storages.

Check if the UUID in fstab match the one that you see in:

ls -l /dev/disk/by-uuid/

Or try to use the other swap partition (the one from the old ESX 3.x), where the name is fixed and will not change.

Andre

Andre | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro

View solution in original post

0 Kudos
7 Replies
AndreTheGiant
Immortal
Immortal

What's the output of this command?

fdisk -l

And what's the content of /etc/fstab?

Andre

Andre | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
Deane1967
Contributor
Contributor

FSTAB file is as follows:-

UUID=221a4bb7-203c-4594-b5bb-b7ba5f08726e / ext3 defaults 1 1

None /dev/pts devpts defaults 0 0

/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0

/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

None /proc proc defaults 0 0

None /sys sysfs defaults 0 0

UUID=6c720985-a915-495a-aee9-6faf81aad607 /var/log ext3 defaults,errors=panic 1 2

UUID=6453d96a-8f13-4621-9107-2696d424b1a1 swap swap defaults 0 0

UUID=f2cd02c5-483c-4c66-8ab6-114da007cd97 /boot ext3 defaults 1 2

  1. BEGIN migrated entries

  2. Note: Any entries in this section will be removed

  3. when cleaning out the ESX v3 installation.

UUID=6775b1fc-57ab-4f13-86a4-bfbe1a0df8e4 /esx3-installation/ ext3 defaults,ro 1 1

UUID=f2cd02c5-483c-4c66-8ab6-114da007cd97 /esx3-installation/boot ext3 defaults 1 2

UUID=d6660703-8772-4f7f-8e13-9d51cb5a2882 /esx3-installation/home ext3 defaults,ro 1 2

UUID=39eaef57-4593-4a62-ae30-ec61570b7f12 /esx3-installation/opt ext3 defaults,ro 1 2

UUID=d634d298-2ba4-4bc2-9285-15b18dad33b1 /esx3-installation/tmp ext3 defaults,ro 1 2

UUID=6223d353-1de2-472c-8113-d5027ed5ba83 /esx3-installation/var ext3 defaults,ro 1 2

UUID=39fde7f3-caf1-45eb-a42d-277942de109d /esx3-installation/var/log ext3 defaults,ro 1 2

  1. END migrated entries

fdisk -l is:-

Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes

255 heads, 63 sectors/track, 17844 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/cciss/c0d0p1 * 1 32 257008+ 83 Linux

/dev/cciss/c0d0p2 33 1960 15486660 83 Linux

/dev/cciss/c0d0p3 1961 2189 1839442+ 82 Linux swap / Solaris

/dev/cciss/c0d0p4 2190 17844 125748787+ f W95 Ext'd (LBA)

/dev/cciss/c0d0p5 2190 2711 4192933+ 83 Linux

/dev/cciss/c0d0p6 2712 2972 2096451 83 Linux

/dev/cciss/c0d0p7 2973 3233 2096451 83 Linux

/dev/cciss/c0d0p8 3234 17446 114165843 fb VMware VMFS

/dev/cciss/c0d0p9 17447 17577 1052226 83 Linux

/dev/cciss/c0d0p10 17578 17831 2040223+ 83 Linux

/dev/cciss/c0d0p11 17832 17844 104391 fc VMware VMKCORE

Disk /dev/sda: 536.8 GB, 536870912000 bytes

255 heads, 63 sectors/track, 65270 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sda1 1 65270 524281211 fb VMware VMFS

Disk /dev/sdb: 536.8 GB, 536870912000 bytes

255 heads, 63 sectors/track, 65270 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sdb1 1 65270 524281211 fb VMware VMFS

Disk /dev/sdc: 1073.7 GB, 1073741824000 bytes

255 heads, 63 sectors/track, 130541 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sdc1 1 130541 1048570518+ fb VMware VMFS

Disk /dev/sdd: 8818 MB, 8818524160 bytes

255 heads, 63 sectors/track, 1072 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sdd1 1 179 1437786 82 Linux swap / Solaris

/dev/sdd2 180 434 2048287+ 83 Linux

/dev/sdd3 435 1072 5124735 5 Extended

/dev/sdd5 435 1072 5124703+ 83 Linux

thanks

0 Kudos
AndreTheGiant
Immortal
Immortal

The /etc/fstab has the swap entry.

Using free command do you see a swap memory?

If you make:

swapon /dev/cciss/c0d0p3

or

swapon /dev/sdd1

then the output of free command will change?

Andre

Andre | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
Deane1967
Contributor
Contributor

Andre,

Typed the free command and got:-

total used free shared buffers cached

Mem: 801912 431352 370560 0 38976 307808

-/+ buffers/cache: 84568 717344

Swap: 0 0 0

Tried the swapon with /dev/sdd1 and got the below

  1. swapon /dev/sdd1

  2. free

total used free shared buffers cached

Mem: 801912 431940 369972 0 39032 307820

-/+ buffers/cache: 85088 716824

Swap: 1437776 0 1437776

Powered on a VM sucessfully, fantastic! Do you know how I make this permanent?

Thanks

Deane

0 Kudos
AndreTheGiant
Immortal
Immortal

If you add /dev/sdd1 to fstab that you could have big problem when you add/remove shared storages.

Check if the UUID in fstab match the one that you see in:

ls -l /dev/disk/by-uuid/

Or try to use the other swap partition (the one from the old ESX 3.x), where the name is fixed and will not change.

Andre

Andre | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
Deane1967
Contributor
Contributor

I found the correct UUID for the device and changed the fstab file but it didn't make any difference after the server was rebooted.

I have found a way of making the change permanent as follows:-

Add the following line to the fstab file:-

/dev/cciss/c0d0p3 swap swap defaults 0 0

This will keep us going for now but I'm not totally comfotable with this system as it stands and we are scheduled to rebuild to ESXi shortly so I'll push this to the front of the queue for a rebuild.

Thanks for all of your help with this Andre, points about to be awarded Smiley Happy

0 Kudos
boombstc
Contributor
Contributor

ESX 4 power on issue

ssh to the esx host

vi /etc/vmware/hostd/config.xml

look for

Save and quit

Restart hostd service

0 Kudos