From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wols Lists Subject: Re: Fwd: Installing Linux directly onto RAID6 Array........... Date: Tue, 26 May 2015 00:20:48 +0100 Message-ID: <5563AE50.4090806@youngman.org.uk> References: <555294A0.6040703@websitemanagers.com.au> <5561B237.4040709@youngman.org.uk> <5561BCA4.4060904@fnarfbargle.com> <5561C6E9.3060706@youngman.org.uk> <5561E5CE.7000304@youngman.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Sender: linux-raid-owner@vger.kernel.org To: Another Sillyname , linux-raid@vger.kernel.org List-Id: linux-raid.ids 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