Dear opensuse people,
After a long oss journey that has taken me from bsd through ubuntu and linux mint I finally settled on opensuse 12.1 with Lxde. I never felt happier also because I managed to get my raid array working and the system booted. For months I used the system and was thinking of finally getting in my pocket and donating to opensuse (or just buy the product), when I started noticing strange things. I knew I had edited and updated a openoffice calc file but when I rebooted the next day, I saw the old version of the file. I looked a little troubled but neglected it for a while because after a few reboots (I shutdown my machine after I’m ready with it) I noticed my new openoffice calc file reappeared and was thinking that maybe I was imagining things.
But the suspicious feeling never left me.
Last week I decided to check things out and I rebooted a few times and to my dismay I saw my files in my home folder change right before my eyes. That’s when I knew I had some big problems. Decided to digg deeper I hit /proc/mdstat and from the output I guess my gut feeling was right:
Personalities : [raid1] [raid0] [raid10] [raid6] [raid5] [raid4]
md2 : active raid1 sdb3[1]
109050808 blocks super 1.0 [2/1] [_U]
bitmap: 1/1 pages [4KB], 65536KB chunkmd1 : active raid1 sda2[0] sdb2[1]
5244916 blocks super 1.0 [2/2] [UU]
bitmap: 0/1 pages [0KB], 65536KB chunkmd0 : active raid1 sda1[0] sdb1[1]
41993144 blocks super 1.0 [2/2] [UU]
bitmap: 1/1 pages [4KB], 65536KB chunkunused devices: <none>
The [_U] after md2 is not cool, but I don’ t know what it represents.
cat /etc/fstab gives:
/dev/disk/by-id/md-uuid-25464bfb:cee4b7cf:8c08ad34:ee50bfed swap swap defaults 0 0
/dev/disk/by-id/md-uuid-64fd68df:578651cf:86b6d5de:290bb06c / ext4 acl,user_xattr 1 1
/dev/disk/by-id/md-uuid-cc8c545c:0c03c7a4:40ab3b5b:2852ed4d /home ext4 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
df -h gives:
Filesystem Size Used Avail Use% Mounted on
rootfs 40G 7.5G 30G 20% /
devtmpfs 1.8G 44K 1.8G 1% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 632K 1.9G 1% /run
/dev/md0 40G 7.5G 30G 20% /
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 1.9G 0 1.9G 0% /media
tmpfs 1.9G 632K 1.9G 1% /var/run
tmpfs 1.9G 632K 1.9G 1% /var/lock
/dev/md2 103G 34G 64G 35% /home
As I expected, my home directory is on /dev/md2 that shows the strange [_U] in the /proc/mdstat output.
Now, if I’m correct that my raid 1 array has been screwed (don’ t know what caused this but that’ s another story), my question boils down to this:
How can I solve this without reinstalling everything?
This really annoys me as I thought I had finally figured it out. If this does not work, I’m considering buying new gear with ultra power saving capabilities and setting up a server running freebsd with gmirror as that software raid solution has never failed me. But hope that is not necessary and someone on this list can help me get my things together.
Thanks in advanced.