The document describes a distributed algorithm for partitioning wireless sensor networks into connected partitions to maximize network lifetime. The algorithm finds the maximum number of partitions where each partition is connected and covers the monitoring area. It does this efficiently with less computation time and message overhead compared to previous works. The algorithm also includes a distributed fault recovery method that can locally rearrange an affected partition to tolerate single node failures and extend network lifetime further. Simulation results show the partitioning algorithm is faster and creates better topology partitions, while the fault recovery enhances lifetime by over 50%.