Issues with multiple-vdev ZFS root

Peter Maloney peter.maloney at brockmann-consult.de
Fri Jan 20 08:55:21 UTC 2012


On 01/19/2012 09:17 PM, Dmitry Marakasov wrote:
> * Dmitry Marakasov (amdmi3 at hades.panopticon) wrote:
>
> Just for the note: I've switched to multiple-vdev root pool
> configuration on a real machine and it works well.
>
> 	NAME        STATE     READ WRITE CKSUM
> 	hades       ONLINE       0     0     0
> 	  mirror-0  ONLINE       0     0     0
> 	    ada0p3  ONLINE       0     0     0
> 	    ada1p3  ONLINE       0     0     0
> 	  mirror-1  ONLINE       0     0     0
> 	    ada2p3  ONLINE       0     0     0
> 	    ada3p3  ONLINE       0     0     0
>
> root has 1 copies and I've tried to copy it over, so it's likely
> located on the second mirror, still the system is bootable and I
> haven't seen any problems at all.
>
> The questions still remain, as this configuration is not really
> documented.
>
To test your virtualbox one disk theory, you could create a sliced up
root pool on a single disk:

# gpart show
=>        34         ...  da1  GPT  (10G)
          34        2014        - free -  (1M)
        2048         128     1  freebsd-boot  (64k)
        2176        1920        - free -  (960k)
        4096         ...     2  freebsd-zfs  (2G)
         ...         ...     3  freebsd-zfs  (2G)
         ...         ...     4  freebsd-zfs  (2G)
         ...         ...     5  freebsd-zfs  (2G)


# zpool status zroot
...
        NAME             STATE     READ WRITE CKSUM
        zroot            ONLINE       0     0     0
          mirror-0       ONLINE       0     0     0
            gpt/root1    ONLINE       0     0     0
            gpt/root2    ONLINE       0     0     0
          mirror-1       ONLINE       0     0     0
            gpt/root3    ONLINE       0     0     0
            gpt/root4    ONLINE       0     0     0


-- 

--------------------------------------------
Peter Maloney
Brockmann Consult
Max-Planck-Str. 2
21502 Geesthacht
Germany
Tel: +49 4152 889 300
Fax: +49 4152 889 333
E-mail: peter.maloney at brockmann-consult.de
Internet: http://www.brockmann-consult.de
--------------------------------------------



More information about the freebsd-fs mailing list