On 25/05/15 22:03, Another Sillyname wrote: > My workaround, found on the web and re hashed, is to instead create a > 4GB swap partition on each drive then using the following script > automount the swaps at boot time using a systemd script. > > #!/bin/bash > > # Script for service that autodetects and starts swap partitions > > for f in $(fdisk -l | grep "Linux swap" | sort | cut -d' ' -f1 | tr > '\n' ' '); do swapon $f; done > > as it only 'finds' swaps on active partitions it prevents boot > problems in the case of a dead drive. Do you want linux to raid 0 your swap for you? ime your script will use just one disk for swap until it overflows before bringing the next into use, etc etc. If you want swap striped, I think you'll need to use "swapon -p=1" or whatever number. Otherwise I think you'll find all your swaps are assigned different priorities. Of course, that may be what you want, depending on how your disks are laid out. Cheers, Wol -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html