lkml.org 
[lkml]   [1999]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Adding more than 8 swap partitions
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Okay, so I did that - I changed from:
<p>&nbsp;&nbsp;&nbsp; #define MAX_SWAPFILES&nbsp;&nbsp;&nbsp; 8
<br>to:
<br>&nbsp;&nbsp;&nbsp; #define MAX_SWAPFILES&nbsp;&nbsp;&nbsp; 32
<p>Now I can add up to 15 swap partitions, not 32.&nbsp; I have 20 disks
hanging off of an AS4000, with the possibility of somewhere in the area
of 40 disks by the time I'm done.&nbsp; All of these disks are going to
be configured the same - 256MB for swap, and the rest as a standard ext2
filesystem.
<p>Which brings me to my next point...This is a script of a session of
me trying to mount another of the 20 disks.&nbsp; The questioning comes
after.
<p><tt>Script started on Fri Apr 14 13:26:59 1911</tt>
<br><tt>[root@frigate /root]# df -k</tt>
<br><tt>Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024-blocks&nbsp;
Used Available Capacity Mounted on</tt>
<br><tt>/dev/sdm2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
108870&nbsp;&nbsp; 53943&nbsp;&nbsp;&nbsp; 49305&nbsp;&nbsp;&nbsp;&nbsp;
52%&nbsp;&nbsp; /</tt>
<br><tt>/dev/sdm5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1748525 1015714&nbsp;&nbsp; 642446&nbsp;&nbsp;&nbsp;&nbsp; 61%&nbsp;&nbsp;
/usr</tt>
<br><tt>/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/1</tt>
<br><tt>/dev/sde2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/2</tt>
<br><tt>/dev/sdi2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/3</tt>
<br><tt>/dev/sds2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/4</tt>
<br><tt>/dev/sdw2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/5</tt>
<br><tt>/dev/sdb2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/6</tt>
<br><tt>/dev/sdf2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/7</tt>
<br><tt>/dev/sdt2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/9</tt>
<br><tt>/dev/sdx2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/0</tt>
<br><tt>/dev/sdk2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test2/3</tt>
<br><tt>/dev/sdl2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test2/8</tt>
<br><tt>/dev/sdj2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/8</tt>
<br><tt>[root@frigate /root]# mount /dev/sdc2</tt>
<br><tt>mount: /dev/sdc2 already mounted or /usr/pest/test2/1 busy</tt>
<br><tt>[root@frigate /root]# df -k</tt>
<br><tt>Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024-blocks&nbsp;
Used Available Capacity Mounted on</tt>
<br><tt>/dev/sdm2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
108870&nbsp;&nbsp; 53943&nbsp;&nbsp;&nbsp; 49305&nbsp;&nbsp;&nbsp;&nbsp;
52%&nbsp;&nbsp; /</tt>
<br><tt>/dev/sdm5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1748525 1015714&nbsp;&nbsp; 642446&nbsp;&nbsp;&nbsp;&nbsp; 61%&nbsp;&nbsp;
/usr</tt><tt></tt>
<p><tt>/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/1</tt>
<br><tt>/dev/sde2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/2</tt>
<br><tt>/dev/sdi2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/3</tt>
<br><tt>/dev/sds2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/4</tt>
<br><tt>/dev/sdw2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/5</tt>
<br><tt>/dev/sdb2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/6</tt>
<br><tt>/dev/sdf2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/7</tt>
<br><tt>/dev/sdt2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/9</tt>
<br><tt>/dev/sdx2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/0</tt>
<br><tt>/dev/sdk2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test2/3</tt>
<br><tt>/dev/sdl2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test2/8</tt>
<br><tt>/dev/sdj2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/8</tt>
<br><tt>[root@frigate /root]# umount /dev/sdc2</tt>
<br><tt>[root@frigate /root]# mount /dev/sdc2</tt>
<br><tt>[root@frigate /root]# df -k</tt>
<br><tt>Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1024-blocks&nbsp;
Used Available Capacity Mounted on</tt>
<br><tt>/dev/sdm2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
108870&nbsp;&nbsp; 53943&nbsp;&nbsp;&nbsp; 49305&nbsp;&nbsp;&nbsp;&nbsp;
52%&nbsp;&nbsp; /</tt>
<br><tt>/dev/sdm5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1748525 1015714&nbsp;&nbsp; 642446&nbsp;&nbsp;&nbsp;&nbsp; 61%&nbsp;&nbsp;
/usr</tt>
<br><tt>/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/1</tt>
<br><tt>/dev/sde2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/2</tt>
<br><tt>/dev/sdi2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/3</tt>
<br><tt>/dev/sds2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
1748525 1015714&nbsp;&nbsp; 642446&nbsp;&nbsp;&nbsp;&nbsp; 61%&nbsp;&nbsp;
/usr/pest/test1/4&nbsp;&nbsp;&nbsp; &lt;-- HUH??</tt>
<br><tt>/dev/sdw2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/5</tt>
<br><tt>/dev/sdb2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/6</tt>
<br><tt>/dev/sdf2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/7</tt>
<br><tt>/dev/sdt2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/9</tt>
<br><tt>/dev/sdx2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/0</tt>
<br><tt>/dev/sdk2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test2/3</tt>
<br><tt>/dev/sdl2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test2/8</tt>
<br><tt>/dev/sdj2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test1/8</tt>
<br><tt>/dev/sdc2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
3788613&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 13&nbsp; 3592607&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0%&nbsp;&nbsp; /usr/pest/test2/1</tt>
<br><tt>[root@frigate /root]# exit</tt>
<br><tt>exit</tt><tt></tt>
<p><tt>Script done on Fri Apr 14 13:27:42 1911</tt>
<p>This happened before and after a reboot, and after all of the disks
had been mke2fs-ed again.&nbsp; I had tried to run "mount -a" before this
all happened, and several of the mounts complained of the device being
already mounted or the mount point busy, neither of which were the case.
<p>It appears that the system is silently unmounting a _random_ filesystem,
and not taking its entry out of the list of mounted filesystems.&nbsp;
Strange...again...&nbsp; One of my co-workers had mentioned that this could
be because of the fact that this is a Durango, not a Rawhide, but all the
disks are off of the first two PCI busses (which is all Linux sees right
now) and the Durango is in the Rawhide family of systems.&nbsp; Anyway,
does anyone have any clues about this?
<p>Oh, and lest I forget, this is stock 2.2.8, plus some axp patches that
Richard Henderson sent out (which work fine on another system without as
many disks...), with that one #define changed.&nbsp; I can send the patches
to anyone interested.&nbsp; All I know is, this is a configuration that
_should_ be able to work...hmmm.....
<p>&nbsp;- Pete
<p>Matthew Kirkwood wrote:
<blockquote TYPE=CITE>On Wed, 19 May 1999, Peter Rival wrote:
<p>> I just wanted to make sure that I can add more than 8 swap partitions
<br>> under 2.2.8 by only changing the MAX_SWAPFILES #define in
<br>> include/linux/swap.h.
<p>You should be fine, although:
<p>> What is the maximum limit?
<p>It's 2Gb in 2.2, although I think you may need a new mkswap.
<p>Matthew.</blockquote>
</html>
begin:vcard
n:Rival;Peter
x-mozilla-html:FALSE
org:Compaq Computer Corp.;Release Engineering Systems
adr:;;;;;;
version:2.1
email;internet:frival@zk3.dec.com
title:Engineer II
x-mozilla-cpt:;0
fn:Peter Rival
end:vcard
\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.079 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site