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.

I tested detaching a drive and it seems to seriously mess up the
entire pool and I can't figure out a way to recover.

# zpool create mypool raidz c1t1d0 c1t2d0 c1t3d0
# zpool add -f mypool mirror c1t4d0 c1t5d0

# 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
          mirror    ONLINE       0     0     0
            c1t4d0  ONLINE       0     0     0
            c1t5d0  ONLINE       0     0     0

errors: No known data errors

So far so good...now try to detach a drive.

# 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?

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?

Thanks.
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to