On 12/02/15 12:02, sunruh@xxxxxxxxxxxx wrote:
ok, so now the really important questions: once done, what files/stats
do i need to save off for the next time it craters?
I think the usual information requested is the following:
fdisk -lu /dev/sd?
mdadm --manage --query /dev/sd?
mdadm --manage --detail /dev/md*
mdadm --manage --examine /dev/sd?
cat /proc/mdstat
ls -l /dev/disk/by-id/
If you can keep a copy of all those things, then you will be much
further ahead than many people. Of course, RAID1 is just so much
easier/simpler than RAID5/RAID6, so usually you won't need any of that.
RAID1 is simple mirror, so if you have two disks, one with data, one
without, then you just need to decide which disk has the data, and start
with that.
It is even possible to start two MD arrays, one from each disk, and then
compare the contents to decide which one you want to keep.
Or, you can simply mount the device directly (skipping any MD data at
the beginning if needed).
Like I said, RAID1 is by far the simplest type of RAID if you want
redundancy and can fit your dataset onto a single device.
Glad you had a successful recovery :)
Regards,
Adam
--
Adam Goryachev Website Managers www.websitemanagers.com.au
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html