Re: Array inexplicably degrades itself, but no stale objects to remove
Bastiaan <[email protected]> Fri, 28 Dec 2007 22:58:22 +0100
| Newsgroups | gmane.linux.evms.devel |
|---|---|
| Message-ID | <[email protected]> |
Ryan Churches wrote: > Every now and then (every few months) my mirroring raid array degrades > itself. I have no idea how it happens, or why. If I'm lucky I can (IIRC) > "remove stale object" then "add object" and voila. Sometimes this is not > the case. > > My setup is as follows: Gentoo Linux 64bit SMP. sda1, 2, and 3 are > mirrored to sdb1, 2, and 3. sda2 is also in a lvm2 storage container. > This is the typical setup recommended by the gentoo wiki as of a few > months ago. > > In the past the only way Ive been able to repair this has been to > essentially back up my root directory and and rebuild it. I am sick of > doing that, and now that I am positive this is just going to keep > happening it might be good to fix the underlying problem. > > First, and perhaps not related, when I start evms I always get this > mesasge. > > > LVM2: Object sdb3 has an LVM2 PV label and header, but the recorded size > of the object (75007232 sectors) does not match > the actual size (75007485 sectors). Please indicate whether or not sdb3 is > an LVM2 PV. > > If your container includes an MD RAID region, it's possible that LVM2 has > found the PV label on one of that region's > child objects instead of on the MD region itself. If this is the case, > then object sdb3 is most likely NOT one of the > LVM2 PVs. > > Choosing "no" here is the default, and is always safe, since no changes > will be made to your configuration. Choosing > "yes" will modify your configuration, and will cause problems if it's not > the correct choice. The only time you would > really need to choose "yes" here is if you are converting an existing > container from using the LVM2 tools to using EVMS, > and the container is NOT created from an MD RAID region. If you created > and manage your containers only with EVMS, you > should always be able to answer "no". > > If you answer "no" and your volumes are correctly discovered and > activated, you may disable this message in the future by > editing the EVMS config file and setting the device_size_prompt option to > "no" in the lvm2 section. > The following responses are available: > *1 = No, it is not a PV. > > > (Then I get the same message for sda3) > > Then I get this message > > MDRaid1RegMgr: Region md/md1 is currently in degraded mode. To > bring it back to normal state, add 0 new spare device to replace the > faulty or missing device. > > MDRaid1RegMgr: Region md/md2 is currently in degraded mode. To bring it > back to normal state, add 0 new spare device to > replace the faulty or missing device. > > As Ive said, I have no idea how or why this happen, it just does. > > To confirm, when i cat /proc/mdstat > > claudia src # cat /proc/mdstat > Personalities : [linear] [raid0] [raid1] [multipath] [faulty] > md2 : active raid1 dm-3[0] > 37503616 blocks [2/1] [U_] > > md1 : active raid1 dm-7[0] > 1052160 blocks [2/1] [U_] > > md0 : active raid1 dm-1[1] dm-0[0] > 521984 blocks [2/2] [UU] > > unused devices: <none> > > So, I'm scared to hose my data so I'm backing up. While I do that, I'm > wondering if anyone knows how I can fix this once and for all. I've had the same trouble with gentoo-amd64, seemed like it only happens when using evms for your root (/) and / or boot (/boot) partition. Fiddled with it for about a week, the gave up and used plain md devices. EVMS seems dead anyway... Bas ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Evms-devel mailing list [email protected] To subscribe/unsubscribe, please visit: https://lists.sourceforge.net/lists/listinfo/evms-devel