Stephan Budach
2010-Oct-04 14:24 UTC
[zfs-discuss] Can I "upgrade" a striped pool of vdevs to mirrored vdevs?
Hi, once I created a zpool of single vdevs not using mirroring of any kind. Now I wonder if it''s possible to add vdevs and mirror the currently existing ones. Thanks, budy -- This message posted from opensolaris.org
Darren J Moffat
2010-Oct-04 14:27 UTC
[zfs-discuss] Can I "upgrade" a striped pool of vdevs to mirrored vdevs?
On 04/10/2010 15:24, Stephan Budach wrote:> once I created a zpool of single vdevs not using mirroring of any kind. Now I wonder if it''s possible to add vdevs and mirror the currently existing ones.Yes. zpool attach pool existing_device new_device Do that for each of the vdev devices you are mirroring. -- Darren J Moffat
Cindy Swearingen
2010-Oct-04 14:48 UTC
[zfs-discuss] Can I "upgrade" a striped pool of vdevs to mirrored vdevs?
Hi-- Yes, you would use the zpool attach command to convert a non-redundant configuration into a mirrored pool configuration. http://docs.sun.com/app/docs/doc/819-5461/gcfhe?l=en&a=view See: Example 4?6 Converting a Nonredundant ZFS Storage Pool to a Mirrored ZFS Storage Pool If you have more than one device in the pool, you would continue to attach a new disk to each existing device, like this: # zpool status test pool: test state: ONLINE scan: resilvered 85.5K in 0h0m with 0 errors on Mon Oct 4 08:44:35 2010 config: NAME STATE READ WRITE CKSUM test ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 c3t1d0 ONLINE 0 0 0 c3t2d0 ONLINE 0 0 0 c3t3d0 ONLINE 0 0 0 # zpool attach test c3t1d0 c4t1d0 # zpool attach test c3t2d0 c4t2d0 # zpool attach test c3t3d0 c4t3d0 This would create a mirrored pool with 3 two-way mirrors. I would suggest attaching one disk at a time, letting it resilver and then run a scrub to ensure that each new disk is functional. Thanks, Cindy On 10/04/10 08:24, Stephan Budach wrote:/dev/dsk/c2t5d0s2> Hi, > > once I created a zpool of single vdevs not using mirroring of any kind. Now I wonder if it''s possible to add vdevs and mirror the currently existing ones. > > Thanks, > budy
Stephan Budach
2010-Oct-04 14:48 UTC
[zfs-discuss] Can I "upgrade" a striped pool of vdevs to mirrored vdevs?
Hi Darren, gee, thanks. Of course the would be a resilver due for each vdev, but that shouldn''t harm, although the vdevs are quite big. Thanks, budy -- This message posted from opensolaris.org
Darren J Moffat
2010-Oct-04 15:05 UTC
[zfs-discuss] Can I "upgrade" a striped pool of vdevs to mirrored vdevs?
On 04/10/2010 15:48, Stephan Budach wrote:> gee, thanks. Of course the would be a resilver due for each vdev, but that shouldn''t harm, although the vdevs are quite big.Of course there will be a resilver, otherwise the mirror won''t get the existing data and it wouldn''t be a mirror. -- Darren J Moffat
Stephan Budach
2010-Oct-04 15:05 UTC
[zfs-discuss] Can I "upgrade" a striped pool of vdevs to mirrored vdevs?
Hi Cindy, very well - thanks. I noticed that either the pool you''re using and the zpool that is described inb the docs already show a mirror-0 configuration, which isn''t the case for my zpool: zpool status obelixData pool: obelixData state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM obelixData ONLINE 0 0 0 c4t210000D023038FA8d0 ONLINE 0 0 0 c4t210000D02305FF42d0 ONLINE 0 0 0 errors: No known data errors Actually, this zpool consists of two FC raids and I think I created it simply by adding these two devs to the pool. Does this disqualify my zpool for upgrading? Thanks, budy Am 04.10.10 16:48, schrieb Cindy Swearingen:> Hi-- > > Yes, you would use the zpool attach command to convert a > non-redundant configuration into a mirrored pool configuration. > > http://docs.sun.com/app/docs/doc/819-5461/gcfhe?l=en&a=view > > See: > > Example 4?6 Converting a Nonredundant ZFS Storage Pool to a Mirrored > ZFS Storage Pool > > If you have more than one device in the pool, you would continue to > attach a new disk to each existing device, like this: > > # zpool status test > pool: test > state: ONLINE > scan: resilvered 85.5K in 0h0m with 0 errors on Mon Oct 4 08:44:35 2010 > config: > > NAME STATE READ WRITE CKSUM > test ONLINE 0 0 0 > mirror-0 ONLINE 0 0 0 > c3t1d0 ONLINE 0 0 0 > c3t2d0 ONLINE 0 0 0 > c3t3d0 ONLINE 0 0 0 > > # zpool attach test c3t1d0 c4t1d0 > # zpool attach test c3t2d0 c4t2d0 > # zpool attach test c3t3d0 c4t3d0 > > This would create a mirrored pool with 3 two-way mirrors. > > I would suggest attaching one disk at a time, letting it > resilver and then run a scrub to ensure that each new disk is > functional. > > Thanks, > > Cindy > > On 10/04/10 08:24, Stephan Budach wrote:/dev/dsk/c2t5d0s2 >> Hi, >> >> once I created a zpool of single vdevs not using mirroring of any >> kind. Now I wonder if it''s possible to add vdevs and mirror the >> currently existing ones. >> >> Thanks, >> budy-- Stephan Budach Jung von Matt/it-services GmbH Glash?ttenstra?e 79 20357 Hamburg Tel: +49 40-4321-1353 Fax: +49 40-4321-1114 E-Mail: stephan.budach at jvm.de Internet: http://www.jvm.com Gesch?ftsf?hrer: Ulrich Pallas, Frank Wilhelm AG HH HRB 98380
Cindy Swearingen
2010-Oct-04 15:16 UTC
[zfs-discuss] Can I "upgrade" a striped pool of vdevs to mirrored vdevs?
Duh. Yeah, its Monday morning. I didn''t have 6 devices to play with so I tried to fake it. It should look like this: # zpool status test pool: test state: ONLINE scan: resilvered 85.5K in 0h0m with 0 errors on Mon Oct 4 08:54:06 2010 config: NAME STATE READ WRITE CKSUM test ONLINE 0 0 0 c3t1d0 ONLINE 0 0 0 c3t2d0 ONLINE 0 0 0 c3t3d0 ONLINE 0 0 0 # zpool attach test c3t1d0 c4t1d0 # zpool attach test c3t2d0 c4t2d0 # zpool attach test c3t3d0 c4t3d0 Cindy On 10/04/10 09:05, Stephan Budach wrote:> Hi Cindy, > > very well - thanks. > > I noticed that either the pool you''re using and the zpool that is > described inb the docs already show a mirror-0 configuration, which > isn''t the case for my zpool: > > zpool status obelixData > pool: obelixData > state: ONLINE > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > obelixData ONLINE 0 0 0 > c4t210000D023038FA8d0 ONLINE 0 0 0 > c4t210000D02305FF42d0 ONLINE 0 0 0 > > errors: No known data errors > > Actually, this zpool consists of two FC raids and I think I created it > simply by adding these two devs to the pool. > Does this disqualify my zpool for upgrading? > > Thanks, > budy > > > Am 04.10.10 16:48, schrieb Cindy Swearingen: >> Hi-- >> >> Yes, you would use the zpool attach command to convert a >> non-redundant configuration into a mirrored pool configuration. >> >> http://docs.sun.com/app/docs/doc/819-5461/gcfhe?l=en&a=view >> >> See: >> >> Example 4?6 Converting a Nonredundant ZFS Storage Pool to a Mirrored >> ZFS Storage Pool >> >> If you have more than one device in the pool, you would continue to >> attach a new disk to each existing device, like this: >> >> # zpool status test >> pool: test >> state: ONLINE >> scan: resilvered 85.5K in 0h0m with 0 errors on Mon Oct 4 08:44:35 2010 >> config: >> >> NAME STATE READ WRITE CKSUM >> test ONLINE 0 0 0 >> mirror-0 ONLINE 0 0 0 >> c3t1d0 ONLINE 0 0 0 >> c3t2d0 ONLINE 0 0 0 >> c3t3d0 ONLINE 0 0 0 >> >> # zpool attach test c3t1d0 c4t1d0 >> # zpool attach test c3t2d0 c4t2d0 >> # zpool attach test c3t3d0 c4t3d0 >> >> This would create a mirrored pool with 3 two-way mirrors. >> >> I would suggest attaching one disk at a time, letting it >> resilver and then run a scrub to ensure that each new disk is >> functional. >> >> Thanks, >> >> Cindy >> >> On 10/04/10 08:24, Stephan Budach wrote:/dev/dsk/c2t5d0s2 >>> Hi, >>> >>> once I created a zpool of single vdevs not using mirroring of any >>> kind. Now I wonder if it''s possible to add vdevs and mirror the >>> currently existing ones. >>> >>> Thanks, >>> budy > >
Cindy Swearingen
2010-Oct-04 15:48 UTC
[zfs-discuss] Can I "upgrade" a striped pool of vdevs to mirrored vdevs?
To answer your other questions, I''m not sure I''m following your FC raid description: Are you saying you created two LUNs from a FC RAID array and added them to the pool? If so, then yes, you can still attach more LUNs from the array to create a mirrored pool. A best practice is to mirror across controllers for better reliability, but ZFS doesn''t check if the disks to attach are from the same array, if that''s what you mean. Thanks, Cindy On 10/04/10 09:05, Stephan Budach wrote:> Hi Cindy, > > very well - thanks. > > I noticed that either the pool you''re using and the zpool that is > described inb the docs already show a mirror-0 configuration, which > isn''t the case for my zpool: > > zpool status obelixData > pool: obelixData > state: ONLINE > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > obelixData ONLINE 0 0 0 > c4t210000D023038FA8d0 ONLINE 0 0 0 > c4t210000D02305FF42d0 ONLINE 0 0 0 > > errors: No known data errors > > Actually, this zpool consists of two FC raids and I think I created it > simply by adding these two devs to the pool. > Does this disqualify my zpool for upgrading? > > Thanks, > budy > > > Am 04.10.10 16:48, schrieb Cindy Swearingen: >> Hi-- >> >> Yes, you would use the zpool attach command to convert a >> non-redundant configuration into a mirrored pool configuration. >> >> http://docs.sun.com/app/docs/doc/819-5461/gcfhe?l=en&a=view >> >> See: >> >> Example 4?6 Converting a Nonredundant ZFS Storage Pool to a Mirrored >> ZFS Storage Pool >> >> If you have more than one device in the pool, you would continue to >> attach a new disk to each existing device, like this: >> >> # zpool status test >> pool: test >> state: ONLINE >> scan: resilvered 85.5K in 0h0m with 0 errors on Mon Oct 4 08:44:35 2010 >> config: >> >> NAME STATE READ WRITE CKSUM >> test ONLINE 0 0 0 >> mirror-0 ONLINE 0 0 0 >> c3t1d0 ONLINE 0 0 0 >> c3t2d0 ONLINE 0 0 0 >> c3t3d0 ONLINE 0 0 0 >> >> # zpool attach test c3t1d0 c4t1d0 >> # zpool attach test c3t2d0 c4t2d0 >> # zpool attach test c3t3d0 c4t3d0 >> >> This would create a mirrored pool with 3 two-way mirrors. >> >> I would suggest attaching one disk at a time, letting it >> resilver and then run a scrub to ensure that each new disk is >> functional. >> >> Thanks, >> >> Cindy >> >> On 10/04/10 08:24, Stephan Budach wrote:/dev/dsk/c2t5d0s2 >>> Hi, >>> >>> once I created a zpool of single vdevs not using mirroring of any >>> kind. Now I wonder if it''s possible to add vdevs and mirror the >>> currently existing ones. >>> >>> Thanks, >>> budy > >
Stephan Budach
2010-Oct-04 17:18 UTC
[zfs-discuss] Can I "upgrade" a striped pool of vdevs to mirrored vdevs?
Hi Cindy, well, actually the two LUNs represent two different raid boxes that are conencted through a FC switch to which the host is attached too. I simply added these two FC LUNs to a pool, but from what you all are telling me, I should be good, by adding two equal LUNs as described and await the end of the resilver process, which will take a good amount of time? ;) Thanks, budy Am 04.10.10 17:48, schrieb Cindy Swearingen:> To answer your other questions, > > I''m not sure I''m following your FC raid description: > > Are you saying you created two LUNs from a FC RAID array > and added them to the pool? > > If so, then yes, you can still attach more LUNs from the > array to create a mirrored pool. > > A best practice is to mirror across controllers for better > reliability, but ZFS doesn''t check if the disks to attach > are from the same array, if that''s what you mean. > > Thanks, > > Cindy > > On 10/04/10 09:05, Stephan Budach wrote: >> Hi Cindy, >> >> very well - thanks. >> >> I noticed that either the pool you''re using and the zpool that is >> described inb the docs already show a mirror-0 configuration, which >> isn''t the case for my zpool: >> >> zpool status obelixData >> pool: obelixData >> state: ONLINE >> scrub: none requested >> config: >> >> NAME STATE READ WRITE CKSUM >> obelixData ONLINE 0 0 0 >> c4t210000D023038FA8d0 ONLINE 0 0 0 >> c4t210000D02305FF42d0 ONLINE 0 0 0 >> >> errors: No known data errors >> >> Actually, this zpool consists of two FC raids and I think I created >> it simply by adding these two devs to the pool. >> Does this disqualify my zpool for upgrading? >> >> Thanks, >> budy >> >> >> Am 04.10.10 16:48, schrieb Cindy Swearingen: >>> Hi-- >>> >>> Yes, you would use the zpool attach command to convert a >>> non-redundant configuration into a mirrored pool configuration. >>> >>> http://docs.sun.com/app/docs/doc/819-5461/gcfhe?l=en&a=view >>> >>> See: >>> >>> Example 4?6 Converting a Nonredundant ZFS Storage Pool to a Mirrored >>> ZFS Storage Pool >>> >>> If you have more than one device in the pool, you would continue to >>> attach a new disk to each existing device, like this: >>> >>> # zpool status test >>> pool: test >>> state: ONLINE >>> scan: resilvered 85.5K in 0h0m with 0 errors on Mon Oct 4 08:44:35 >>> 2010 >>> config: >>> >>> NAME STATE READ WRITE CKSUM >>> test ONLINE 0 0 0 >>> mirror-0 ONLINE 0 0 0 >>> c3t1d0 ONLINE 0 0 0 >>> c3t2d0 ONLINE 0 0 0 >>> c3t3d0 ONLINE 0 0 0 >>> >>> # zpool attach test c3t1d0 c4t1d0 >>> # zpool attach test c3t2d0 c4t2d0 >>> # zpool attach test c3t3d0 c4t3d0 >>> >>> This would create a mirrored pool with 3 two-way mirrors. >>> >>> I would suggest attaching one disk at a time, letting it >>> resilver and then run a scrub to ensure that each new disk is >>> functional. >>> >>> Thanks, >>> >>> Cindy >>> >>> On 10/04/10 08:24, Stephan Budach wrote:/dev/dsk/c2t5d0s2 >>>> Hi, >>>> >>>> once I created a zpool of single vdevs not using mirroring of any >>>> kind. Now I wonder if it''s possible to add vdevs and mirror the >>>> currently existing ones. >>>> >>>> Thanks, >>>> budy >> >>-- Stephan Budach Jung von Matt/it-services GmbH Glash?ttenstra?e 79 20357 Hamburg Tel: +49 40-4321-1353 Fax: +49 40-4321-1114 E-Mail: stephan.budach at jvm.de Internet: http://www.jvm.com Gesch?ftsf?hrer: Ulrich Pallas, Frank Wilhelm AG HH HRB 98380