VMware Cloud Community
AnthonyM
Enthusiast
Enthusiast

no swap configured for service console

Hi All,

Though a little mistake in setting up RAID volums on our ESX server, I have had to copy the entire system from one logical drive to another, re-creating the partition table in the process.

After a few hiccups and manually re-installing grup. The system works, but I get the following warning one the server has booted:

"VMNIX: ALERT: Mod 4506: No Swap configured for service console. Expect random hangs."

I have traced this back to the linux swap file not being activated on boot.

Looking in /etc/fstab, the swap drive is accessed via UUID, so I am assuming that the UUDI will have changed when I created the new swap partition on the new logical drive.

My question is, how do I find the UUID of the new swap partition to put in fstab? Or i sthere ar simpler way of getting the swap to load?

I can do swapon from the console to activate swap....

Sorry for the long ramble!

Regards

Anthony

0 Kudos
12 Replies
piacas
Enthusiast
Enthusiast

Can try this from command line:

swapon -a

dmesg | tail -n2

Find swap UUID in dmesg output. Add UUID to fstab

Dave

AnthonyM
Enthusiast
Enthusiast

Thanks dave, unfortunatly, see below...

\[root@lcmanmsesx1 root]# swapon -a

swapon: cannot find the device for UUID=c3bd3099-1c62-4b54-a9e0-ad581b96ce5c

\[root@lcmanmsesx1 root]# dmesg | tail -n2

vmnix_blkioctl_filter: comm=fdisk rdev=0x6900 cmd=0x301.

Adding Swap: 554200k swap-space (priority -1)

\[root@lcmanmsesx1 root]# dmesg | tail

kjournald starting. Commit interval 5 seconds

EXT3 FS 2.4-0.9.19, 19 August 2002 on cciss1(105,6), internal journal

EXT3-fs: mounted filesystem with ordered data mode.

microcode: No suitable data for cpu 0

ip_tables: (C) 2000-2002 Netfilter core team

ip_conntrack version 2.1 (2176 buckets, 17408 max) - 308 bytes per conntrack

loop: loaded (max 8 devices)

vmnix_blkioctl_filter: comm=fdisk rdev=0x6800 cmd=0x301.

vmnix_blkioctl_filter: comm=fdisk rdev=0x6900 cmd=0x301.

Adding Swap: 554200k swap-space (priority -1)

Any other idea? Smiley Happy

0 Kudos
piacas
Enthusiast
Enthusiast

do a swapon -s

paste output here.......

0 Kudos
AnthonyM
Enthusiast
Enthusiast

\[root@lcmanmsesx1 root]# swapon -s

Filename Type Size Used Priority

/dev/cciss/c1d0p5 partition 554200 0 -1

\[root@lcmanmsesx1 root]#

0 Kudos
piacas
Enthusiast
Enthusiast

OK none of the utils are included in ESX, you need to get it......this is not supportted by Vmware but I downloaded vol_id from this page: http://rpm.pbone.net/index.php3/stat/4/idpl/3903682/com/vol_id-085-30.10.i586.rpm.html

Installed it onto a esx 3.0.1 system and it worked correctly.

At command line: vol_id /dev/cciss/c1d0p5

will list the UUID and then you can update fstab file with it.....

Dave

AnthonyM
Enthusiast
Enthusiast

That was an awful lot of effort to go to to find the answer for me!

Thank you very, very much.

Installed, got the UUID, put in fstab, and now swapon -a doesn't complain, so I will assume that it will work, though I won't know for sure until the next time this box is rebooted.

Thank you very much.

Anthony

0 Kudos
Engine_Down
Contributor
Contributor

Hi,

I have the same problem with the swap after restoring my disks

"VMNIX: ALERT: Mod: 4506: No swap configured for service console. Expect random hangs"

When I do "swapon -s" I get no info, only

\[root@xxx root]# swapon -s

Filename Type Size Used Priority

\[root@xxx root]#

So I can't use the vol_id Tool...

What can I do?

0 Kudos
Engine_Down
Contributor
Contributor

Hi,

I have the same problem with the swap after restoring

my disks

"VMNIX: ALERT: Mod: 4506: No swap configured for

service console. Expect random hangs"

When I do "swapon -s" I get no info, only

\[root@xxx root]# swapon -s

Filename Type Size Used Priority

\[root@xxx root]#

So I can't use the vol_id Tool...

What can I do?

I found a solution for my problem:

If ''swapon -s'' show no info, you have to figure out, what exactly your dedicated swap drive is.

With ''dmesg'' you need to find the partitions, that are used at your server(e.g. /dev/cciss/c0d0p3)

vol_id can show you, witch of the partitions the swap drive is (''vol_id /dev/cciss/c0d0p3'' => ID_FS_TYPE=swap)

''mkswap /dev/cciss/c0d0p3'' activates the selected drive as the swap drive

now you can get the UUID with 'vol_id' and can change it in 'fstab'

I hope this may help someone

0 Kudos
Spornrad
Contributor
Contributor

Hi,

I have the same problem after restoring a server image:

VMNIX: ALERT: Mod: 4506: No swap configured for service console. Expect random hangs"

I have read to this post and the info is very helpful. I have downloaded the tool vol_id for to find out the swap drive.

As I have no experience with this OS how can I install the tool vol_id ?

Can someone please help me?

Thank you!

Spornrad

0 Kudos
AJacen
Contributor
Contributor

I had the problem.

I just replaced UUID in fstab with device name like /dev/cciss/c0d0p3 and it's gone!

0 Kudos
mikera
Contributor
Contributor

I have the same problem - no info from "swapon -s". I can't make any sense of the output from dmesg, either, as I'm ignorant of linux. I couldn't find anything in the dmesg output that referred to the partitions. What should I be looking for?

Mike

0 Kudos
mikera
Contributor
Contributor

Well, I just found this in my dmesg output:

Partition check:

hde:end_request: I/O error, dev 21:00 (hde), sector 0

end_request: I/O error, dev 21:00 (hde), sector 2

end_request: I/O error, dev 21:00 (hde), sector 4

end_request: I/O error, dev 21:00 (hde), sector 6

end_request: I/O error, dev 21:00 (hde), sector 0

end_request: I/O error, dev 21:00 (hde), sector 2

end_request: I/O error, dev 21:00 (hde), sector 4

end_request: I/O error, dev 21:00 (hde), sector 6

unable to read partition table

SCSI subsystem driver Revision: 1.00

kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2

kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2

What does this mean and how can I fix it?

Thanks,

Mike

0 Kudos