You are not logged in.

#1 2015-01-03 23:55:13

embmicro
Member
Registered: 2014-07-30
Posts: 23

[SOLVED] Mounting RAID1

I'm trying to setup a RAID1 array with two 3TB drives. Here are the steps I've currently taken.

Hook up both drives to my system.
Boot into the BIOS and enable RAID.
Setup a RAID1 array in the BIOS.
Boot into Arch
Format the array with EXT4 (the array showed up as /dev/md126)
Mount the array to /mnt/raid
Copy files from old drive over
Add the drive to /etc/fstab with the following

/dev/md126p1	/mnt/hdd  	ext4      	rw,relatime,data=ordered,x-systemd.automount	0 2
/mnt/hdd/Music                              /home/justin/Music     none bind 0 0
/mnt/hdd/Pictures                           /home/justin/Pictures  none bind 0 0
/mnt/hdd/Videos                             /home/justin/Videos    none bind 0 0
/mnt/hdd/Backups                            /home/justin/Backups   none bind 0 0

When I boot, I get the error

[FAILED] Failed to mount /mnt/hdd.
See "systemctl status mnt-hdd.mount" for details.

It then enters emergency mode and hitting ctrl-D makes it boot just fine.

After booting, running that command give me

● mnt-hdd.mount - /mnt/hdd
   Loaded: loaded (/etc/fstab)
   Active: active (mounted) since Sat 2015-01-03 15:43:53 PST; 2min 31s ago
    Where: /mnt/hdd
     What: /dev/md126p1
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)
  Process: 643 ExecMount=/bin/mount -n /dev/md126p1 /mnt/hdd -t ext4 -o rw,relatime,data=ordered,x-systemd.automount (code=exited, status=0/SUCCESS)

The array is also mounted exactly how I want it.

How can I get it to stop failing at boot even though it mounts properly after hitting ctrl-D?

Last edited by embmicro (2015-01-04 18:43:46)

Offline

#2 2015-01-04 00:11:50

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Mounting RAID1

Does this help?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2015-01-04 00:29:44

embmicro
Member
Registered: 2014-07-30
Posts: 23

Re: [SOLVED] Mounting RAID1

I don't think I'm using dmraid but rather mdadm. Although I could be missing something.

Running mdadm -D /dev/md126 gives the following

mdadm -D /dev/md126
/dev/md126:
      Container : /dev/md/imsm0, member 0
     Raid Level : raid1
     Array Size : 2930264064 (2794.52 GiB 3000.59 GB)
  Used Dev Size : 2930264196 (2794.52 GiB 3000.59 GB)
   Raid Devices : 2
  Total Devices : 2

          State : active, resyncing 
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

  Resync Status : 11% complete


           UUID : 0c84a294:617c196a:90cf7ea4:b42ecd0d
    Number   Major   Minor   RaidDevice State
       1       8       32        0      active sync   /dev/sdc
       0       8       48        1      active sync   /dev/sdd

The Resync Status seems to be stuck at 11% (or at least it has been for 5-10min). Any ideas if this indicates a problem?

Both drives are brand new so should be good.

EDIT: It's also worth mentioning that I'm not booting to the array but a separate SSD.

Last edited by embmicro (2015-01-04 00:34:23)

Offline

#4 2015-01-04 18:43:29

embmicro
Member
Registered: 2014-07-30
Posts: 23

Re: [SOLVED] Mounting RAID1

I switched to using software raid and everything just works now.

Offline

Board footer

Powered by FluxBB