From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from egyptian.birch.relay.mailchannels.net ([23.83.209.56]:35510 "EHLO egyptian.birch.relay.mailchannels.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726132AbfGJKEP (ORCPT ); Wed, 10 Jul 2019 06:04:15 -0400 Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id F207B6A191D for ; Wed, 10 Jul 2019 09:56:28 +0000 (UTC) Received: from pdx1-sub0-mail-a65.g.dreamhost.com (100-96-92-226.trex.outbound.svc.cluster.local [100.96.92.226]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 853DB6A1160 for ; Wed, 10 Jul 2019 09:56:28 +0000 (UTC) Received: from pdx1-sub0-mail-a65.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a65.g.dreamhost.com (Postfix) with ESMTP id 239987F131 for ; Wed, 10 Jul 2019 02:56:26 -0700 (PDT) Received: from [172.23.0.131] (broadband-178-140-10-107.ip.moscow.rt.ru [178.140.10.107]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: a-j@a-j.ru) by pdx1-sub0-mail-a65.g.dreamhost.com (Postfix) with ESMTPSA id 339F17FAA6 for ; Wed, 10 Jul 2019 02:56:24 -0700 (PDT) Date: Wed, 10 Jul 2019 12:56:17 +0300 From: Andrey Zhunev Message-ID: <871210488.20190710125617@a-j.ru> Subject: Need help to recover root filesystem after a power supply issue MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: linux-xfs@vger.kernel.org Hello All, I am struggling to recover my system after a PSU failure, and I was suggested to ask here for support. One of the hard drives throws some read errors, and that happen to be my root drive... My system is CentOS 7, and the root partition is a part of LVM. [root@mgmt ~]# lvscan ACTIVE '/dev/centos/root' [<98.83 GiB] inherit ACTIVE '/dev/centos/home' [<638.31 GiB] inherit ACTIVE '/dev/centos/swap' [<7.52 GiB] inherit [root@mgmt ~]# [root@tftp ~]# file -s /dev/centos/root /dev/centos/root: symbolic link to `../dm-3' [root@tftp ~]# file -s /dev/centos/home /dev/centos/home: symbolic link to `../dm-4' [root@tftp ~]# file -s /dev/dm-3 /dev/dm-3: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs) [root@tftp ~]# file -s /dev/dm-4 /dev/dm-4: SGI XFS filesystem data (blksz 4096, inosz 256, v2 dirs) [root@tftp ~]# xfs_repair /dev/centos/root Phase 1 - find and verify superblock... superblock read failed, offset 53057945600, size 131072, ag 2, rval -1 fatal error -- Input/output error [root@tftp ~]# smartctl shows some pending sectors on /dev/sda, and no reallocated sectors (yet?). Can someone please give me a hand to bring root partition back to life (ideally)? Or, at least, recover a couple of critical configuration files... --- Best regards, Andrey