**** BEGIN LOGGING AT Mon Aug 09 02:59:57 2010 Aug 09 21:37:23 I just installed SlugOS_BE on my NSLU2, I set it up so it boots from an NFS share, however I am having an issue setting up the swapspace after the reboot. I get the following error when I run swapon -a Aug 09 21:37:27 swapon: /swapfile: Invalid argument Aug 09 21:38:46 Do you have the correct syntax in your fstab for the swapfile? Aug 09 21:39:30 yes I added: /swapfile swap swap defaults 0 0 Aug 09 21:40:06 I made the swapfile with the following command: dd if=/dev/zero of=/swapfile bs=1M count=128 Aug 09 21:40:13 then did swapon /swapfile Aug 09 21:40:36 er I did mkswap /swapfile first then the swapon /swapfile Aug 09 22:13:46 interesting message from /var/log/messages Aug 09 22:13:49 Aug 9 18:12:14 (none) user.err kernel: swapon: swapfile has holes Aug 09 22:17:49 I get that error every time I issue the swapon -a command Aug 09 22:32:06 is the swapfile over nfs? Aug 09 22:33:35 jones_ yes sir Aug 09 22:33:41 that is what I am trying to reasearch now Aug 09 22:33:47 but finding no answers Aug 09 22:34:40 can't say i know anything that would help Aug 09 22:35:06 would I be better off just using a flash stick for swap, or do I even need swap? Aug 09 22:35:51 imo a flash drive would definitely be better Aug 09 22:36:13 I was hoping to save the ports though and go diskless Aug 09 22:42:03 by all means go ahead and see if it works good over nfs Aug 09 22:43:41 hehe well right now it does not work at all Aug 09 22:48:24 IIRC, swapping over nfs is not a good idea -- there has been much discussion about the evils thereof, and I'm not sure what the final position on it ever was. In any case, I don't think SlugOS does anything to disable it -- but I do think you need to do something to make it work over NFS. Perhaps you need to do the mkfile on the host system? Aug 09 22:48:45 tried that Aug 09 22:48:57 trying a flash drive now Aug 09 22:49:01 getting the same error Aug 09 22:49:37 I just wiped the drive in fdisk created a new partition that was type 82 (Linux Swap) then did mkswap and swapon /dev/sda1 Aug 09 22:49:44 got swapon: /dev/sda1: Invalid argument Aug 09 22:50:25 reboot got the flash stick to take Aug 09 22:50:32 How odd. BTW what version of SlugOS is this? Aug 09 22:50:41 newest just downloaed today Aug 09 22:50:54 cat /proc/version Aug 09 22:50:54 Linux version 2.6.27.8 (slug@builder) (gcc version 4.2.4) #1 Sat Mar 7 02:47:23 UTC 2009 Aug 09 22:51:27 I think cause the kernel was using the old partitions from the flash drive after the fdisk and I needed a reboot for that to take Aug 09 22:51:36 everything I have found on the net about NFS says it can't be done Aug 09 22:52:07 Swap: 777440 0 777440 Aug 09 22:52:11 thats what comes up in free now Aug 09 22:52:15 its a 1G flash stick Aug 09 22:52:26 rest of the root is on NFS Aug 09 22:54:59 Yeah, the problem, as I recall, is that part of the NFS code can be paged, so it is entirely possible for your swap space to be unable to be paged back in because the code that would do that is, itself, paged out. Aug 09 22:55:54 well I was using the flash drive for unslung before but after I found out I could thin client them I wanted to use NFS so the flash drives are free for swap usage I guess. Aug 09 22:57:44 did you see the page on this subject on the wiki Aug 09 22:58:06 no I looked around but just found info on how to create the swapfile nothing about nfs issues Aug 09 22:58:16 http://www.nslu2-linux.org/wiki/SlugOS/InstallandTurnupABasicSlugOSSystem Aug 09 22:58:29 ✍http://www.nslu2-linux.org/wiki/HowTo/MountNFSSwapPartition Aug 09 22:58:31 was what I mainly used Aug 09 22:59:14 ohhh Aug 09 22:59:17 that makes sense Aug 09 22:59:21 mount it then swap on the mount Aug 09 22:59:24 so it is local Aug 09 22:59:46 will have to give that a try Aug 09 22:59:49 thanks Aug 09 23:00:09 sneaky Aug 09 23:00:25 do tell if it works Aug 09 23:00:44 yupper Aug 09 23:05:05 hanging on the mount Aug 09 23:06:14 just gonna stick with the flash drive it will be faster anyway than swaping over the network Aug 10 00:07:12 lsusb returns nothing? Aug 10 00:09:45 cd Aug 10 00:09:48 cd **** ENDING LOGGING AT Tue Aug 10 02:59:58 2010