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

Re: swap not enabled if raid devices not in sync when booting



On Sun, Jan 21, 2001 at 07:39:31AM +0100, Russell Coker wrote:
> On Monday 15 January 2001 15:41, Ingo Saitz wrote:
> > ( while grep -qs resync /proc/mdstat
> >   do
> >     # Wait for RAID partitions to finish their rsync cycle
> >     sleep 60
> >   done
> >   swapon -a 2> /dev/null ) &
> 
> This could result in the swapon phase taking 2-3 hours on some machines and 
> being as unusable as the pre-raidtools2 code!

Please read that code again. The shellcode is enclosed in "( ) &"
which will execute it in a subshell in the background, so the
normal boot-process will continue immediately even if that wile
loop will run for some hours.

    Ingo
-- 
16                      Hard coded constant for amount of room allowed for
                        cache align and faster forwarding (tunable)

-- seen in /usr/src/linux-2.2.14/net/TUNABLE



Reply to: