I'm attempting to extract data from a HD that has a bunch of linux-raid partitions, including one large one with data I need to save off the disk. I actually have two drives like that (both not from the same RAID pair), and one of them I was successful in creating a MD device so I could mount it RO and copy off a ton of data. the second one fails to mount, saying the XFS filesystem is corrupted. Attempting to run XFS_repair I get a message that the filesystem is XFS-1 and I need an older version of XFS tools to do it. I'm running Centos-7 with whatever version of XFS tools comes with it, according to 'yum list installed' it appears to be xfsprogs 4.5.0-22.el7. I don't particularly want to install another, older, version of xfsprogs on this system. can anyone suggest any other way to gain access to this disk partition? Thanks in advance! Fred
Christopher Wensink
2021-Nov-23 14:52 UTC
[CentOS] mounting XFS RAID-1 disk partition that needs repair.
You could try downloading an ISO of knoppix, and boot from that with the drive installed, and use the xfs_repair tools from there without having to install other tools on the drive in question. On 11/23/2021 8:45 AM, Fred wrote:> I'm attempting to extract data from a HD that has a bunch of linux-raid > partitions, including one large one with data I need to save off the disk. > > I actually have two drives like that (both not from the same RAID pair), > and one of them I was successful in creating a MD device so I could mount > it RO and copy off a ton of data. > > the second one fails to mount, saying the XFS filesystem is corrupted. > Attempting to run XFS_repair I get a message that the filesystem is XFS-1 > and I need an older version of XFS tools to do it. > > I'm running Centos-7 with whatever version of XFS tools comes with it, > according to 'yum list installed' it appears to be xfsprogs 4.5.0-22.el7. > > I don't particularly want to install another, older, version of xfsprogs on > this system. can anyone suggest any other way to gain access to this disk > partition? > > Thanks in advance! > > Fred > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos-- Christopher Wensink IS Administrator Five Star Plastics, Inc 1339 Continental Drive Eau Claire, WI 54701 Office: 715-831-1682 Mobile: 715-563-3112 Fax: 715-831-6075 cwensink at five-star-plastics.com www.five-star-plastics.com
Simon Matter
2021-Nov-23 15:03 UTC
[CentOS] mounting XFS RAID-1 disk partition that needs repair.
Hi,> I'm attempting to extract data from a HD that has a bunch of linux-raid > partitions, including one large one with data I need to save off the disk. > > I actually have two drives like that (both not from the same RAID pair), > and one of them I was successful in creating a MD device so I could mount > it RO and copy off a ton of data. > > the second one fails to mount, saying the XFS filesystem is corrupted. > Attempting to run XFS_repair I get a message that the filesystem is XFS-1 > and I need an older version of XFS tools to do it.Are you sure the filesystem is really corrupt? Maybe it's only your kernel which doesn't understand the old XFS version? To use older xfs_repair, you can just download an older version like xfsprogs-2.9.4-1.el4.centos.x86_64.rpm, extract it to a directory and call the xfs_repair binary from the package. I'm not sure whether you need a matching xfs kernel module to run xfs_repair successfully. Regards, Simon