| To: | Knuth Posern <posern@xxxxxxxxxxxxxxxxxxxxxxxxx>, <linux-xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: HELP!!! |
| From: | Seth Mos <knuffie@xxxxxxxxx> |
| Date: | Tue, 16 Oct 2001 11:05:21 +0200 |
| Cc: | <posern@xxxxxxxxxxxxxxxxxxxxxxxxxx> |
| In-reply-to: | <Pine.LNX.4.33.0110160151240.4568-100000@lagos> |
| Sender: | owner-linux-xfs@xxxxxxxxxxx |
At 02:47 16-10-2001 +0200, Knuth Posern wrote:
Hi.
I built the raid half a year ago. Formatted it with XFS (and a 2.4.5er kernel). At the moment I use 2.4.10-xfs. This should not happen with a md raid5. This means corruption. Normally when a disk fails in a md raid 1/5 set the OS is unaffected. XFS or not. This is the first alarming sign. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I then switched to runlevel 0: ____________________________________________________________________________ Give root password for maintenance (or type Control-D for normal startup): jolie:~# umount /raid You should have had errors in your log before unmounting is what my intuition says. xfs_unmount: xfs_ibusy says error/16 XFS unmount got error 16 linvfs_put_super: vfsp/0xdf467520 left dangling! VFS: Busy inodes after unmount. Self-destruct in 5 seconds. Have a nice day... jolie:~# mount /dev/hda3 on / type ext2 (rw,errors=remount-ro,errors=remount-ro) proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/md0 on /mnt/raid type xfs (rw) jolie:~# lsof ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The lsof did NOT show any open files on /mnt/raid. So I tried again to unuount /mnt/raid: _____________________________________________________________________________ jolie:~# jolie:~# umount /mnt/raid umount: /mnt/raid: not mounted ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ But now it was unmounted already?! It was unmounted, with errors that is. That message you got with inodes left dangling was the result from a unclean unmount. So I tried to mount it...
This means it at least needs repair. Sometimes xfs_repair can recover a secondary superblock. I logged in and I edited the /etc/raidtab to have a SPARE-DISC:
I connected an identical harddrive (like the other raid-harddiscs) as /dev/hdc.
And rebooted again. - without any changes.
So I connected the harddisc from /dev/hdc on /dev/hde (and edited the /etc/raidtab to be as it was before (without spare-disks)!). Don't touch the raidtab file when something goes wrong. Unless you really know what you are doing it will make things worse then it was. And rebooted.
And rebooted again - But md0 had an "Failed autostart of /dev/md0" again. That is normal. It does note rebuild fully automatically. You have to instruct it yourself. And the Software-RAID-Howto told me to "raidhotadd /dev/md0 /dev/hde1".
Which I tried but it said somehting like: "/dev/md0 - no such raid is running".
So I tried to get /dev/md0 RUNNING again.
So I tried:
And tried again to hotadd the /dev/hde1:
___________________________________________________________________________ jolie:~# raidhotadd /dev/md0 /dev/hde1 md: trying to hot-add hde1 to md0 ... /dev/md0: can not hot-add disk: disk busy! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Then I checked /proc/mdstat. Where it said about reconstructing - which sounds hopefully good... ?!
It just synced random parts of the other disks and constructed parity out of that. What can I do? - Is my data lost? - if so: Is there ANY CHANCE to get at least SOME of it BACK SOMEHOW (it doesnt matter how difficult)!?
???
You can try xfs_repair and see if it shows up anything or repair anything at all but I don't have high hopes. Cheers -- Seth Every program has two purposes one for which it was written and another for which it wasn't I use the last kind. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: HELP!!!, Matteo Centonza |
|---|---|
| Next by Date: | Re: FS corruption with 8 exabyte sized file., Utz Lehmann |
| Previous by Thread: | Re: HELP!!!, Matteo Centonza |
| Next by Thread: | Re: HELP!!!, Posern |
| Indexes: | [Date] [Thread] [Top] [All Lists] |