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] 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? 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? Thank you in advance for your help. Regards, Peter -- This message posted from opensolaris.org
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 pjd at FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-code/attachments/20101206/e3f45df7/attachment.bin>
Pawel, Thank you for your help. Appreciate your quick response. Regards, Peter -- This message posted from opensolaris.org
On 12/6/2010 2:25 PM, 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] > 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? > > 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? > > Thank you in advance for your help. > > Regards, > PeterAlso, note that anyplace you have "disk", you can also use a file, not just a disk device. In theory, that "file" could be a special device, also. -- Erik Trimble Java System Support Mailstop: usca22-123 Phone: x17195 Santa Clara, CA Timezone: US/Pacific (GMT-0800)