herndon@sctc.com (William R. Herndon) (11/15/90)
I have discovered that my NeXTCube is apparantly not using its swapdisk. I have taken off the back to verify that a swapdisk is indeed inside the cube, and it is. I've examined both the /etc/rc and /etc/rc.swap files and here are the factors that lead me to believe that the swapdisk is not being utilized: 1. I would expect to see a separate partition for the swapdisk as part of the result of running the df command, and the only partition displayed is that of the OD. 2. The file /private/swapdisk/vm/swapfile, which is supposed to the swapfile on the 40 Mbyte swapdisk, does not exist. Instead the file /private/vm/swapfile, which I believe is the default swapfile mounted on the OD, does exist. 3. Running the program checkswap, in isolation, produces a return code of 2. The manual entry on checkswap states that return code 2 is an indication that a swapdisk exists but does not have the proper label. 4. Examination of the rc.swap script reveals that the script terminates without invoking the program mach_swapon if a return code of "2" is returned, and thus, the swapdisk is not mounted. So, what can I do about this? I can think of a couple of approaches. First, if I can somehow modify the disks label to "swapdisk" I should be able to cause the system to mount the thing, but I don't even know what is being referred to when the Sys Admin manual refers to the disks "label". Second, I could modify the rc.swap script to ignore the fact that the the label is incorrect, but I'm not confidant that this label is not checked elsewhere, in the mach_swapon program for instance. Help!!!! Thanks in advance. - Max ------------------------------------------------------------------------------- William R. Herndon Secure Computing Technology Corp. The opinions expressed are mine, ALL MINE! HEH, HEH, herndon@sctc.com HEH, HEH!!! (612) 482-7431