Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-18-2006, 11:39 AM   #1
LQ Newbie
Registered: Apr 2006
Posts: 5

Rep: Reputation: 0
mdadm: flag device as write-mostly on pre-existing array

The title says it all...
I have mdadm managing a RAID1 array between IDE partitions and USB. I want to flag the USB partitions as --write-mostly but don't want to resync my array.. I haven't tried it yet but the man says it works for --build --create and --add... what about a --grow or --re-add? Is it possible to mark the device as write-mostly after the initial creation?

Old 08-15-2016, 12:22 PM   #2
LQ Newbie
Registered: Aug 2016
Posts: 2

Rep: Reputation: Disabled
echo -writemostly >/sys/block/...

I had the same problem and I found this solution:
echo -writemostly >/sys/block/md127/md/dev-md2/state
I found it at .
It works for me. Context: Ubuntu 16.04, RAID1, one internal HD and other external USB 3.


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
Trying to remove current array and create a new one using mdadm ghostz00 Linux - Hardware 0 12-09-2006 09:47 AM
Installing Fedora on a pre-existing XP PC drizkol General 14 02-07-2006 04:53 PM
mdadm (get my array working again) dadriver Linux - Software 1 01-20-2006 06:56 PM
using mdadm to grow an existing RAID 1 array kevburger Linux - Hardware 1 08-18-2005 08:17 AM
mdadm problems with growing an existing array mjcramer Fedora 2 07-11-2005 08:28 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration