PERFORCE change 123196 for review

Ulf Lilleengen lulf at FreeBSD.org
Mon Jul 9 11:46:06 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=123196

Change 123196 by lulf at lulf_carrot on 2007/07/09 11:45:22

	- Finish testplan.

Affected files ...

.. //depot/projects/soc2007/lulf/TESTPLAN#2 edit

Differences ...

==== //depot/projects/soc2007/lulf/TESTPLAN#2 (text+ko) ====

@@ -1,35 +1,68 @@
 * Test #1: Test of rebuild and RAID-5 operation in degraded mode.
-	1. Create test-data.
-	2. Create a RAID-5 volume.
-	3. Set one of the subdisks stale.
-	4. Write test-data to volume.
-	5. Read test-data from volume, compare to original data.
-	6. Rebuild the volume.
-	7. Read test-data from volume, compare to original data.
-	8. Set one of the other subdisks stale.
-	9. Read test-data from volume, compare to original data.
+  1) Data initalization
+	* Create a RAID-5 volume.
+	* Initialize volume.
+	* Check that parity is correct.
+  2) Data concistency
+  	* Create a RAID-5 volume.
+	* Initialize the volume.
+	* Set one of the subdisks stale.
+	* Write test-data to volume.
+	* Read test-data from volume, compare to original data.
+	* Rebuild the volume.
+	* Read test-data from volume, compare to original data.
+	* Set one of the other subdisks stale.
+	* Read test-data from volume, compare to original data.
+
+  3) Online RAID-5 rebuild.
+	* Create test-data.
+	* Create a RAID-5 volume.
+	* Create a filesystem on the volume.
+	* Degrade one of the subdisks.
+	* Mount the volume.
+	* Do I/O on the filesystem and sync.
+	* Initiate rebuild.
+	* Do more I/O.
+	* Check that all changes were made to the volume.
+
+* Test 2: Test of mirrored plexes
+   1) Online syncronization
+	* Create test-data
+	* Create a mirrored volume.
+	* Degrade one plex of the mirror.
+	* Write data to the mirror.
+	* Synchronize data.
+	* Degrade another plex of the mirror.
+	* Read data from the mirror.
+	* Make sure data is the same.
+
+   2) Size correctness.
+       * Create a volume with plexes of different size.
+       * Check that the volume gets the correct size (the smallest of the
+         plexes)
+
 
-* Test #2: Test of online RAID-5 rebuild.
-	1. Create test-data.
-	2. Create a RAID-5 volume.
-	3. Create a filesystem on the volume.
-	4. Degrade one of the subdisks.
-	5. Mount the volume.
-	6. Do I/O on the filesystem and sync.
-	7. Initiate rebuild.
-	8. Do more I/O.
+* Test #3: Test of attach/detach correctness:
+    1) Detach
+       * Create a vinum config with 3 drives and a volume that uses 2 drives.
+       * Detach one of the subdisks. Make sure all bindings are removed
+       * When creating a new subdisk, make sure it's attached, and not added if
+         the plex misses a subdisk.
+    2) Attach
+       * Use the previous config, but also create a new subdisk and tell it to
+         attach to the old plex.
+       * Make sure all bindings are up, and that the volume functions as normal.
+       * Make sure it's renamed correctly if parameter specified.
+       * Make sure it's put at the correct offset, and it's not possible to put
+         it on a conflicting offset.
 
-* Test #3: Test of volume online synchronization
-	1. Create test-data
-	2. Create a mirrored volume.
-	3. Degrade one plex of the mirror.
-	4. Write data to the mirror.
-	5. Synchronize data.
-	6. Degrade another plex of the mirror.
-	7. Read data from the mirror.
-	8. Make sure data is the same.
+* Test #4: Test of rename/move and that they work as before.
+    1) Rename
+       * Rename is partially tested with the attach routine.
+    2) Move
+       * Make sure it behaves exactly like adding a new subdisk to a drive.
 
-* Test #4: Test of concat/stripe/mirror routine.
+* Test #5: Test of concat/stripe/mirror routine.
 	1.1 Create a concat volume over one ++ disks.
 	or
 	1.2 Create a stripe volume over two or more disks.


More information about the p4-projects mailing list