[DRBD-cvs] testing by lars; adding more simple bash test cases some ...
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Thu, 3 Jun 2004 13:05:58 +0200 (CEST)
DRBD CVS committal
Author : lars
Project : drbd
Module : testing
Dir : drbd/testing/CTH
Modified Files:
Tag: rel-0_7-branch
T-002.sh
Added Files:
Tag: rel-0_7-branch
T-003.sh T-004.sh T-005.sh T-006.sh
Log Message:
adding more simple bash test cases
some of them prove it working :)
some of them prove it has still problems :(
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/testing/CTH/Attic/T-002.sh,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -3 -r1.1.2.3 -r1.1.2.4
--- T-002.sh 1 Jun 2004 09:36:55 -0000 1.1.2.3
+++ T-002.sh 3 Jun 2004 11:05:53 -0000 1.1.2.4
@@ -1,27 +1,27 @@
#!/usr/bin/env - /bin/bash
-# $Id: T-002.sh,v 1.1.2.3 2004/06/01 09:36:55 lars Exp $
+# $Id: T-002.sh,v 1.1.2.4 2004/06/03 11:05:53 lars Exp $
+
+#
+# Fail Disk on Primary, Relocate Service, reattach on now Secondary.
+# does work.
+#
Start RS_1 Node_1
sleep 10
Fail_Disk Disk_1
-
sleep 5
Reloc RS_1 Node_2
-
sleep 5
Heal_Disk Disk_1
-
-# ToDo write a wrapper for this, and integrate with Heal_Disk ...
on $Node_1: drbd_reattach minor=0 name=r0
-
-sleep 5
+sleep 10
+on $Node_1: drbd_wait_sync minor=0
Reloc RS_1 Node_1
-
sleep 10
Stop RS_1