On Mon, Dec 06, 2010 at 02:25:35PM -0800, Peter Taps wrote:
> Folks,
> 
> I am working on an application to graphically display the details of a zpool. 
> Here is my understanding of zpool organization. I would appreciate it if 
> someone can correct me if I am wrong.
> 
> A pool has four parts - primary, log, spare, and cache.
> 
> primary ==> one or more of [disk, mirror, raidz1, raidz2, raidz3]
> log ==> one or more of [disk, mirror]

zero or more

> spare ==> zero or more of [disk]
> cache ==> zero or more of [disk]
> 
> and 
> 
> mirror ==> two or more of [disk]
> raidz1 ==> two or more of [disk]
> raidz2 ==> three or more of [disk]
> raidz3 ==> four or more of [disk]
> 
> Is this correct?

Yes.

> Also, on the primary, can you stripe across different types of root vdevs? 
> For example, let's say I create a pool with 3 disks of raidz2. Now, can I add 
> 4 more disks as a new raidz3 root vdev or am I limited to adding only raidz2 
> type vdevs?

You can add anything that is acceptable initially, although zpool(8)
will ask you to add -f option to be sure you know what you are doing.
In other words you can have a disk, a mirror and a raidz vdevs in one
ZFS pool.

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
[email protected]                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

Attachment: pgpIvrPgG4L7A.pgp
Description: PGP signature

_______________________________________________
zfs-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/zfs-code

Reply via email to