0 Replies Latest reply on Mar 31, 2012 10:18 PM by 927717

    Changing Device Identifier in a RAIDZ Array


      I have a ZFS RAIDZ array running through fuse in Debian, in it's own pool. The output of zpool status is as follows:

      pool: Storage
      state: ONLINE
      scrub: none requested

      Storage ONLINE 0 0 0
      raidz1-0 ONLINE 0 0 0
      sdb ONLINE 0 0 0
      sdc ONLINE 0 0 0
      sdd ONLINE 0 0 0
      sde ONLINE 0 0 0

      The problem is, I have six SATA holes on my mobo, and this array is using the last four. The first is used by my boot+home drive, sda. If I add a sixth drive in the second slot, that becomes sdb, and everything else bumps down. The RAIDZ array goes mental, and says that the first drive is wrong, and the other three are corrupted. The solution, as I see it, is to change the drives in the array to be defined by their UUIDs, as opposed to their node names. That way, it doesn't matter what happens. The only way I can figure out to do this is to remove a drive, and readd it under a different name. Unfortunately, it seems impossible to remove a device from a RAIDZ.

      So my question is, can I do what I want to do? Backing everything up from the array is possible, but I would rather not, since it's 3.7 TB, and I would be borrowing HDDs for this. Any help would be great.