zfs-discuss@opensolaris.org
[Top] [All Lists]

Re: [zfs-discuss] Mixing RAID levels in a pool

Subject: Re: [zfs-discuss] Mixing RAID levels in a pool
From: Tomas Ögren
Date: Sat, 7 Jun 2008 11:29:36 +0200
On 07 June, 2008 - Fu Leow sent me these 2,0K bytes:

> Hi,
> 
> I had a plan to set up a zfs pool with different raid levels but I ran
> into an issue based on some testing I've done in a VM. I have 3x 750
> GB hard drives and 2x 320 GB hard drives available, and I want to set
> up a RAIDZ for the 750 GB and mirror for the 320 GB and add it all to
> the same pool.
> 
> # zpool detach mypool c1t4d0
> # zpool status
>   pool: mypool
>  state: ONLINE
>  scrub: none requested
> config:
> 
>       NAME        STATE     READ WRITE CKSUM
>       mypool      ONLINE       0     0     0
>         raidz1    ONLINE       0     0     0
>           c1t1d0  ONLINE       0     0     0
>           c1t2d0  ONLINE       0     0     0
>           c1t3d0  ONLINE       0     0     0
>         c1t5d0    ONLINE       0     0     0
> 
> c1t5d0 was part of a mirror but with c1t4d0 removed it now appears as
> a single drive. Is there a way to recover from this by recreating the
> mirror with c1t4d0?

zpool attach mypool c1t5d0 c1t4d0

> I've also heard that you can upgrade disks in a raidz one at a time to
> a higher capacity but I can't detach or remove any of the disks in the
> raidz. I'm guessing that is because there's no spare drive and the
> only way to do it is to remove the drive physically and stick a new
> one in. It would be degraded and a zfs replace could be done. Is that
> right?

zpool replace mypool c1t1d0 c1t6d0   should work..

.. or just yank a drive out and put a different one in, and then run
zpool scrub mypool

repeat for t1..t3

/Tomas
-- 
Tomas Ögren, stric@xxxxxxxxxx, http://www.acc.umu.se/~stric/
|- Student at Computing Science, University of Umeå
`- Sysadmin at {cs,acc}.umu.se
_______________________________________________
zfs-discuss mailing list
zfs-discuss@xxxxxxxxxxxxxxx
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

<Prev in Thread] Current Thread [Next in Thread>