* Help to assemble raid5 - no superblock! @ 2012-04-04 11:15 Salatiel Filho 2012-04-04 11:47 ` NeilBrown 0 siblings, 1 reply; 4+ messages in thread From: Salatiel Filho @ 2012-04-04 11:15 UTC (permalink / raw) To: linux-raid I am having a big problem trying to assemble my raid. I can assemble just fine in the old machine (LINUX ARM) where i built the raid in the first place, but i am just unable to do in other machine (Linux mips). I have no mdadm.conf in both machines. I got the following error: # mdadm -A /dev/md0 /dev/sda2 /dev/sdb2 /dev/sdc2 mdadm: no recogniseable superblock on /dev/sda2 mdadm: /dev/sda2 has no superblock - assembly aborted # cat /var/log/messages | tail Apr 4 08:08:32 (none) kernel: [ 8577.010000] scsi_verify_blk_ioctl: 4 callbacks suppressed Apr 4 08:08:32 (none) kernel: [ 8577.020000] mdadm: sending ioctl 400c0910 to a partition! Apr 4 08:08:32 (none) kernel: [ 8577.020000] mdadm: sending ioctl 400c0910 to a partition! Apr 4 08:08:32 (none) kernel: [ 8577.030000] mdadm: sending ioctl 20001261 to a partition! Apr 4 08:08:32 (none) kernel: [ 8577.040000] mdadm: sending ioctl 20001261 to a partition! Apr 4 08:08:32 (none) kernel: [ 8577.050000] mdadm: sending ioctl 20001261 to a partition! Apr 4 08:08:32 (none) kernel: [ 8577.050000] mdadm: sending ioctl 20001261 to a partition! Apr 4 08:08:32 (none) kernel: [ 8577.270000] mdadm: sending ioctl 20001261 to a partition! Apr 4 08:08:32 (none) kernel: [ 8577.280000] mdadm: sending ioctl 20001261 to a partition! Apr 4 08:08:33 (none) kernel: [ 8577.290000] mdadm: sending ioctl 20001261 to a partition! Apr 4 08:08:33 (none) kernel: [ 8577.290000] mdadm: sending ioctl 20001261 to a partition! # fdisk -l /dev/sda Disk /dev/sda: 1500.3 GB, 1500301910016 bytes 255 heads, 63 sectors/track, 182401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 13055 104857600 83 Linux /dev/sda2 13055 182402 1360279960 fd Linux raid autodetect # fdisk -l /dev/sdb Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes 255 heads, 63 sectors/track, 182401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 13055 104857600 83 Linux Partition 1 does not end on cylinder boundary /dev/sdb2 13055 182402 1360279960 fd Linux raid autodetect Partition 2 does not end on cylinder boundary # fdisk -l /dev/sdc Disk /dev/sdc: 1500.3 GB, 1500301910016 bytes 255 heads, 63 sectors/track, 182401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdc1 1 13055 104857600 83 Linux /dev/sdc2 13055 182402 1360279960 fd Linux raid autodetect # cat /proc/mdstat Personalities : [raid1] [raid6] [raid5] [raid4] unused devices: <none> # lsmod | grep -i 'md\|raid' raid456 47584 0 async_raid6_recov 896 1 raid456 async_pq 1536 1 raid456 raid6_pq 74752 2 async_raid6_recov,async_pq async_xor 976 2 raid456,async_pq async_memcpy 560 1 raid456 async_tx 832 5 raid456,async_raid6_recov,async_pq,async_xor,async_memcpy raid1 24304 0 md_mod 88816 2 raid456,raid1 md5 1424 0 crypto_hash 7888 3 dm_crypt,sha1_generic,md5 # uname -a Linux router 3.2.9 #16 Sun Mar 25 16:31:49 BRT 2012 mips GNU/Linux Any help ? []'s Salatiel ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help to assemble raid5 - no superblock! 2012-04-04 11:15 Help to assemble raid5 - no superblock! Salatiel Filho @ 2012-04-04 11:47 ` NeilBrown [not found] ` <CAGmni9pRk4qO88VvUMQ2VpnmzokhxCbfwsA9LpnD1Jsa0KMKgg@mail.gmail.com> 0 siblings, 1 reply; 4+ messages in thread From: NeilBrown @ 2012-04-04 11:47 UTC (permalink / raw) To: Salatiel Filho; +Cc: linux-raid [-- Attachment #1: Type: text/plain, Size: 3998 bytes --] On Wed, 4 Apr 2012 08:15:57 -0300 Salatiel Filho <salatiel.filho@gmail.com> wrote: > I am having a big problem trying to assemble my raid. > I can assemble just fine in the old machine (LINUX ARM) where i built > the raid in the first place, but i am just unable to do in other > machine (Linux mips). I have no mdadm.conf in both machines. > I got the following error: > > # mdadm -A /dev/md0 /dev/sda2 /dev/sdb2 /dev/sdc2 > mdadm: no recogniseable superblock on /dev/sda2 > mdadm: /dev/sda2 has no superblock - assembly aborted > > # cat /var/log/messages | tail > > Apr 4 08:08:32 (none) kernel: [ 8577.010000] scsi_verify_blk_ioctl: 4 > callbacks suppressed > Apr 4 08:08:32 (none) kernel: [ 8577.020000] mdadm: sending ioctl > 400c0910 to a partition! > Apr 4 08:08:32 (none) kernel: [ 8577.020000] mdadm: sending ioctl > 400c0910 to a partition! > Apr 4 08:08:32 (none) kernel: [ 8577.030000] mdadm: sending ioctl > 20001261 to a partition! > Apr 4 08:08:32 (none) kernel: [ 8577.040000] mdadm: sending ioctl > 20001261 to a partition! > Apr 4 08:08:32 (none) kernel: [ 8577.050000] mdadm: sending ioctl > 20001261 to a partition! > Apr 4 08:08:32 (none) kernel: [ 8577.050000] mdadm: sending ioctl > 20001261 to a partition! > Apr 4 08:08:32 (none) kernel: [ 8577.270000] mdadm: sending ioctl > 20001261 to a partition! > Apr 4 08:08:32 (none) kernel: [ 8577.280000] mdadm: sending ioctl > 20001261 to a partition! > Apr 4 08:08:33 (none) kernel: [ 8577.290000] mdadm: sending ioctl > 20001261 to a partition! > Apr 4 08:08:33 (none) kernel: [ 8577.290000] mdadm: sending ioctl > 20001261 to a partition! > > # fdisk -l /dev/sda > > Disk /dev/sda: 1500.3 GB, 1500301910016 bytes > 255 heads, 63 sectors/track, 182401 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Device Boot Start End Blocks Id System > /dev/sda1 1 13055 104857600 83 Linux > /dev/sda2 13055 182402 1360279960 fd Linux raid autodetect > > > # fdisk -l /dev/sdb > > Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes > 255 heads, 63 sectors/track, 182401 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Device Boot Start End Blocks Id System > /dev/sdb1 1 13055 104857600 83 Linux > Partition 1 does not end on cylinder boundary > /dev/sdb2 13055 182402 1360279960 fd Linux raid autodetect > Partition 2 does not end on cylinder boundary > > # fdisk -l /dev/sdc > > Disk /dev/sdc: 1500.3 GB, 1500301910016 bytes > 255 heads, 63 sectors/track, 182401 cylinders > Units = cylinders of 16065 * 512 = 8225280 bytes > > Device Boot Start End Blocks Id System > /dev/sdc1 1 13055 104857600 83 Linux > /dev/sdc2 13055 182402 1360279960 fd Linux raid autodetect > > > # cat /proc/mdstat > Personalities : [raid1] [raid6] [raid5] [raid4] > unused devices: <none> > > > > # lsmod | grep -i 'md\|raid' > raid456 47584 0 > async_raid6_recov 896 1 raid456 > async_pq 1536 1 raid456 > raid6_pq 74752 2 async_raid6_recov,async_pq > async_xor 976 2 raid456,async_pq > async_memcpy 560 1 raid456 > async_tx 832 5 > raid456,async_raid6_recov,async_pq,async_xor,async_memcpy > raid1 24304 0 > md_mod 88816 2 raid456,raid1 > md5 1424 0 > crypto_hash 7888 3 dm_crypt,sha1_generic,md5 > > > > # uname -a > > Linux router 3.2.9 #16 Sun Mar 25 16:31:49 BRT 2012 mips GNU/Linux > > > Any help ? ARM is little-endian MIPS ?? is that bigendian? What does mdadm -E --metadata=0.swap /dev/sda2 report? If it is something useful, then try adding --update=byteorder to the "mdadm -A" command. NeilBrown [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 828 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <CAGmni9pRk4qO88VvUMQ2VpnmzokhxCbfwsA9LpnD1Jsa0KMKgg@mail.gmail.com>]
* Help to assemble raid5 - no superblock! [not found] ` <CAGmni9pRk4qO88VvUMQ2VpnmzokhxCbfwsA9LpnD1Jsa0KMKgg@mail.gmail.com> @ 2012-04-27 10:24 ` Salatiel Filho 2012-04-27 22:08 ` NeilBrown 0 siblings, 1 reply; 4+ messages in thread From: Salatiel Filho @ 2012-04-27 10:24 UTC (permalink / raw) To: linux-raid A little help again. After being able to successfully mount in the mips machine now that i am trying to mount in a x86 machine it is not working. # root@eeepc:~# mdadm -A --update=byteorder /dev/md1 /dev/sdc2 /dev/sdd2 /dev/sde2 mdadm: failed to add /dev/sdd2 to /dev/md1: Invalid argument mdadm: failed to add /dev/sde2 to /dev/md1: Invalid argument mdadm: failed to add /dev/sdc2 to /dev/md1: Invalid argument mdadm: /dev/md1 assembled from 0 drives - not enough to start the array. root@eeepc:~# mdadm -E /dev/sdc2 /dev/sdc2: Magic : a92b4efc Version : 0.90.00 UUID : 9ef886db:6d1ad183:a547ee43:0d984338 Creation Time : Thu Mar 29 11:50:27 2012 Raid Level : raid5 Used Dev Size : 1360279872 (1297.26 GiB 1392.93 GB) Array Size : 2720559744 (2594.53 GiB 2785.85 GB) Raid Devices : 3 Total Devices : 3 Preferred Minor : 1 Update Time : Thu Apr 26 20:01:51 2012 State : clean Active Devices : 3 Working Devices : 3 Failed Devices : 0 Spare Devices : 0 Checksum : 5844783d - expected 5844773d Events : 65223 Layout : left-symmetric Chunk Size : 64K Number Major Minor RaidDevice State this 0 8 2 0 active sync /dev/sda2 0 0 8 2 0 active sync /dev/sda2 1 1 8 18 1 active sync /dev/sdb2 2 2 8 34 2 active sync /dev/sdc2 root@eeepc:~# mdadm -E /dev/sdd2 /dev/sdd2: Magic : a92b4efc Version : 0.90.00 UUID : 9ef886db:6d1ad183:a547ee43:0d984338 Creation Time : Thu Mar 29 11:50:27 2012 Raid Level : raid5 Used Dev Size : 1360279872 (1297.26 GiB 1392.93 GB) Array Size : 2720559744 (2594.53 GiB 2785.85 GB) Raid Devices : 3 Total Devices : 3 Preferred Minor : 1 Update Time : Thu Apr 26 20:01:51 2012 State : clean Active Devices : 3 Working Devices : 3 Failed Devices : 0 Spare Devices : 0 Checksum : 5844784f - expected 5844774f Events : 65223 Layout : left-symmetric Chunk Size : 64K Number Major Minor RaidDevice State this 1 8 18 1 active sync /dev/sdb2 0 0 8 2 0 active sync /dev/sda2 1 1 8 18 1 active sync /dev/sdb2 2 2 8 34 2 active sync /dev/sdc2 root@eeepc:~# mdadm -E /dev/sde2 /dev/sde2: Magic : a92b4efc Version : 0.90.00 UUID : 9ef886db:6d1ad183:a547ee43:0d984338 Creation Time : Thu Mar 29 11:50:27 2012 Raid Level : raid5 Used Dev Size : 1360279872 (1297.26 GiB 1392.93 GB) Array Size : 2720559744 (2594.53 GiB 2785.85 GB) Raid Devices : 3 Total Devices : 3 Preferred Minor : 1 Update Time : Thu Apr 26 20:01:51 2012 State : clean Active Devices : 3 Working Devices : 3 Failed Devices : 0 Spare Devices : 0 Checksum : 58447861 - expected 58447761 Events : 65223 Layout : left-symmetric Chunk Size : 64K Number Major Minor RaidDevice State this 2 8 34 2 active sync /dev/sdc2 0 0 8 2 0 active sync /dev/sda2 1 1 8 18 1 active sync /dev/sdb2 2 2 8 34 2 active sync /dev/sdc2 Apparently i am getting checksum error. root@eeepc:~# dmesg ... [ 2102.169124] md: invalid superblock checksum on sde2 [ 2102.169133] md: sde2 does not have a valid v0.90 superblock, not importing! [ 2102.169152] md: md_import_device returned -22 [ 2102.170490] md: invalid superblock checksum on sdc2 [ 2102.170499] md: sdc2 does not have a valid v0.90 superblock, not importing! [ 2102.170513] md: md_import_device returned -22 [ 2133.642956] scsi_verify_blk_ioctl: 24 callbacks suppressed [ 2133.642964] mdadm: sending ioctl 800c0910 to a partition! [ 2133.642971] mdadm: sending ioctl 800c0910 to a partition! [ 2133.642988] mdadm: sending ioctl 1261 to a partition! [ 2133.642993] mdadm: sending ioctl 1261 to a partition! [ 2133.643682] mdadm: sending ioctl 1261 to a partition! [ 2133.643689] mdadm: sending ioctl 1261 to a partition! [ 2133.648251] mdadm: sending ioctl 1261 to a partition! [ 2133.648258] mdadm: sending ioctl 1261 to a partition! [ 2133.648732] mdadm: sending ioctl 1261 to a partition! [ 2133.648738] mdadm: sending ioctl 1261 to a partition! [ 2260.925012] scsi_verify_blk_ioctl: 8 callbacks suppressed ... root@eeepc:~# mdadm --version mdadm - v3.2.3 - 23rd December 2011 any ideas how to fix this ? []'s Salatiel On Wed, Apr 4, 2012 at 08:47, NeilBrown <neilb@suse.de> wrote: > On Wed, 4 Apr 2012 08:15:57 -0300 Salatiel Filho <salatiel.filho@gmail.com> > wrote: > >> I am having a big problem trying to assemble my raid. >> I can assemble just fine in the old machine (LINUX ARM) where i built >> the raid in the first place, but i am just unable to do in other >> machine (Linux mips). I have no mdadm.conf in both machines. >> I got the following error: >> >> # mdadm -A /dev/md0 /dev/sda2 /dev/sdb2 /dev/sdc2 >> mdadm: no recogniseable superblock on /dev/sda2 >> mdadm: /dev/sda2 has no superblock - assembly aborted >> >> # cat /var/log/messages | tail >> >> Apr 4 08:08:32 (none) kernel: [ 8577.010000] scsi_verify_blk_ioctl: 4 >> callbacks suppressed >> Apr 4 08:08:32 (none) kernel: [ 8577.020000] mdadm: sending ioctl >> 400c0910 to a partition! >> Apr 4 08:08:32 (none) kernel: [ 8577.020000] mdadm: sending ioctl >> 400c0910 to a partition! >> Apr 4 08:08:32 (none) kernel: [ 8577.030000] mdadm: sending ioctl >> 20001261 to a partition! >> Apr 4 08:08:32 (none) kernel: [ 8577.040000] mdadm: sending ioctl >> 20001261 to a partition! >> Apr 4 08:08:32 (none) kernel: [ 8577.050000] mdadm: sending ioctl >> 20001261 to a partition! >> Apr 4 08:08:32 (none) kernel: [ 8577.050000] mdadm: sending ioctl >> 20001261 to a partition! >> Apr 4 08:08:32 (none) kernel: [ 8577.270000] mdadm: sending ioctl >> 20001261 to a partition! >> Apr 4 08:08:32 (none) kernel: [ 8577.280000] mdadm: sending ioctl >> 20001261 to a partition! >> Apr 4 08:08:33 (none) kernel: [ 8577.290000] mdadm: sending ioctl >> 20001261 to a partition! >> Apr 4 08:08:33 (none) kernel: [ 8577.290000] mdadm: sending ioctl >> 20001261 to a partition! >> >> # fdisk -l /dev/sda >> >> Disk /dev/sda: 1500.3 GB, 1500301910016 bytes >> 255 heads, 63 sectors/track, 182401 cylinders >> Units = cylinders of 16065 * 512 = 8225280 bytes >> >> Device Boot Start End Blocks Id System >> /dev/sda1 1 13055 104857600 83 Linux >> /dev/sda2 13055 182402 1360279960 fd Linux raid autodetect >> >> >> # fdisk -l /dev/sdb >> >> Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes >> 255 heads, 63 sectors/track, 182401 cylinders >> Units = cylinders of 16065 * 512 = 8225280 bytes >> >> Device Boot Start End Blocks Id System >> /dev/sdb1 1 13055 104857600 83 Linux >> Partition 1 does not end on cylinder boundary >> /dev/sdb2 13055 182402 1360279960 fd Linux raid autodetect >> Partition 2 does not end on cylinder boundary >> >> # fdisk -l /dev/sdc >> >> Disk /dev/sdc: 1500.3 GB, 1500301910016 bytes >> 255 heads, 63 sectors/track, 182401 cylinders >> Units = cylinders of 16065 * 512 = 8225280 bytes >> >> Device Boot Start End Blocks Id System >> /dev/sdc1 1 13055 104857600 83 Linux >> /dev/sdc2 13055 182402 1360279960 fd Linux raid autodetect >> >> >> # cat /proc/mdstat >> Personalities : [raid1] [raid6] [raid5] [raid4] >> unused devices: <none> >> >> >> >> # lsmod | grep -i 'md\|raid' >> raid456 47584 0 >> async_raid6_recov 896 1 raid456 >> async_pq 1536 1 raid456 >> raid6_pq 74752 2 async_raid6_recov,async_pq >> async_xor 976 2 raid456,async_pq >> async_memcpy 560 1 raid456 >> async_tx 832 5 >> raid456,async_raid6_recov,async_pq,async_xor,async_memcpy >> raid1 24304 0 >> md_mod 88816 2 raid456,raid1 >> md5 1424 0 >> crypto_hash 7888 3 dm_crypt,sha1_generic,md5 >> >> >> >> # uname -a >> >> Linux router 3.2.9 #16 Sun Mar 25 16:31:49 BRT 2012 mips GNU/Linux >> >> >> Any help ? > > ARM is little-endian > MIPS ?? is that bigendian? > > What does > mdadm -E --metadata=0.swap /dev/sda2 > report? > > > If it is something useful, then try adding > --update=byteorder > to the "mdadm -A" command. > > NeilBrown > -- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help to assemble raid5 - no superblock! 2012-04-27 10:24 ` Salatiel Filho @ 2012-04-27 22:08 ` NeilBrown 0 siblings, 0 replies; 4+ messages in thread From: NeilBrown @ 2012-04-27 22:08 UTC (permalink / raw) To: Salatiel Filho; +Cc: linux-raid [-- Attachment #1: Type: text/plain, Size: 880 bytes --] On Fri, 27 Apr 2012 07:24:01 -0300 Salatiel Filho <salatiel.filho@gmail.com> wrote: > A little help again. After being able to successfully mount in the > mips machine now that i am trying to mount in a x86 machine it is not > working. > > # root@eeepc:~# mdadm -A --update=byteorder /dev/md1 /dev/sdc2 > /dev/sdd2 /dev/sde2 > mdadm: failed to add /dev/sdd2 to /dev/md1: Invalid argument > mdadm: failed to add /dev/sde2 to /dev/md1: Invalid argument > mdadm: failed to add /dev/sdc2 to /dev/md1: Invalid argument > mdadm: /dev/md1 assembled from 0 drives - not enough to start the array. > > > > > Apparently i am getting checksum error. > > > > any ideas how to fix this ? > Try to assembled with --update=summaries. That should fix the checksum. The byte-order has already been fixed, so it doesn't need fixing again. NeilBrown [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 828 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-27 22:08 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-04-04 11:15 Help to assemble raid5 - no superblock! Salatiel Filho 2012-04-04 11:47 ` NeilBrown [not found] ` <CAGmni9pRk4qO88VvUMQ2VpnmzokhxCbfwsA9LpnD1Jsa0KMKgg@mail.gmail.com> 2012-04-27 10:24 ` Salatiel Filho 2012-04-27 22:08 ` NeilBrown
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).