LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-03-2010, 08:40 AM   #1
adrian_stephens
LQ Newbie
 
Registered: Apr 2005
Location: Cambridge, UK
Distribution: Fedora Core (10)
Posts: 17

Rep: Reputation: 0
How do I remove --write-mostly flag from linux mdadm raid1? (FC12)


FC12 i686 running on Core 2 processor.
2 1TB SATA disks attached, each split into identical partitions
(boot, root, spare-root, lvm). Each partition is mirrored raid1
using mdadm.

I had set one of my disks (sdb) raid characteristics to --write-mostly.
(in a failed attempt to get it to spin down and reduce noise/heat).
Disk sda has gone bad in situ, but works when I move it out to an external USB2 disk enclosure.

So each of my md devices has the old sdb marked write-mostly, and the old sda connected by usb. This should direct most read accesses to the slower device.

I'd like to remove the --write-mostly flag.

Is there any way to do this short of re-initializing the partion and copying. I don't want to do this for two reasons: 1. Slow to copy 1TB, 2. I don't want to entrust my only copy of data to my suspect old sda.

Thanks for any help / hints.

Adrian Stephens, Cambridge UK.
 
Old 02-04-2010, 02:18 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Use the '--readwrite' flag when adding the device to the array. See 'man mdadm'.
 
Old 02-06-2010, 02:52 AM   #3
adrian_stephens
LQ Newbie
 
Registered: Apr 2005
Location: Cambridge, UK
Distribution: Fedora Core (10)
Posts: 17

Original Poster
Rep: Reputation: 0
Hmm. Thanks for the response, but I don't think you're right. The --readwrite flag applies to the array. The --write-mostly flag applies to a component of that array. -- Adrian
 
  


Reply

Tags
mdadm, raid


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
mdadm raid1 both bootable chiendarret Linux - Server 1 03-09-2009 08:53 AM
Migrate to a raid1 with mdadm Ossar Linux - Software 2 08-19-2008 12:55 PM
mdadm: flag device as write-mostly on pre-existing array zazoo24601 Linux - General 0 12-18-2006 12:39 PM
Software RAID1 with mdadm bujecas Debian 0 10-26-2006 10:56 AM
raid1 using mdadm? help plz akadidm Linux - Hardware 3 06-09-2005 05:58 AM


All times are GMT -5. The time now is 07:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration