LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-29-2016, 12:54 AM   #1
anctop
Member
 
Registered: Feb 2010
Posts: 99

Rep: Reputation: Disabled
resizing a RAID-1 array


Hi,

My system has a RAID-1 array of two partitions :

Code:
/dev/raid5 - /dev/sda5
             /dev/sdb5
I've recently acquired two larger HDs for upgrade replacement.

Suppose that the following steps have been taken :
  • One new HD has been installed & synchronized.
  • The two old HDs are removed.
  • The system is booted into the rescue environment (/dev/raid5 is degraded & un-mounted).
In order to enlarge the size of the array, I can think of two feasible approaches :

1. Use "mdadm --grow --size=max /dev/raid5", then e2fsck & resize2fs on the array.

2. Stop & re-create the array with the same name.

I'm wondering which approach is safer.

Could someone help me choosing, or suggest some alternatives ?
Thanks in advance.
 
Old 02-29-2016, 01:29 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I always find the RAID wiki a good place to look. This article for example.
 
  


Reply



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
unable to unmount raid array or unable to stop raid array karthik-naren Linux - Newbie 3 07-09-2013 01:54 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
[SOLVED] Resizing linux raid 1 array lpallard Linux - Software 7 09-20-2011 11:34 AM
Resizing/growing RAID partition dadevilx Linux - General 1 03-22-2009 02:41 AM
Resizing ext3 partitions on RAID5 array greenhornet Linux - General 2 04-09-2002 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:37 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
Open Source Consulting | Domain Registration