gvirstor over gmirror

Ivan Voras ivoras at freebsd.org
Thu Oct 22 09:32:34 UTC 2009


Ferruccio Zamuner wrote:
> Hello,
> 
> I'm trying to get a virstor over gmirrored slices from different devices:
> 
> free# gmirror list gmir1
> Geom name: gmir1
> State: COMPLETE
> Components: 2
> Balance: split
> Slice: 4096
> Flags: NOFAILSYNC
> GenID: 0
> SyncID: 1
> ID: 1104038309
> Providers:
> 1. Name: mirror/gmir1
>   Mediasize: 237291069952 (221G)
>   Sectorsize: 512
>   Mode: r0w0e0
> Consumers:
> 1. Name: ad6s1
>   Mediasize: 237291070464 (221G)
>   Sectorsize: 512
>   Mode: r1w1e1
>   State: ACTIVE
>   Priority: 0
>   Flags: NONE
>   GenID: 0
>   SyncID: 1
>   ID: 2917203718
> 2. Name: ad7s1
>   Mediasize: 237291070464 (221G)
>   Sectorsize: 512
>   Mode: r1w1e1
>   State: ACTIVE
>   Priority: 1
>   Flags: NONE
>   GenID: 0
>   SyncID: 1
>   ID: 756437562
> 
> I thought to create a gvirstor with gmir1 at start and to connect in 
> next future more mirrored disks but:
> geom virstor seems to loose metadata at reboot even with -h.
> 
> gvirstor label -v myvirstor /dev/ad4 /dev/ad6

Is this command above within the same setup as the mirror creation 
above? Are you really trying to use the ad6 device twice?



More information about the freebsd-geom mailing list