I noticed that my OpenMediaVault (OMV) version was fairly out of date, so I decided to upgrade. I performed an in-place upgrade to v1.0 but, at some point in the upgrade, I lost network access. After doing some reading, I found that if I manually create the "/run/network" directory, I would get my network back. This worked, then completed the upgrade (can't remember the command now), but I lost the RAID. For whatever reason, it wouldn't assemble my RAID any more. Eventually, I decided to save off some config files, unplug my RAID, and upgrade with the v1.9 ISO. It loaded just fine. When I shut it down, plugged in my data drives, and tried to assemble the RAID, it was no better. I was finally able to assemble it with 3 of the 4 drives into the RAID 5, but I couldn't mount it. I've exhausted everything I've found to try from the web or my own experience, and am half sick with stress that I've lost my data. Below is some information that will hopefully prove useful. I think there may also be issues with the superblock of either the RAID or individual drives. Before trying OMV v1.9, I tried to restore a superblock for my 4th hard drive, that did not have an issue prior to the recent chaos, but it didn't work. I honestly don't recall what the error was at this point. Sorry for the wall of text, but is anyone able to help?
mdadm --examine /dev/md127
ZitatAlles anzeigen
/dev/md127:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : f5c065f5:4e188600:bd2c9d4f:aabc392e
Name : OMV-NAS:127 (local to host OMV-NAS)
Creation Time : Sun May 3 12:45:35 2015
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 11720035328 (5588.55 GiB 6000.66 GB)
Array Size : 5860148736 (5588.67 GiB 6000.79 GB)
Used Dev Size : 3906765824 (1862.89 GiB 2000.26 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
State : active
Device UUID : ce827f2a:5e915227:47327772:e2245925
Update Time : Mon May 4 16:25:01 2015
Checksum : bc32949c - correct
Events : 2
Layout : left-symmetric
Chunk Size : 512K
Device Role : spare
Array State : AAA. ('A' == active, '.' == missing)
mdadm --detail /dev/md127
ZitatAlles anzeigen
/dev/md127:
Version : 1.2
Creation Time : Tue May 5 17:42:14 2015
Raid Level : raid5
Array Size : 3906765824 (3725.78 GiB 4000.53 GB)
Used Dev Size : 1953382912 (1862.89 GiB 2000.26 GB)
Raid Devices : 3
Total Devices : 3
Persistence : Superblock is persistent
Update Time : Tue May 5 19:32:37 2015
State : clean, reshaping
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Reshape Status : 4% complete
Delta Devices : -1, (4->3)
Name : OMV-NAS:127 (local to host OMV-NAS)
UUID : 353afb78:aae4adf0:88709556:4f6c72ff
Events : 322
Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
1 8 32 1 active sync /dev/sdc
2 8 48 2 active sync /dev/sdd
mdadm.conf
Zitat
ARRAY /dev/md127 metadata=1.2 name=OMV-NAS:127 UUID=353afb78:aae4adf0:88709556:4f6c72ff
blkid
ZitatAlles anzeigen
/dev/sdb: UUID="353afb78-aae4-adf0-8870-95564f6c72ff" UUID_SUB="ab61bd1b-0f28-23f2-5c10-cabc0d572726" LABEL="OMV-NAS:127" TYPE="linux_raid_member"
/dev/sdc: UUID="353afb78-aae4-adf0-8870-95564f6c72ff" UUID_SUB="289d97d0-1b36-efd4-7a0e-fe9e24dc4edc" LABEL="OMV-NAS:127" TYPE="linux_raid_member"
/dev/sda1: UUID="a37c7912-2b77-4015-a492-48baa013c366" TYPE="ext4"
/dev/sda5: UUID="c7e184f5-ed7d-48fc-ab29-bcd4102351f3" TYPE="swap"
/dev/sdd: UUID="353afb78-aae4-adf0-8870-95564f6c72ff" UUID_SUB="2fb57910-8ddf-0a10-171b-9bc7f2841049" LABEL="OMV-NAS:127" TYPE="linux_raid_member"
/dev/md127: UUID="f5c065f5-4e18-8600-bd2c-9d4faabc392e" UUID_SUB="ce827f2a-5e91-5227-4732-7772e2245925" LABEL="OMV-NAS:127" TYPE="linux_raid_member"
fdisk -l
ZitatAlles anzeigen
Disk /dev/sda: 164.7 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders, total 321672960 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000161f7
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 308563967 154280960 83 Linux
/dev/sda2 308566014 321671167 6552577 5 Extended
/dev/sda5 308566016 321671167 6552576 82 Linux swap / Solaris
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/sdd doesn't contain a valid partition table
fdisk: unable to read /dev/sde: Inappropriate ioctl for device
/etc/fstab (just the relevant line for the array)
Zitat
UUID=f5c065f5-4e18-8600-bd2c-9d4faabc392e /media/raid-storage ext4 defaults 0 2
mount -a
Zitat
mount: wrong fs type, bad option, bad superblock on /dev/md127,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so