"Overlapping swap files are not allowed" after changing swap partition

From: Evan Borgstrom (evan@unixpimps.org)
Date: Mon May 20 2002 - 00:43:50 EDT


I have recently been put in charge of a ultra 2 box that wasn't setup by me.
Since this machine had two 9gb drives and only one was being used I installed
Solstice DiskSuite like I would normally on any other install I did, but for
this to happen I had to shrink the swap partition to create a small partition
for the meta database.

I drop'd to single user, made a file, swap -d /dev/dsk/c0t0d0s1, swap -a
/tempswap. Ran format, shrank the swap partition by 30mb added s3 labeled the
disk. Selected the 2nd disk selected the partition table from the first disk and
labeled it.
Installed all of the stripes and attached the mirrors, everything seemed to be
fine so for good measure I rebooted.

Upon reboot I get this message:
/dev/dsk/c0t0d0s1: Overlapping swap files are not allowed

After poking around some mailing list I found that users of Veritas Volume
Manager had similar problems and they should just ignore the message. So, I did
some poking around the machine and everything seemed to be fine. All the daemons
that were supposed to be running were and nothing seemed to be acting up.

The next day a user of this machine put themselves into an infinite mail loop
using their .qmail file, for every message they recieved they sent themselves an
email so qmail started delivering about 50 times what it is used to. The machine
load was fine never got above .5 but when I logged into the machine and resumed
my screen session of which one of the windows is a tail -f on the maillog I
noticed this and killed there .qmail file. Again everything seemed to be normal
untill I tried to spawn a new process. Now I'm getting all kinds of wierdness.

# ps -eaf | sort
sort: can't mmap anonymous memory: Resource temporarily unavailable
# ls -al /tmp/
ls: Resource temporarily unavailable

Every once in awhile ls -al /tmp segfaults too.

# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d20 405343 62737 302072 18% /
/dev/md/dsk/d22 6921562 1028997 5823350 16% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/md/dsk/d21 241403 72507 144756 34% /var
swap 4032 8 4024 1% /var/run
swap 982632 978608 4024 100% /tmp

# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 32,1 16 951584 3840
# swap -d /dev/dsk/c0t0d0s1
/dev/dsk/c0t0d0s1: Not enough space

I really don't want to reboot if it's just going to do this again once the
machine starts to swap again since everything is running fine as is right now.
Anyone seen anything like this, have any ideas how to fix it?

Thanks,
Evan
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:21 EDT