diff options
author | 2017-03-27 10:51:33 -0700 | |
---|---|---|
committer | 2017-03-27 12:02:33 -0700 | |
commit | 0bb0c10500ba634216238c40e1eeddce92b4d488 (patch) | |
tree | f7bca55d0d048f27362a6d65a2ef3be6eb70b1e6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | md/raid5-cache: fix payload endianness problem in raid5-cache (diff) | |
download | wireguard-linux-0bb0c10500ba634216238c40e1eeddce92b4d488.tar.xz wireguard-linux-0bb0c10500ba634216238c40e1eeddce92b4d488.zip |
md/raid5: use consistency_policy to remove journal feature
When journal device of an array fails, the array is forced into read-only
mode. To make the array normal without adding another journal device, we
need to remove journal _feature_ from the array.
This patch allows remove journal _feature_ from an array, For journal
existing journal should be either missing or faulty.
To remove journal feature, it is necessary to remove the journal device
first:
mdadm --fail /dev/md0 /dev/sdb
mdadm: set /dev/sdb faulty in /dev/md0
mdadm --remove /dev/md0 /dev/sdb
mdadm: hot removed /dev/sdb from /dev/md0
Then the journal feature can be removed by echoing into the sysfs file:
cat /sys/block/md0/md/consistency_policy
journal
echo resync > /sys/block/md0/md/consistency_policy
cat /sys/block/md0/md/consistency_policy
resync
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions