gmirror size question

R. B. Riddick arne_woerner at yahoo.com
Thu Sep 14 09:42:30 PDT 2006


--- "R. B. Riddick" <arne_woerner at yahoo.com> wrote:
> I would use gnop during the "gmirror label" command in the hope, that gmirror
> stores the mediasize permanently without further future checking... But that
> is just a quick shot...
> 
Because I found the question so interesting here is the plan (it is my plan; I
invented it on my own; and I have a second plan about bands playing songs of
David Hasselhoff):

# diskinfo /dev/md?
/dev/md0        512     33554432        65536
/dev/md1        512     16777216        32768
# gnop create -v -s 10485760 md0
# gmirror label fook md0.nop md1
# gmirror stop fook
# gnop destroy md0.nop
# gmirror forget fook
# gmirror insert fook md0
# gmirror list
Geom name: fook
State: COMPLETE
Components: 2
Balance: split
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 395302241
Providers:
1. Name: mirror/fook
   Mediasize: 10485248 (10M)
   Sectorsize: 512
   Mode: r0w0e0
Consumers:
1. Name: md0
   Mediasize: 33554432 (32M)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 864954146
2. Name: md1
   Mediasize: 16777216 (16M)
   Sectorsize: 512
   Mode: r1w1e1
   State: ACTIVE
   Priority: 0
   Flags: NONE
   GenID: 0
   SyncID: 1
   ID: 3713132874

[or similar]

quod erat fackiendum

-Arne

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the freebsd-geom mailing list