Dead Horse
2013-Sep-24 16:35 UTC
Online replacement of missing or completely faulted devices
After digging around I cannot seemingly find a clear answer on if or when BTRFS supports the replacing of completely faulted or failed drives while the filesystem is still online. EG: Equivalence or BTRFS notion of the ZFS Attach/Detach/Online/Offline/ Replace features At the moment it seems the only way to replace or remove a drive which has completely failed is to take the filesystem offline and mount it in degraded mode. EG: "mount -o degraded btrfsdevice mountpoint" then "btrfs device delete missing mountpoint" Thus in order to replace a device which has completely failed we must take the filesystem completely offline. Thus is something to the tune of how this can be handled with the FS still on online like ZFS planned? EG: "zpool replace poolname failedormissingdevice newdevice" If not planned is the strategy that when a device fails in such a manner that one simply removes and replaces the failed device. Then once the new device is installed it is added via "btrfs device add"? Then at some point when the FS is taken offline for maintenance for whatever reason that a "btrfs device delete missing" is done to clean up the failed devices? - DHC -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html