The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Hardware Raid related problem girish.batra SUN Solaris 4 09-04-2008 10:56 AM
Benchmarking hardware RAID vs. Linux kernel software RAID iBot UNIX and Linux RSS News 0 07-15-2008 05:10 AM
Problem replace disk with RAID-5 volumes bonovox Filesystems, Disks and Memory 0 05-26-2008 10:02 AM
HPUX 10.20 and RAID ARENA EX3 shutdown problem nleuenbe Filesystems, Disks and Memory 1 09-27-2005 09:25 AM
2-Ch RAID Problem in SCO Open Server pko60 Filesystems, Disks and Memory 1 11-25-2002 01:03 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-05-2008
alirezan alirezan is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 22
RAID setup automation problem

Hi guys,

I'm trying to write a small script that sets up RAID using MDADM without asking user for any input.
Here's what I'm doing:
Code:
start=`mdadm --create $2 --level=$3 --raid-devices=$4 $5 $6 <<  MAYDAY
y
MAYDAY`
When I it, I get this
Code:
./redundancy -setup /dev/md0 1 2 /dev/files/test0 /dev/files/test1

MDADM Module successfully loaded. Starting the RAID Array.
mdadm: /dev/files/test0 appears to be part of a raid array:
    level=raid1 devices=2 ctime=Thu Aug 28 18:56:33 2008
mdadm: /dev/files/test1 appears to be part of a raid array:
    level=raid1 devices=2 ctime=Thu Aug 28 18:56:33 2008
Continue creating array? Continue creating array? (y/n) Continue creating array? (y/n) mdadm: create aborted.
Can someone help me fix this please?
Thank you
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0