LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-24-2004, 11:51 AM   #1
retrev
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
add a new disk to raid1 array


I'm in the processes of converting a 2 scsi disk (both 18gb identical drives) running LVM to LVM on software raid1. I created a raid array on the spare, added /dev/md1 to the LVM vg, migrated the extends and removed the other drive.

I tried to add the original drive into the raid set and realized I accidentally set the array size to 1 disk. When I add the new disk, it is added as a spare, not a mirror.

Is there a way to change the size of a raid1 array (using mdadm or raidtools) so I can add the mirror disk properly? I'd like to avoid going through the LVM migration step two more times.

I'd like to do this live (this the system disk so unmounting is not possible) but I can boot a rescue CD and migrate that way if necessary.
 
Old 04-08-2007, 02:57 AM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 33
Code:
man mdadm:

-n --raid-devices=

specify the numer..... blablabla

This number can only be changed using --grow for RAID1 arrays, and only on kernels which provide necessary support.
so it seems you could add disks, but I've never done that. get a backup before you try.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting Slackware 9.1 from VIA VT8237 SATA RAID1 array thefiddler Slackware 3 06-20-2009 09:06 AM
How to boot from the 3rd disk while RAID1? Chowroc Linux - Software 1 11-07-2005 08:56 AM
Add Software RAID1 to SuSE 8.2 brucehohl Linux - Hardware 0 11-12-2003 07:42 AM
Setting up a RAID1 config (Disk Mirroring) ajpalm Linux - Newbie 1 11-18-2002 04:42 AM
How to add RAID1 without a reboot G../ Linux - Newbie 1 07-20-2002 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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