←back to thread

163 points rbanffy | 1 comments | | HN request time: 0s | source
Show context
yjftsjthsd-h ◴[] No.42144002[source]
> The other problem we need to solve is swap. Linux, or at least not this Linux, won't let you use a swapfile hosted over NFS; swapon will give you an illegal argument error and refuse to enable it.

To my shock, https://en.wikipedia.org/wiki/Network_block_device says

> The protocol was originally developed for Linux 2.1.55 and released in 1997.

so I wonder if you could use that? It's better suited to swap anyways.

replies(3): >>42144625 #>>42144847 #>>42154552 #
undersuit ◴[] No.42144625[source]
Yes, NBD works. I use it to give my 256Mb Pi a swap off the sdcard. You could also use iSCSI now.
replies(1): >>42148539 #
1. yjftsjthsd-h ◴[] No.42148539[source]
Oh, I know it works today; I was just surprised that it might possibly be an option on a 2.4-6 kernel, as I had assumed that Linux didn't get NBD until... I dunno, I would have guessed late aughts?