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

List:       evms-devel
Subject:    Re: [Evms-devel] evms CLI bug with parent/child cross reference?
From:       Kevin Corry <kevcorry () us ! ibm ! com>
Date:       2003-12-18 14:23:40
[Download RAW message or body]

On Wednesday 17 December 2003 19:00, Mike Snitzer wrote:
> If I understand the CLI's 'parent' and 'child' query commands correctly it
> would appear as though there is a bug mapping a child MD-region back to a
> parent EVMS Volume, e.g.:

After reading through the cli help screens, it would seem that this is a bug. 
Of course, I can understand why it probably doesn't work right now. In the 
EVMS architecture, the volume /dev/evms/raid34 isn't a parent object of 
md/md0 - it's simply a volume on top of that object. On the other hand, 
md/md0 *is* a parent of sda1 and sda1 *is* a child of md/md0. Yes, it's a 
strange distinction. But it's most likely this distinction that's causing the 
current behavior.

However, both the ncurses and the gui provide the behavior that you're looking 
for here. E.g. in the gui, right-clicking on md/md0 and selecting "Go to 
parent object" would take you to /dev/evms/raid34. So, we should probably fix 
the cli to provide the same behavior.

> EVMS: q:chi,/dev/evms/raid34
>
> Region Name: md/md0
> Major: 9
> Minor: 0
> Active: TRUE
> Region Size: 51.27 GB
> Region Type: Data
>
> EVMS: q:par,md/md0
>
> EVMS:
>
>
> Yet... the same with a child disk segment and a parent MD-region works
> like a champ:
>
> EVMS: q:chi,md/md0
>
> <snip>...
> Segment Name: sda1
> Major: 254
> Minor: 4
> Active: TRUE
> Segment Size: 17.09 GB
> Starting LBA: 63
> Segment Type: Data
>
> EVMS: q:par,sda1
>
> Region Name: md/md0
> Major: 9
> Minor: 0
> Active: TRUE
> Region Size: 51.27 GB
> Region Type: Data
>
> I haven't jumped into the code but figured I'd drop a preemptive note.

-- 
Kevin Corry
kevcorry@us.ibm.com
http://evms.sourceforge.net/



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
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