ballsface at gmail.com
Mon Jun 8 22:36:05 UTC 2009
Hello, I have a raid array that I created with:
mdadm /dev/md0 --create --auto yes -l 1 -n 2 /dev/sd[cd]
I would like to mount this on every boot automatically. Currently my
procedure to mount is:
Turn on computer
#mdadm --assemble /dev/md0 /dev/sdd
mdadm: /dev/md0 assembled from 1 drive - need all 2 to start it (use
--run to insist).
#mdadm --stop /dev/md*
mdadm: error opening /dev/md: Is a directory
mdadm: stopped /dev/md0
mdadm: stopped /dev/md_d0
mdadm: error opening /dev/md_d0p1: No such device or address
mdadm: error opening /dev/md_d0p2: No such device or address
mdadm: error opening /dev/md_d0p3: No such device or address
mdadm: error opening /dev/md_d0p4: No such device or address
#mdadm --assemble /dev/md0 /dev/sd[cd]
mdadm: /dev/md0 has been started with 2 drives.
For additional information, if I boot and try to run the command:
#mdadm /dev/md0 --create --auto yes -l 1 -n 2 /dev/sd[cd]
then in get...
mdadm: Cannot open /dev/sdc: Device or resource busy
mdadm: /dev/sdd appears to contain an ext2fs file system
size=156290816K mtime=Sun Jun 7 22:49:41 2009
mdadm: /dev/sdd appears to be part of a raid array:
level=raid1 devices=2 ctime=Sun Jun 7 22:46:46 2009
mdadm: create aborted
which is why I use the --stop command above.
I could not find the info on https://wiki.ubuntu.com/Raid in fact, I
can't even see where to edit -- this doesn't look like a real wiki!
Does anyone know how to cause this to mount automatically?
More information about the ubuntu-users