From patchwork Fri Mar 29 05:42:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Yuan X-Patchwork-Id: 232289 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C78DB2C00B3 for ; Fri, 29 Mar 2013 16:43:18 +1100 (EST) Received: from localhost ([::1]:59027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULS5t-0004Bj-23 for incoming@patchwork.ozlabs.org; Fri, 29 Mar 2013 01:43:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULS5U-00048B-Ld for qemu-devel@nongnu.org; Fri, 29 Mar 2013 01:42:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULS5T-0003vR-Pk for qemu-devel@nongnu.org; Fri, 29 Mar 2013 01:42:52 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:45125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULS5T-0003vK-KP for qemu-devel@nongnu.org; Fri, 29 Mar 2013 01:42:51 -0400 Received: by mail-pa0-f51.google.com with SMTP id jh10so213950pab.38 for ; Thu, 28 Mar 2013 22:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=ZDhSP5y6TacKPd8bzzSnIUxdUy5pbpayk8c+MMoHsYQ=; b=E/VvRgj+OB9EHEaGIU0Qo0o0qk0873QE2iF23DTamldst8YeA01TiacqpngeqZAcY/ Yx+uAjbI9xlmJD/3j/vM0NF8Vyy0if9fMZXML79WFDf6jpuahpD/D2TsqksPLVBxXT6q 3D1ye2Pt2KOHX6uPdvHq86ry8kIa0Jp/y4INEOsGqVcMzzzEB818SO/C+9PpibYu48ID 4HYOYxB4ykMLfyWldjrJ56v1DcGsijNxT7BwbaJAv1GSX8oRqCwZUzp0S4UQU38KJvlx 0XGQAKqGQAwy2bEI1UmIVih5D80q/912TLSL511TM/pAgdvROhOayXugi29CrYrnwzyb yb/g== X-Received: by 10.68.98.34 with SMTP id ef2mr2058952pbb.18.1364535770695; Thu, 28 Mar 2013 22:42:50 -0700 (PDT) Received: from K55VM-ubuntu.taobao.ali.com ([182.92.247.2]) by mx.google.com with ESMTPS id t1sm2083818pab.12.2013.03.28.22.42.46 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Mar 2013 22:42:49 -0700 (PDT) From: Liu Yuan To: qemu-devel@nongnu.org Date: Fri, 29 Mar 2013 13:42:19 +0800 Message-Id: <1364535744-8707-3-git-send-email-namei.unix@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364535744-8707-1-git-send-email-namei.unix@gmail.com> References: <1364535744-8707-1-git-send-email-namei.unix@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.51 Subject: [Qemu-devel] [PATCH v2 2/7] tests/055: test simultaneous multiple disk failures on the same node X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Liu Yuan Signed-off-by: Liu Yuan --- tests/055 | 7 +++++++ tests/055.out | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/tests/055 b/tests/055 index 4c3bfb9..6b99552 100755 --- a/tests/055 +++ b/tests/055 @@ -42,6 +42,13 @@ $COLLIE cluster info | _filter_cluster_info # simulate all disks failure rm $STORE/1/d2 -rf +dd if=/dev/urandom | $COLLIE vdi write test +$COLLIE vdi check test +$COLLIE cluster info | _filter_cluster_info + +# simulate simultaneous multiple disks failure +rm $STORE/2/d0 -rf +rm $STORE/2/d1 -rf dd if=/dev/zero | $COLLIE vdi write test $COLLIE vdi check test $COLLIE cluster info | _filter_cluster_info diff --git a/tests/055.out b/tests/055.out index 284665a..e28188e 100644 --- a/tests/055.out +++ b/tests/055.out @@ -22,3 +22,11 @@ Cluster created at DATE Epoch Time Version DATE 2 [127.0.0.1:7000, 127.0.0.1:7002] DATE 1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002] +finish check&repair test +Cluster status: running + +Cluster created at DATE + +Epoch Time Version +DATE 2 [127.0.0.1:7000, 127.0.0.1:7002] +DATE 1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]