LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-01-2016, 02:39 AM   #1
WhatTheL
LQ Newbie
 
Registered: Dec 2016
Posts: 5

Rep: Reputation: Disabled
Create RAID 1 devices --device or resource busy error


hi,

I am using a RHEL 7.2 OS using SATA disks.
--One disk as the OS
--4 disks as the data disk
intention is to create 2 pairs of RAID 1
I have earlier performed the steps of preparing the disks for raid by removing any previous raid settings and preparing drive partitioning.
i.e. the steps 1 and 2 based on this URL :
http://www.tecmint.com/create-raid1-in-linux/

Some of the disks were used as the RAIDZ2 data disks for a FREENAS previously,
but should have been wiped clean.

when i entered "mdadm -A -s"
Output: " mdadm: No arrays found in config file or automatically"
However,when I tried proceeding to create the RAID 1 settings,
"mdadm --create /dev/md0 --level=mirror --raid-devices=2 /dev/sd[b-c]1"
I received this output:
"mdadm: You haven't given enough devices (real or missing) to create this array"

Could the devices have already been created? or there is some old settings I need to remove?

Any advice appreciated.
 
Old 12-02-2016, 10:11 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 3,929

Rep: Reputation: 1183Reputation: 1183Reputation: 1183Reputation: 1183Reputation: 1183Reputation: 1183Reputation: 1183Reputation: 1183Reputation: 1183
You say in the title that your error is "device or resource busy". That error should name the busy drive. Make sure you don't have a vg or lvm still defined, and that there are no mounted filesystems on the drive.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mdadm raid inactive, assemble fails with Device or resource busy blackman890 Linux - Server 7 12-14-2014 05:43 PM
Failed to stop array: device or resource busy RAID/DMCrypt eponymous Linux - Software 0 12-08-2012 05:45 PM
Error opening PCM device Device or resource busy Herbivore Linux - Newbie 2 08-23-2008 02:45 AM
Boot cd initrd error - pivot_root: Device or resource busy fotoguy Linux - Software 2 08-03-2006 08:44 PM
Device or resource busy error obulpathi Linux - Laptop and Netbook 1 01-20-2006 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration