Re: [PATCH 2/2] mdadm: remove journal with "remove-journal"

6 messages, 3 authors, 2017-11-20 · open the first message on its own page

Re: [PATCH 2/2] mdadm: remove journal with "remove-journal"

From: Larkin Lowrey <hidden>
Date: 2017-08-30 15:54:36

I don't see any evidence that either of these two patches made it to 
git. Is this the correct repo?

git.kernel.org/pub/scm/utils/mdadm/mdadm.git

--Larkin

Re: [PATCH 2/2] mdadm: remove journal with "remove-journal"

From: Song Liu <hidden>
Date: 2017-08-31 17:51:01

Hi Larkin,

We didn't ship this patch. Instead, we decide to use sysfs entry

/sys/block/mdXXX/md/consistency_policy

You can find the patch at:

https://marc.info/?l=linux-raid&m=149063896208043

Thanks,
Song

Re: [PATCH 2/2] mdadm: remove journal with "remove-journal"

From: Larkin Lowrey <hidden>
Date: 2017-09-01 14:56:19

Thanks!

--Larkin

On 8/31/2017 1:51 PM, Song Liu wrote:
Hi Larkin,

We didn't ship this patch. Instead, we decide to use sysfs entry

/sys/block/mdXXX/md/consistency_policy

You can find the patch at:

https://marc.info/?l=linux-raid&m=149063896208043

Thanks,
Song
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/2] mdadm: remove journal with "remove-journal"

From: Larkin Lowrey <hidden>
Date: 2017-11-16 17:35:06

Is it not possible to permanently remove a journal and return to resync 
mode?

Here's what I tried:

#  mdadm --readonly /dev/md124

# cat /proc/mdstat
Personalities : [raid10] [raid0] [raid6] [raid5] [raid4]
md124 : active (read-only) raid5 md123[7] md127p4[15](J) sdp1[13] 
sdl1[10] sdg1[12] sdf1[11] sdo1[14] sdj1[8] sdq1[9] md122[6]
       62509129728 blocks super 1.2 level 5, 512k chunk, algorithm 2 
[9/9] [UUUUUUUUU]

# mdadm /dev/md124 --fail /dev/md127p4
mdadm: set /dev/md127p4 faulty in /dev/md124

# mdadm /dev/md124 --remove /dev/md127p4
mdadm: hot removed /dev/md127p4 from /dev/md124

# cat /sys/block/md124/md/consistency_policy
journal

# echo resync > /sys/block/md124/md/consistency_policy

# cat /sys/block/md124/md/consistency_policy
resync

# mdadm --stop /dev/md124
mdadm: stopped /dev/md124

# mdadm --assemble /dev/md124 /dev/md12[23] /dev/sd[goqpjfl]1
mdadm: Not safe to assemble with missing or stale journal device, 
consider --force.

--Larkin

On 8/31/2017 1:51 PM, Song Liu wrote:
Hi Larkin,

We didn't ship this patch. Instead, we decide to use sysfs entry

/sys/block/mdXXX/md/consistency_policy

You can find the patch at:

https://marc.info/?l=linux-raid&m=149063896208043

Thanks,
Song
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/2] mdadm: remove journal with "remove-journal"

From: Song Liu <hidden>
Date: 2017-11-16 17:55:31

On Nov 16, 2017, at 9:35 AM, Larkin Lowrey [off-list ref] wrote:

Is it not possible to permanently remove a journal and return to resync mode?

Here's what I tried:

#  mdadm --readonly /dev/md124

# cat /proc/mdstat
Personalities : [raid10] [raid0] [raid6] [raid5] [raid4]
md124 : active (read-only) raid5 md123[7] md127p4[15](J) sdp1[13] sdl1[10] sdg1[12] sdf1[11] sdo1[14] sdj1[8] sdq1[9] md122[6]
      62509129728 blocks super 1.2 level 5, 512k chunk, algorithm 2 [9/9] [UUUUUUUUU]

# mdadm /dev/md124 --fail /dev/md127p4
mdadm: set /dev/md127p4 faulty in /dev/md124

# mdadm /dev/md124 --remove /dev/md127p4
mdadm: hot removed /dev/md127p4 from /dev/md124

# cat /sys/block/md124/md/consistency_policy
journal

# echo resync > /sys/block/md124/md/consistency_policy

# cat /sys/block/md124/md/consistency_policy
resync
Could you please try the following command here:

echo active > /sys/block/md124/md/array_state

# mdadm --stop /dev/md124
mdadm: stopped /dev/md124

# mdadm --assemble /dev/md124 /dev/md12[23] /dev/sd[goqpjfl]1
mdadm: Not safe to assemble with missing or stale journal device, consider --force.

Re: [PATCH 2/2] mdadm: remove journal with "remove-journal"

From: Larkin Lowrey <hidden>
Date: 2017-11-20 16:04:37

On 11/16/2017 12:55 PM, Song Liu wrote:
quoted
On Nov 16, 2017, at 9:35 AM, Larkin Lowrey [off-list ref] wrote:

# mdadm /dev/md124 --fail /dev/md127p4
mdadm: set /dev/md127p4 faulty in /dev/md124

# mdadm /dev/md124 --remove /dev/md127p4
mdadm: hot removed /dev/md127p4 from /dev/md124

# cat /sys/block/md124/md/consistency_policy
journal

# echo resync > /sys/block/md124/md/consistency_policy

# cat /sys/block/md124/md/consistency_policy
resync
Could you please try the following command here:

echo active > /sys/block/md124/md/array_state

quoted
# mdadm --stop /dev/md124
mdadm: stopped /dev/md124

# mdadm --assemble /dev/md124 /dev/md12[23] /dev/sd[goqpjfl]1
mdadm: Not safe to assemble with missing or stale journal device, consider --force.
This worked, thanks!

--Larkin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help