PDA

View Full Version : needs journal recovery


germinator
19th March 2011, 11:34
Hello Community,

I have had a problem with a harddrive of my server .. my provider exchanged it but now theres still the unmounted flag (or whatever its called) in the raid status of ISPConfig (3.0.3.2)
it looks like this:

Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid1 sda3[0]
730202368 blocks [2/1] [U_]

md1 : active raid1 sda2[0]
264960 blocks [2/1] [U_]

md0 : active raid1 sda1[0]
2102464 blocks [2/1] [U_]

unused devices:


I have googled it but have not been able to find an answer that worked for me.

thanks,

Germinator

falko
20th March 2011, 21:05
If your new hard drive is /dev/sdb, you can configure RAID1 as follows (also see http://www.howtoforge.com/how-to-set-up-software-raid1-on-a-running-lvm-system-incl-grub-configuration-debian-lenny-p4 ):

sfdisk -d /dev/sda | sfdisk /dev/sdb

mdadm --zero-superblock /dev/sdb1
mdadm --zero-superblock /dev/sdb2
mdadm --zero-superblock /dev/sdb3

mdadm -a /dev/md0 /dev/sdb1
mdadm -a /dev/md1 /dev/sdb2
mdadm -a /dev/md2 /dev/sdb3

Then run

grub

and install the bootloader on both HDDs:

root (hd0,0)
setup (hd0)
root (hd1,0)
setup (hd1)
quit