8.1 "gjournal status" wrongly claims "No such geom"
    perryh at pluto.rain.com 
    perryh at pluto.rain.com
       
    Fri Jun  3 23:37:32 UTC 2011
    
    
  
Nicolas Rachinsky <fbsd-mas-0 at ml.turing-complete.org> wrote:
> * perryh at pluto.rain.com [2011-06-02 01:00 -0700]:
> > The gmirror and gjournal modules have been loaded; the mirror and
> > journals are reported in dmesg; the geoms appear in /dev and in the
> > "gjournal status" summary; and "gjournal dump" finds the metadata.
> > However, when I ask for individual status reports, gjournal claims
> > that the geoms don't exist.  What's going on?
>
> It works with the geom name from gjournal list.
>
> > gjournal list
> [...]
> Geom name: gjournal 1618583258
> ID: 1618583258
> Providers:
> 1. Name: mirror/b110528p4.journal
>    [...]
> Consumers:
> 1. Name: mirror/b110528p4
>    [...]
>    Role: Data,Journal
> [...]
Aha!  It looks as if what I actually wanted was "gjournal list"
rather than "gjournal status" :)
> > gjournal status 'gjournal 1618583258'
>                     Name  Status  Components
> mirror/b110528p4.journal     N/A  mirror/b110528p4
IOW the "Name" shown in the status list is not the name of the
gjournal itself but the name of the provider that it creates.
> But I don't know why it's this way.
Seems like a bug, at least a POLA violation.  Either the status
report needs another column, to show the name of the gjournal
itself, or "gjournal status foo" needs to look for foo among the
gjournal providers as well as among the internal names of gjournal
geoms.  (Granted this is a lot easier said than done:  "status" is
a generic geom command rather than being class-specific.)
    
    
More information about the freebsd-geom
mailing list