nsbin/buch_start.sh
Nico Schottelius 19e00978f9 smaller updates
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-01-06 10:49:58 +01:00

28 lines
809 B
Bash
Executable file

#devs='/dev/sde /dev/sdf /dev/sdg'
devs="/dev/sde /dev/sdc /dev/sdd"
devs="/dev/sdb /dev/sdc /dev/sdd"
devs="/dev/sdc /dev/sdb"
set -e
set -x
mdadm --assemble /dev/md0 $devs
cryptsetup luksOpen /dev/md0 raid
fsck /dev/mapper/raid
mount /home/server/raid
exit 0
#mdadm --assemble /dev/md0 /dev/sde /dev/sdf /dev/sdg
#cryptsetup luksOpen /dev/md0 raid
[19:25] denkbrett:~nico# mdadm --assemble --scan
/dev/md0: File exists
mdadm: /dev/md/0 has been started with 2 drives (out of 3).
mdadm: /dev/md/0 already active, cannot restart it!
mdadm: /dev/md/0 needed for /dev/sdc...
mdadm: /dev/md/0 already active, cannot restart it!
mdadm: /dev/md/0 needed for /dev/sdc...
[19:25] denkbrett:~nico# mdadm --manage -a /dev/md0 /dev/sdc
mdadm: re-added /dev/sdc
[19:25] denkbrett:~nico#