On 09/26/2000 13:58 -0700, Micah Anderson wrote:

... stuff deleted ...

>>      if [ ! -e /proc/mdstat ] || \
>>                     [ ! grep `grep swap /etc/fstab | awk -F/ '(print $3}'` \
>>                       /proc/mdstat | grep resync ] ; then
>>                swapon -a 2> /dev/null
>>      fi        
>>      


Does this catch the case where a swap device will be
resynced, but isn't syncing now because it has been
serialized? I.e.:
        / = /dev/md0
        swap = /dev/md1
        md0 and md1 both have underlying partitions
                on hda and hdc
        md0 is now resyncing
        md1 needs to be resynced, but must wait
                for md0 to finish first to avoid
                severe performance degradation




-- 
+--------------------------+------------------------------+
| Tim Walberg              | [EMAIL PROTECTED]       |
| 828 Marshall Ct.         | www.concentric.net/~twalberg |
| Palatine, IL 60074       |                              |
+--------------------------+------------------------------+

PGP signature

Reply via email to