LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-26-2016, 06:38 AM   #1
cookkoo
LQ Newbie
 
Registered: Sep 2016
Posts: 4

Rep: Reputation: Disabled
mdadm: not enough to start the array while not clean - consider --force.


Hello, As i'm a newbie. My server has the issue with 1 HD and my hosting change the new HD, and tell me to config it by myself. Then i start to run and the details display as below:

CPU1: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (Cores 8)
Memory: 31823 MB
Disk /dev/sda: 6001 GB (=> 5589 GiB)
Disk /dev/sdb: 6001 GB (=> 5589 GiB)
Disk /dev/sdc: 6001 GB (=> 5589 GiB)
Disk /dev/sdd: 6001 GB (=> 5589 GiB)
Total capacity 21 TiB with 4 Disks

# cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md3 : active raid6 sda4[0] sdd4[3] sdb4[1]
9574343680 blocks super 1.2 level 6, 512k chunk, algorithm 2 [4/3] [UU_U]
bitmap: 0/36 pages [0KB], 65536KB chunk

md1 : active raid1 sda2[0] sdd2[3] sdb2[1]
523712 blocks super 1.2 [4/3] [UU_U]

md0 : active raid1 sda1[0] sdd1[3] sdb1[1]
16760832 blocks super 1.2 [4/3] [UU_U]

unused devices: <none>
root@rescue ~ # mdadm --assemble --scan
mdadm: /dev/md/2 assembled from 3 drives - not enough to start the array while not clean - consider --force.

Then i don't know, How to fix this ? Please help.

Regards,
 
Old 09-27-2016, 02:15 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,833

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
You have to add the new device to the array - see --add under manage mode. It should rebuild by itself.
 
Old 09-27-2016, 11:04 AM   #3
cookkoo
LQ Newbie
 
Registered: Sep 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hello syg00, Thank you for your suggestion. As i'm a newbie and not a programmer and don't know much in command line. Is it possible ? for you to login to my server and help to fix this ?
 
Old 09-27-2016, 10:28 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,833

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Nope. You should not even think of making a request/offer like that to a stranger.

You need to determine what the partition layout is for the new disk and make it match the others so you can fix all four arrays mdadm is showing, although probably only md2 and 3 really needs urgent attention.
Have a read through the Linux_Raid wiki for excellent background - there has to be a decent tutorial somewhere on the web too.
Post the output of these (use [code] tags)
Code:
fdisk -l
cat /etc/fstab

Last edited by syg00; 09-27-2016 at 10:32 PM. Reason: Make that four arrays (at least)
 
Old 09-28-2016, 01:37 AM   #5
Jjanel
Member
 
Registered: Jun 2016
Posts: 368

Rep: Reputation: 66
Suggestion for web-search: replace failed disk|drive raid* mdadm manage add

I *think/guess/vaguely-remember-from-15yr-ago* you could partition the new disk like:
sfdisk -d /dev/sda | sfdisk /dev/sdc (guessing sdc got replaced; be SURE first!)
And another *wild-guess*: (I don't know whether RAID1/4/5/6 matters here)
mdadm --manage /dev/md2 --add /dev/sdc (do NOT trust my *guess* [esp. md2] tho!)

Best wishes... (good *knowledge* [&info, not 'luck'] needed here!)
 
Old 09-28-2016, 04:37 AM   #6
cookkoo
LQ Newbie
 
Registered: Sep 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you so much, syg00 , Jjanel

As i've Data Backup in FTP Backup server. Then i've decided to install Fresh OS and everything. After restoration Data backup to web server. Everything is in processing. And i've SSH to check server, the results as below:

# cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md3 : active raid6 sda4[0] sdd4[3] sdc4[2] sdb4[1]
9574343680 blocks super 1.2 level 6, 512k chunk, algorithm 2 [4/4] [UUUU]
resync=DELAYED
bitmap: 36/36 pages [144KB], 65536KB chunk

md2 : active raid6 sda3[0] sdd3[3] sdc3[2] sdb3[1]
2111569920 blocks super 1.2 level 6, 512k chunk, algorithm 2 [4/4] [UUUU]
[==================>..] resync = 93.7% (990035584/1055784960) finish=46.2min speed=23707K/sec
bitmap: 3/8 pages [12KB], 65536KB chunk

md1 : active raid1 sda2[0] sdd2[3] sdc2[2] sdb2[1]
523712 blocks super 1.2 [4/4] [UUUU]
resync=DELAYED

md0 : active (auto-read-only) raid1 sda1[0] sdd1[3] sdc1[2] sdb1[1]
16760832 blocks super 1.2 [4/4] [UUUU]
resync=PENDING

Please help to suggestion to NEXT STEP. Regards,
 
Old 09-28-2016, 04:49 AM   #7
cookkoo
LQ Newbie
 
Registered: Sep 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
For more information, I've web site 3 Domain. And now, the web content data about 4TB excluded with OS System data. If i've plan to build disk array as below:

- 2 Disks RAID array (# 1-2 with 6TB/Disk) for OS System.
- 2 Disks RAID array (# 3-4 with 6TB/Disk) for web content data.

This is Bad or Good Idea. Please help to suggestion.
 
  


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
How to force stop a mdadm array? Red Squirrel Linux - Server 7 07-29-2014 06:38 AM
Raid 10 not assembling mdadm assembled from 2 drives - not enough to start the array Nemus Linux - Server 1 02-21-2011 12:27 AM
MDADM Help - "not enough to start the array while not clean - consider --force." DavidDiggs Linux - Server 2 03-27-2010 09:55 PM
mdadm create,, raid array is not clean dbj Linux - Server 2 11-16-2009 06:36 PM
mdadm clean install of four drives overwritting any previous raid5 disk array javaholic Linux - Server 15 10-13-2008 12:05 PM


All times are GMT -5. The time now is 08:12 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration