LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-10-2017, 06:07 PM   #1
road hazard
Member
 
Registered: Nov 2015
Posts: 241

Rep: Reputation: Disabled
Are these the exact steps to add drives to an MDADM RAID 6 XFS array?


Current state: /dev/md0 (comprised of 8 drives in a RAID 6 array XFS file system)
Future state: /dev/md0 (will be adding 4 more drives so a total of 12, RAID 6)

mdadm --add /dev/md0 /dev/sdk /dev/sdl /dev/sdm /dev/sdn
mdadm -v --grow --raid-devices=12 /dev/md0

And since I'm using XFS, after the sync is done, execute: xfs_growfs /dev/md0

Anything need adjusted in the fstab file? (I'm not on that PC now to check but if it's something obvious, like any references to 8 drives and switch it to 12, I can handle. But beyond that, any 'gotchas' I should watch out for?

PS The array is a data drive. My boot device is a SSD. Speaking of, once this is all said and done, is it a wise idea to keep a copy of the mdadm.conf file in the cloud or somewhere in case I need to reinstall Linux? (Disaster recovery and all.

I want to make 100% certain that's the right way because if I screw up the array and lose it, I'll need to restore
14+ TB of data and that's gonna take about 20+ hours of non-stop copying.
 
Old 12-11-2017, 02:06 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Whenever you work on a raid array, you should have a backup. The main purpose of raid is in the event of drive failure, you don't need to restore from backup. You can just pop in a new drive without taking the system down.

But you still need backups! Raid is not a substitute for backups. It's a way to avoid downtime. Your above commands look fine. I don't think you need the xfs_growfs command.
 
  


Reply

Tags
add, grow, mdadm



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
Changing XFS stripe size & width when growing an mdadm raid 5 array? Automatic Linux - Software 2 11-21-2013 04:06 PM
[SOLVED] mdadm: only give one device per ARRAY line: /dev/md/:raid and array laughing_man77 Linux - Hardware 4 03-23-2012 04:05 PM
mdadm: Removed two drives (still valid) from raid-5 and need to add them back in. mjtice Linux - Newbie 5 03-13-2011 04:00 PM
Raid 10 not assembling mdadm assembled from 2 drives - not enough to start the array Nemus Linux - Server 1 02-20-2011 11:27 PM
RAID mdadm cant add disks to array vockleya Linux - Software 4 09-13-2010 05:37 PM

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

All times are GMT -5. The time now is 01:33 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