Messages in this thread | | | Date | Thu, 20 May 1999 18:00:01 -0400 | From | Peter Rival <> | Subject | Re: 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> #define MAX_SWAPFILES 8 <br>to: <br> #define MAX_SWAPFILES 32 <p>Now I can add up to 15 swap partitions, not 32. 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. 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. 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 1024-blocks Used Available Capacity Mounted on</tt> <br><tt>/dev/sdm2 108870 53943 49305 52% /</tt> <br><tt>/dev/sdm5 1748525 1015714 642446 61% /usr</tt> <br><tt>/dev/sda2 3788613 13 3592607 0% /usr/pest/test1/1</tt> <br><tt>/dev/sde2 3788613 13 3592607 0% /usr/pest/test1/2</tt> <br><tt>/dev/sdi2 3788613 13 3592607 0% /usr/pest/test1/3</tt> <br><tt>/dev/sds2 3788613 13 3592607 0% /usr/pest/test1/4</tt> <br><tt>/dev/sdw2 3788613 13 3592607 0% /usr/pest/test1/5</tt> <br><tt>/dev/sdb2 3788613 13 3592607 0% /usr/pest/test1/6</tt> <br><tt>/dev/sdf2 3788613 13 3592607 0% /usr/pest/test1/7</tt> <br><tt>/dev/sdt2 3788613 13 3592607 0% /usr/pest/test1/9</tt> <br><tt>/dev/sdx2 3788613 13 3592607 0% /usr/pest/test1/0</tt> <br><tt>/dev/sdk2 3788613 13 3592607 0% /usr/pest/test2/3</tt> <br><tt>/dev/sdl2 3788613 13 3592607 0% /usr/pest/test2/8</tt> <br><tt>/dev/sdj2 3788613 13 3592607 0% /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 1024-blocks Used Available Capacity Mounted on</tt> <br><tt>/dev/sdm2 108870 53943 49305 52% /</tt> <br><tt>/dev/sdm5 1748525 1015714 642446 61% /usr</tt><tt></tt> <p><tt>/dev/sda2 3788613 13 3592607 0% /usr/pest/test1/1</tt> <br><tt>/dev/sde2 3788613 13 3592607 0% /usr/pest/test1/2</tt> <br><tt>/dev/sdi2 3788613 13 3592607 0% /usr/pest/test1/3</tt> <br><tt>/dev/sds2 3788613 13 3592607 0% /usr/pest/test1/4</tt> <br><tt>/dev/sdw2 3788613 13 3592607 0% /usr/pest/test1/5</tt> <br><tt>/dev/sdb2 3788613 13 3592607 0% /usr/pest/test1/6</tt> <br><tt>/dev/sdf2 3788613 13 3592607 0% /usr/pest/test1/7</tt> <br><tt>/dev/sdt2 3788613 13 3592607 0% /usr/pest/test1/9</tt> <br><tt>/dev/sdx2 3788613 13 3592607 0% /usr/pest/test1/0</tt> <br><tt>/dev/sdk2 3788613 13 3592607 0% /usr/pest/test2/3</tt> <br><tt>/dev/sdl2 3788613 13 3592607 0% /usr/pest/test2/8</tt> <br><tt>/dev/sdj2 3788613 13 3592607 0% /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 1024-blocks Used Available Capacity Mounted on</tt> <br><tt>/dev/sdm2 108870 53943 49305 52% /</tt> <br><tt>/dev/sdm5 1748525 1015714 642446 61% /usr</tt> <br><tt>/dev/sda2 3788613 13 3592607 0% /usr/pest/test1/1</tt> <br><tt>/dev/sde2 3788613 13 3592607 0% /usr/pest/test1/2</tt> <br><tt>/dev/sdi2 3788613 13 3592607 0% /usr/pest/test1/3</tt> <br><tt>/dev/sds2 1748525 1015714 642446 61% /usr/pest/test1/4 <-- HUH??</tt> <br><tt>/dev/sdw2 3788613 13 3592607 0% /usr/pest/test1/5</tt> <br><tt>/dev/sdb2 3788613 13 3592607 0% /usr/pest/test1/6</tt> <br><tt>/dev/sdf2 3788613 13 3592607 0% /usr/pest/test1/7</tt> <br><tt>/dev/sdt2 3788613 13 3592607 0% /usr/pest/test1/9</tt> <br><tt>/dev/sdx2 3788613 13 3592607 0% /usr/pest/test1/0</tt> <br><tt>/dev/sdk2 3788613 13 3592607 0% /usr/pest/test2/3</tt> <br><tt>/dev/sdl2 3788613 13 3592607 0% /usr/pest/test2/8</tt> <br><tt>/dev/sdj2 3788613 13 3592607 0% /usr/pest/test1/8</tt> <br><tt>/dev/sdc2 3788613 13 3592607 0% /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. 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. Strange...again... 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. 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. I can send the patches to anyone interested. All I know is, this is a configuration that _should_ be able to work...hmmm..... <p> - 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
| |