[prev in list] [next in list] [prev in thread] [next in thread] 

List:       evms-devel
Subject:    Re: [Evms-devel] raid 0 with one disk
From:       Mike Tran <mhtran () us ! ibm ! com>
Date:       2004-09-23 15:41:29
Message-ID: 1095954088.2452.32.camel () star2 ! austin ! ibm ! com
[Download RAW message or body]

On Wed, 2004-09-22 at 20:03, Srikumar Subramanian wrote:
> Hi All,
> 
> With evmsgui, I could not create a Raid 0 with only one disk/segment.

Are you sure that you're using evms 2.4.0?  It works fine on my system.

> However I could create a Raid 0 with one disk using evms api. On top of this
> raid 0, it was possible to create container, region, volume and file system
> without any problem.
> 
> The only strange thing I observed is: When I create raid 0 with one disk,
> raid 'state' is always 'Discovered'. It was never 'Active' though I could
> access the file system which was created over my single disk - raid 0. 

This is a bug.  MD RAID0 and LINEAR region information was not set
correctly.  I checked in the fix into CVS.  Attach is the patch for evms
2.4.0.

Thanks,
Mike T.

> 
> 
> 
> Please clarify.
> 
> Thanks,
> Srikumar 
> 
> I am using evms 2.3.4; kernel 2.6.8.1
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> Evms-devel mailing list
> Evms-devel@lists.sourceforge.net
> To subscribe/unsubscribe, please visit:
> https://lists.sourceforge.net/lists/listinfo/evms-devel
> 

["md_info.patch" (md_info.patch)]

--- evms-2.4.0/plugins/md/md_info.c	2004-07-29 16:24:41.000000000 -0500
+++ evms-2.4.0-patch/plugins/md/md_info.c	2004-09-23 10:39:24.948905736 -0500
@@ -43,12 +43,20 @@
            	               extended_info_array_t ** info_array ) {
 
 	int rc = 0;
+	storage_object_t *region;
 	int i;
 	int found = 0;
 	int info_entries;
 	extended_info_array_t * info = NULL;
 	extended_info_t *cur_info;
 
+	region = volume->region;
+	if (!region) {
+		LOG_CRITICAL("No region was created for MD volume %s.\n", volume->name);
+		LOG_EXIT_INT(EINVAL);
+		return EINVAL;
+	}
+
 	if (volume->stale_disks)
 		info_entries = NUM_INFO_ENTRIES + 1 + volume->nr_disks + volume->stale_disks;
 	else
@@ -103,7 +111,7 @@
 			}
 			strcat(message_buffer, _("Dirty"));
 		}
-		if (volume->flags & MD_ACTIVE) {
+		if (region->flags & SOFLAG_ACTIVE) {
 			if (message_buffer[0] != '\0') {
 				strcat(message_buffer, ", ");
 			}

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Evms-devel mailing list
Evms-devel@lists.sourceforge.net
To subscribe/unsubscribe, please visit:
https://lists.sourceforge.net/lists/listinfo/evms-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic