Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2007 02:41:09 -0800 (PST)
From:      "R. B. Riddick" <arne_woerner@yahoo.com>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: Recommended gmirror solution with swap?
Message-ID:  <20070109104110.51674.qmail@web30308.mail.mud.yahoo.com>

next in thread | raw e-mail | index | archive | help
For the stability test of a gmirror/graid5 device under regular request load
with a sudden disk failure I wrote 2 shell scripts (the one for gmirror crashes
the device after some cycles, while the one for graid5 does crash (so
quickly)).

while [ 1 ] ;do
        gnop configure -f 0 ad0s1gd.nop
        echo good
        gmirror forget fook
        gmirror insert -h fook ad0s1gd.nop
        while [ `gmirror status fook | grep -c COMPLETE` -eq 0 ]; do
                sleep 1
        done
        gnop configure -f 100 ad0s1gd.nop
        echo fail
        while [ `gmirror status fook | grep -c COMPLETE` -ne 0 ]; do
                gmirror status fook
                sleep 1
        done
done


while [ 1 ] ;do
        gnop configure -f 0 ad0s1gd.nop
        echo good
        graid5 configure -a fook
        while [ `graid5 status fook | grep -c COMPLETE` -eq 0 ]; do
                sleep 1
        done
        gnop configure -f 100 ad0s1gd.nop
        echo fail
        while [ `graid5 status fook | grep -c COMPLETE` -ne 0 ]; do
                graid5 status fook
                sleep 1
        done
done


-Arne

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070109104110.51674.qmail>