All of lore.kernel.org
 help / color / mirror / Atom feed
* Assemblin journaled array fails
@ 2020-05-09 10:54 Michal Soltys
  2020-05-09 11:32 ` Michal Soltys
                   ` (2 more replies)
  0 siblings, 3 replies; 46+ messages in thread
From: Michal Soltys @ 2020-05-09 10:54 UTC (permalink / raw)
  To: linux-raid

Looks like I have now another issue with journaled array that now fails 
to assemble - with related command used to assembly it (whether it would 
be mdadm --incremental called by udev, or manually from commandline) 
hanged and unkillable.

The array was previously running with different journal that was later 
replaced with different better disks. The journal device itself is 
healthy and assembles fine. Assembling (the below dump is when mdadm vis 
udev was doing it):


mdadm -D /dev/md126
/dev/md126:
            Version : 1.1
      Creation Time : Tue Mar  5 19:28:58 2019
         Raid Level : raid5
      Used Dev Size : 18446744073709551615
       Raid Devices : 4
      Total Devices : 5
        Persistence : Superblock is persistent

        Update Time : Sat May  9 09:34:58 2020
              State : active, FAILED, Not Started
     Active Devices : 4
    Working Devices : 5
     Failed Devices : 0
      Spare Devices : 0

             Layout : left-symmetric
         Chunk Size : 512K

Consistency Policy : journal

               Name : xs22:r5_big  (local to host xs22)
               UUID : d5995d76:67d7fabd:05392f87:25a91a97
             Events : 56283

     Number   Major   Minor   RaidDevice State
        -       0        0        0      removed
        -       0        0        1      removed
        -       0        0        2      removed
        -       0        0        3      removed

        -       8      145        3      sync   /dev/sdj1
        -       8      129        2      sync   /dev/sdi1
        -       9      127        -      spare   /dev/md/xs22:r1_journal_big
        -       8      113        1      sync   /dev/sdh1
        -       8       97        0      sync   /dev/sdg1



mdadm -Esv:

ARRAY /dev/md/r1_journal_big  level=raid1 metadata=1.1 num-devices=2 
UUID=c18b3996:49b21f49:3ee18e92:a8240f7f name=xs22:r1_journal_big
    devices=/dev/sdv1,/dev/sdu1
ARRAY /dev/md/r5_big  level=raid5 metadata=1.1 num-devices=4 
UUID=d5995d76:67d7fabd:05392f87:25a91a97 name=xs22:r5_big
    spares=1 
devices=/dev/md/xs22:r1_journal_big,/dev/sdg1,/dev/sdh1,/dev/sdj1,/dev/sdi1


When I was changing journal some time ago (successfully, everything was 
working fine afterwards) this is what I did:

echo [write-through] >/sys/md126/md/journal_mode
mdadm /dev/md126 --fail /dev/md/r1_journal_big --remove 
/dev/md/r1_journal_big
echo resync >/sys/md126/md/consistency_policy

# here i created new journal from new disks, the name was the same

mdadm --readonly /dev/md126
mdadm /dev/md126 --add-journal /dev/md/r1_journal_big
echo [write-back] >/sys/md126/md/journal_mode
# At this point mdadm confirmed everything went fine

After the reboot I'm in the situation as outlined above. Any suggestion 
how to assemble this array now ?

^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2020-07-08 23:51 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-09 10:54 Assemblin journaled array fails Michal Soltys
2020-05-09 11:32 ` Michal Soltys
2020-05-09 13:15 ` antlists
2020-05-09 13:20   ` Michal Soltys
2020-05-09 13:32     ` Michal Soltys
2020-05-09 23:57 ` Michal Soltys
2020-05-11 11:11   ` Michal Soltys
2020-05-12  1:27     ` Song Liu
2020-05-13 10:58       ` Michal Soltys
2020-05-13 16:17         ` Song Liu
2020-05-14 11:07           ` Michal Soltys
2020-05-16  0:15             ` Song Liu
     [not found]               ` <d0340d7b-6b3a-4fd3-e446-5f0967132ef6@yandex.pl>
2020-05-18 23:55                 ` Song Liu
2020-05-20 12:08                   ` Michal Soltys
2020-05-25 16:23                   ` Michal Soltys
2020-05-26 23:37                     ` Song Liu
2020-05-27 13:36                       ` Michal Soltys
2020-05-28 10:18                         ` Michal Soltys
2020-05-28 15:06                           ` Song Liu
2020-05-28 15:36                             ` Michal Soltys
2020-05-29 12:09                             ` Michal Soltys
2020-05-29 21:03                               ` Song Liu
2020-05-29 21:57                                 ` Song Liu
2020-06-03 10:12                                   ` Michal Soltys
2020-06-03 22:07                                     ` Song Liu
2020-06-04 13:58                                       ` Michal Soltys
2020-06-05 12:26                                       ` Michal Soltys
2020-06-09  9:36                                         ` Michal Soltys
2020-06-09 18:36                                           ` Song Liu
2020-06-09 21:51                                             ` Michal Soltys
2020-06-16 11:11                                               ` Michal Soltys
2020-06-17  0:48                                               ` Song Liu
2020-06-17 12:53                                                 ` Michal Soltys
2020-06-17 17:11                                                   ` Song Liu
2020-06-19 11:35                                                     ` Michal Soltys
2020-06-20  0:14                                                       ` Song Liu
2020-06-22 11:12                                                         ` Michal Soltys
2020-06-22 16:37                                                           ` Song Liu
2020-06-23 13:17                                                             ` Michal Soltys
2020-06-23 23:13                                                               ` Song Liu
2020-06-25 16:11                                                                 ` Michal Soltys
2020-07-06  8:07                                                                   ` Michal Soltys
2020-07-06 22:08                                                                     ` Song Liu
2020-07-08 11:29                                                                       ` Michal Soltys
2020-07-08 23:51                                                                         ` Song Liu
2020-06-26  8:28             ` Guoqing Jiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.