GEOM providers vs. consumers

Miroslav Lachman 000.fbsd at quip.cz
Sun May 6 19:28:29 CEST 2007


Byl by nekdo tak laskav a objasnil mi pojmy uvedene v subjektu - tedy 
provider a consumer v pripade GEOMu?

At uz je to gmirror, graid3, stripe atd. tak v manualu se "disky" ze 
kterych se ma skladat vysledny mirror / raid3 / stripping atd. nazyvaji 
provider:

gmirror label [-hnv] [-b balance] [-s slice] name prov ...
graid3 label [-hnrvw] name prov prov prov ...
gstripe create [-v] [-s stripesize] name prov prov ...

Ale kdyz si vypisu "list", tak tam uz jsou komponenty nazyvany consumers 
a za providera je oznacen graid3:

root at grimm2 ~/# graid3 list
Geom name: gr3d0
State: COMPLETE
Components: 3
Flags: ROUND-ROBIN
GenID: 0
SyncID: 1
ID: 3478291977
Zone64kFailed: 0
Zone64kRequested: 33503
Zone16kFailed: 0
Zone16kRequested: 89
Zone4kFailed: 1
Zone4kRequested: 316
Providers:
1. Name: raid3/gr3d0
    Mediasize: 2147482624 (2.0G)
    Sectorsize: 1024
    Mode: r1w1e1
Consumers:
1. Name: md2
    Mediasize: 1073741824 (1.0G)
    Sectorsize: 512
    Mode: r1w1e1
    State: ACTIVE
    Flags: NONE
    GenID: 0
    SyncID: 1
    Number: 1
    Type: DATA
2. Name: md1
    Mediasize: 1073741824 (1.0G)
    Sectorsize: 512
    Mode: r1w1e1
    State: ACTIVE
    Flags: NONE
    GenID: 0
    SyncID: 1
    Number: 0
    Type: DATA
3. Name: md3
    Mediasize: 1073741824 (1.0G)
    Sectorsize: 512
    Mode: r1w1e1
    State: ACTIVE
    Flags: NONE
    GenID: 0
    SyncID: 1
    Number: 2
    Type: PARITY

To mi prijde dost nekonzistentni a matouci, ale "asi to ma nejaky duvod".
Je mi jasne, ze v GEOM muze byt jakykoliv provider zaroven cosumerem v 
jine vrstve atd...

Dokaze mi to nekdo objasnit? :)

Mirek



More information about the Users-l mailing list