needs journal recovery

Discussion in 'Technical' started by germinator, Mar 19, 2011.

  1. germinator

    germinator New Member

    Add to Raid

    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:
    Code:
    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
     
    Last edited: Mar 19, 2011
  2. falko

    falko Super Moderator ISPConfig Developer

    If your new hard drive is /dev/sdb, you can configure RAID1 as follows (also see http://www.howtoforge.com/how-to-se...ystem-incl-grub-configuration-debian-lenny-p4 ):

    Code:
    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

    Code:
    grub
    and install the bootloader on both HDDs:

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

Share This Page