Re: RAID5 won't mount after reducing disks from 8 to 6
flat view
From: Stan Hoeppner <hidden>
Date: 2011-02-17 03:06:40
NeilBrown put forth on 2/16/2011 8:14 PM:
So your best bet it to convince xfs_repair to work with what you've got and try to knit together as much as it can - which may be nothing, I really don't know.
xfs_repair won't help. He's hosed. If this had been a grow from 8 disks to 10 he'd be ok, as you grow mdadm first then XFS. But as I said, XFS has no shrink capability. xfs_repair will just puke all over itself if you run it.
Maybe you could ask on an XFS list somewhere.
He already did, in a way, as I'm on that list. You're more than welcome to ask on the XFS mailing list, but you'll get the same answer. This really sucks and I feel for Matt. I wish he'd have asked on either or both lists first... What he needs to do now is start over from scratch. Delete the current md device and create a new one, then create a new XFS filesystem, and then restore his files from his backup device. Is there a Linux mdraid best practices document somewhere, that could help prevent folks from hosing themselves like this if they'd read it first? -- Stan