gmirror Flags: DIRTY

Miroslav Lachman 000.fbsd at quip.cz
Fri Jul 7 22:25:08 CEST 2006


Instaloval jsem dnes dva nove stroje (identicky HW), na obou jsem 
postupoval stejne a jelikoz servery obsahuji dva disky, ale nemaji RAID 
radic, rozhodl jsem se pro gmirror podle clanku 
http://www.onlamp.com/lpt/a/6309
Ovsem na jednom stroji mi gmirror list vypisuje Flags: DIRTY. V clanku 
se pise, ze by se to melo po chvili srovnat "samo", ale ani po nekolika 
hodinach od dokonceni synchronizace se to nesrovnalo a i po rebootu tam 
stale vidim Flags: DIRTY, ale system bezi normalne.

/var/log/messages po rebootu:
Jul  7 22:03:32 roxy kernel: ad4: 238475MB <Seagate ST3250820AS 3.AAC> 
at ata2-master SATA150
Jul  7 22:03:32 roxy kernel: GEOM_MIRROR: Device gm0 created 
(id=4035128674).
Jul  7 22:03:32 roxy kernel: GEOM_MIRROR: Device gm0: provider ad4 detected.
Jul  7 22:03:32 roxy kernel: ad8: 238475MB <Seagate ST3250820AS 3.AAC> 
at ata4-master SATA150
Jul  7 22:03:32 roxy kernel: GEOM_MIRROR: Device gm0: provider ad8 detected.
Jul  7 22:03:32 roxy kernel: GEOM_MIRROR: Device gm0: provider ad8 
activated.
Jul  7 22:03:32 roxy kernel: GEOM_MIRROR: Device gm0: provider ad4 
activated.
Jul  7 22:03:32 roxy kernel: GEOM_MIRROR: Device gm0: provider 
mirror/gm0 launched.
Jul  7 22:03:32 roxy kernel: Trying to mount root from 
ufs:/dev/mirror/gm0s1a


# gmirror list
Geom name: gm0
State: COMPLETE
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 4035128674
Providers:
1. Name: mirror/gm0
    Mediasize: 250059349504 (233G)
    Sectorsize: 512
    Mode: r8w8e10
Consumers:
1. Name: ad4
    Mediasize: 250059350016 (233G)
    Sectorsize: 512
    Mode: r1w1e1
    State: ACTIVE
    Priority: 0
    Flags: DIRTY
    GenID: 0
    SyncID: 1
    ID: 4019151829
2. Name: ad8
    Mediasize: 250059350016 (233G)
    Sectorsize: 512
    Mode: r1w1e1
    State: ACTIVE
    Priority: 0
    Flags: DIRTY
    GenID: 0
    SyncID: 1
    ID: 3350061873


# gmirror status
       Name    Status  Components
mirror/gm0  COMPLETE  ad4
                       ad8



Na druhem serveru je vsechno OK

# gmirror list
Geom name: gm0
State: COMPLETE
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 3998145288
Providers:
1. Name: mirror/gm0
    Mediasize: 250059349504 (233G)
    Sectorsize: 512
    Mode: r8w8e10
Consumers:
1. Name: ad4
    Mediasize: 250059350016 (233G)
    Sectorsize: 512
    Mode: r1w1e1
    State: ACTIVE
    Priority: 0
    Flags: NONE
    GenID: 0
    SyncID: 1
    ID: 1993929262
2. Name: ad8
    Mediasize: 250059350016 (233G)
    Sectorsize: 512
    Mode: r1w1e1
    State: ACTIVE
    Priority: 0
    Flags: NONE
    GenID: 0
    SyncID: 1
    ID: 2682935743


Je tu v konferenci nekdo, kdo gmirror aktivne pouziva a dokazal by mi 
vysvetlit, jak k tomu doslo / jak to napravit / jak tomu predejit?

Pripadne si rad necham poradit nejake tipy / tuning...

Miroslav Lachman



More information about the Users-l mailing list