LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mdadm: flag device as write-mostly on pre-existing array (https://www.linuxquestions.org/questions/linux-general-1/mdadm-flag-device-as-write-mostly-on-pre-existing-array-511645/)

zazoo24601 12-18-2006 11:39 AM

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

marcosbocca 08-15-2016 12:22 PM

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.


All times are GMT -5. The time now is 04:58 PM.