LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-18-2006, 12:39 PM   #1
zazoo24601
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?

Thanks!
Pat
 
Old 08-15-2016, 01:22 PM   #2
marcosbocca
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 https://bugs.debian.org/cgi-bin/bugr...cgi?bug=628668 .
It works for me. Context: Ubuntu 16.04, RAID1, one internal HD and other external USB 3.
 
  


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


All times are GMT -5. The time now is 05:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration