I have zpool like that pool: tank state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz3-0 ONLINE 0 0 0 ___c6t0d0 ONLINE 0 0 0 ___c6t1d0 ONLINE 0 0 0 ___c6t2d0 ONLINE 0 0 0 ___c6t3d0 ONLINE 0 0 0 ___c6t4d0 ONLINE 0 0 0 ___c6t5d0 ONLINE 0 0 0 ___c6t6d0 ONLINE 0 0 0 ___c6t7d0 ONLINE 0 0 0 ___vc7t0d0 ONLINE 0 0 0 ___c7t1d0 ONLINE 0 0 0 ___c7t2d0 ONLINE 0 0 0 ___c7t3d0 ONLINE 0 0 0 c7t4d0 ONLINE 0 0 0 c7t5d0 ONLINE 0 0 0 c7t6d0 ONLINE 0 0 0 c7t7d0 ONLINE 0 0 0 In my understanding last 4 drives(c7t4d0 ,c7t5d0 ,c7t6d0 ,c7t7d0 ) are part of tank zpool but not of raidz3 array. Ho do I move them to be part of raidz3 ? Thanks a lot. -- This message posted from opensolaris.org
On Fri, Aug 6, 2010 at 12:18 AM, Alxen4 <yuri at cmsintegra.com> wrote:> I have zpool like that > > ?pool: tank > ?state: ONLINE > ?scrub: none requested > config: > > ? ? ? ?NAME ? ? ? ?STATE ? ? READ WRITE CKSUM > ? ? ? ?tank ? ? ? ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ? ? ? ? ?raidz3-0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ___c6t0d0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ___c6t1d0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ___c6t2d0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ___c6t3d0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ___c6t4d0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ___c6t5d0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ___c6t6d0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ___c6t7d0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ___vc7t0d0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ___c7t1d0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ___c7t2d0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > ___c7t3d0 ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > c7t4d0 ? ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > c7t5d0 ? ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > c7t6d0 ? ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > c7t7d0 ? ?ONLINE ? ? ? 0 ? ? 0 ? ? 0 > > > In my understanding last 4 drives(c7t4d0 ? ?,c7t5d0 ? ?,c7t6d0 ? ?,c7t7d0 ? ?) > > are part of tank zpool but not of raidz3 array. > > Ho do I move them to be part of raidz3 ?Backup the data in the pool, destroy the pool, create a new pool (consider using multiple raidz vdevs instead of one giant raidz vdev), copy the data back. There''s no other way. -- Freddie Cash fjwcash at gmail.com
Thank you very much for the answer Yea,that what I was afraid of. There is something I really cannot understand about zpool structuring... What is a role these 4 drives play in that tank pool with current configuration ? If they are not part of raidz3 array what is a point for Solaris to accept that configuration ? I realize that I made mistake by doing ''zpool add'' instead of ''zpool attach'',but still... Like let''s say I write data into the tank pool.How would the data to be distributed on the pool ? Would it go to raidz3 part of it AND to 4 stand alone drives or to raidz3 part only ? If it goes to raidz3 part only why it''s not possible to remove these 4 drives from the pool ? Also could you please provide some examples for multiple raidz vdevs ? I''m really new in ZFS world :) Again thank you very much. -- This message posted from opensolaris.org
On Aug 6, 2010, at 12:18 PM, Alxen4 wrote:> Thank you very much for the answer > > Yea,that what I was afraid of. > > There is something I really cannot understand about zpool structuring... > > What is a role these 4 drives play in that tank pool with current configuration ?They are members of a dynamic stripe. Looking at the top-level vdevs, you have: raidz3 disk disk disk> If they are not part of raidz3 array what is a point for Solaris to accept that configuration ?By default, zpool will not let you add unprotected top-level vdevs to a protected (raidz3) top-level vdev as a dynamic stripe. To do this, you have to also use the "-f" (force) flag.> I realize that I made mistake by doing ''zpool add'' instead of ''zpool attach'',but still...Yes, especially the ''zpool add -f'' part.> > Like let''s say I write data into the tank pool.How would the data to be distributed on the pool ? Would it go to raidz3 part of it AND to 4 stand alone drives or to raidz3 part only ?The former.> If it goes to raidz3 part only why it''s not possible to remove these 4 drives from the pool ?The data is unprotected. Think of the dynamic stripe as RAID-0.> Also could you please provide some examples for multiple raidz vdevs ?A dynamic stripe of multiple raidz vdevs looks something like: http://hub.opensolaris.org/bin/download/Community+Group+zfs/docs/zfsadmin.pdf page 81 (thanks Cindy!) -- richard -- ZFS and performance consulting http://www.RichardElling.com