[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: md resync vs. swap (was Re: Swap not starting)



On Thu, 10 Jan 2002, Dave Sherohman wrote:

> grep -qs resync /proc/mdstat || swapon -a 2> /dev/null
>
> So why would the system want to run swapless if a RAID is resyncing?
> Is this just to preserve disk controller bandwidth so the resync
> finishes faster or would Bad Things happen if swap were turned on at
> that point?  And, either way, why doesn't it log a message to the
> effect of "WARNING:  Swap was not activated during the boot process.
> You will be running with physical memory only unless you manually run
> the command `swapon -a`."?

Something in the back of my mind says it's to do with having a swap
file/partition on the raid volume, that that is a bad thing while it is
syncing it.

I don't remember exactly though.

mike



Reply to: