All of lore.kernel.org
 help / color / mirror / Atom feed
* Advice requested
@ 2015-10-31 11:55 o1bigtenor
  2015-11-01 20:55 ` Phil Turmel
  0 siblings, 1 reply; 22+ messages in thread
From: o1bigtenor @ 2015-10-31 11:55 UTC (permalink / raw)
  To: linux-raid

Greetings

I had a raid 10 array where one drive threw an error (seemingly in a
superblock) and since I have not been able to get the array readable.
It was suggested to me that I remove 2 of the drives leaving the two
that were striped together.

So what I have is really a raid 0 array at present.

Info following from queries to system for system information.

mdadm --detail /dev/md0
/dev/md0:
       Version : 1.2
    Raid Level : raid0
 Total Devices : 2
   Persistence : Superblock is persistent

         State : inactive

          Name : debianbase:0  (local to host debianbase)
          UUID : 79baaa2f:0aa2b9fa:18e2ea6b:6e2846b3
        Events : 47341

   Number   Major   Minor   RaidDevice

      -       8       17        -        /dev/sdb1
      -       8       49        -        /dev/sdd1
root@debianbase:/media/darald# echo $UUID

root@debianbase:/media/xxxxxx# cd /
root@debianbase:/# mdadm --examine /dev/sdb1
/dev/sdb1:
         Magic : a92b4efc
       Version : 1.2
   Feature Map : 0x0
    Array UUID : 79baaa2f:0aa2b9fa:18e2ea6b:6e2846b3
          Name : debianbase:0  (local to host debianbase)
 Creation Time : Mon Mar  5 08:26:28 2012
    Raid Level : raid10
  Raid Devices : 4

Avail Dev Size : 1953519616 (931.51 GiB 1000.20 GB)
    Array Size : 1953518592 (1863.02 GiB 2000.40 GB)
 Used Dev Size : 1953518592 (931.51 GiB 1000.20 GB)
   Data Offset : 2048 sectors
  Super Offset : 8 sectors
  Unused Space : before=1968 sectors, after=1024 sectors
         State : clean
   Device UUID : a80c76db:eaea61af:bcb9cbbb:ac99e467

   Update Time : Fri Aug 28 10:38:32 2015
      Checksum : 29a4fa98 - correct
        Events : 47341

        Layout : near=2
    Chunk Size : 512K

  Device Role : Active device 3
  Array State : AAAA ('A' == active, '.' == missing, 'R' == replacing)
root@debianbase:/# mdadm --examine /dev/sdd1
/dev/sdd1:
         Magic : a92b4efc
       Version : 1.2
   Feature Map : 0x0
    Array UUID : 79baaa2f:0aa2b9fa:18e2ea6b:6e2846b3
          Name : debianbase:0  (local to host debianbase)
 Creation Time : Mon Mar  5 08:26:28 2012
    Raid Level : raid10
  Raid Devices : 4

Avail Dev Size : 1953519616 (931.51 GiB 1000.20 GB)
    Array Size : 1953518592 (1863.02 GiB 2000.40 GB)
 Used Dev Size : 1953518592 (931.51 GiB 1000.20 GB)
   Data Offset : 2048 sectors
  Super Offset : 8 sectors
  Unused Space : before=1968 sectors, after=1024 sectors
         State : clean
   Device UUID : 9e749fa9:a0efe791:ea09d2e2:72b99f6c

   Update Time : Fri Aug 28 10:38:32 2015
      Checksum : 615d736 - correct
        Events : 47341

        Layout : near=2
    Chunk Size : 512K

  Device Role : Active device 1
  Array State : AAAA ('A' == active, '.' == missing, 'R' == replacing)
root@debianbase:/#

Tried the following:

fsck.ext4 -N -b /dev/md0
e2fsck 1.42.13 (17-May-2015)
fsck.ext4: Invalid argument while trying to open /dev/md0

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
   e2fsck -b 8193 <device>
or
   e2fsck -b 32768 <device>

root@debianbase:/# dump2fs /dev/md0 | grep superblock
bash: dump2fs: command not found
root@debianbase:/# dumpe2fs /dev/md0 | grep superblock
dumpe2fs 1.42.13 (17-May-2015)
dumpe2fs: Invalid argument while trying to open /dev/md0
Couldn't find valid filesystem superblock.
root@debianbase:/# mdadm -A --force /dev/md0 /dev/sd[b1d1]2
mdadm: cannot open device /dev/sd[b1d1]2: No such file or directory
mdadm: /dev/sd[b1d1]2 has no superblock - assembly aborted
root@debianbase:/# mdadm --assemble /dev/md0 /dev/sdb1 /dev/sdd1
mdadm: /dev/sdb1 is busy - skipping
mdadm: /dev/sdd1 is busy - skipping
root@debianbase:/# mdadm --stop /dev/md0
mdadm: stopped /dev/md0
root@debianbase:/# mdadm --assemble /dev/md0 /dev/sdb1 /dev/sdd1
mdadm: /dev/md0 assembled from 2 drives - need all 4 to start it (use
--run to insist).
root@debianbase:/# mdadm --assemble --run /dev/md0 /dev/sdb1 /dev/sdd1
mdadm: /dev/sdb1 is busy - skipping
mdadm: /dev/sdd1 is busy - skipping


drives were all ext4 when the array was setup.


Is there some way to take the 2 drives and convince mdadm that they
are a raid 0?

How do I get the superblock issue to go away?

TIA

Dee

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

end of thread, other threads:[~2015-11-04  4:31 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-31 11:55 Advice requested o1bigtenor
2015-11-01 20:55 ` Phil Turmel
     [not found]   ` <CAPpdf5_PUpR7GhBHUaQfWb8Q+7FZenxXgFqbaN3f3r0r6NQNDA@mail.gmail.com>
2015-11-02 15:41     ` Phil Turmel
     [not found]       ` <CAPpdf59MFX1oVwLC-bmQBaQp9K_9-+h0v64OGMnV1-k=eCzO0w@mail.gmail.com>
     [not found]         ` <5637BCE4.8000006@turmel.org>
2015-11-02 23:49           ` o1bigtenor
2015-11-03  0:11             ` Phil Turmel
2015-11-03  0:44               ` o1bigtenor
2015-11-03  0:57                 ` Phil Turmel
2015-11-03  1:02                   ` o1bigtenor
2015-11-03  1:55                     ` Phil Turmel
2015-11-03  4:03                       ` o1bigtenor
2015-11-03  4:09                         ` Phil Turmel
2015-11-03  4:28                           ` o1bigtenor
2015-11-03  4:47                             ` Phil Turmel
2015-11-03 12:45                               ` o1bigtenor
2015-11-03 13:09                                 ` Phil Turmel
2015-11-03 13:36                                   ` o1bigtenor
2015-11-03 15:49                                     ` Adam Goryachev
2015-11-03 16:08                                     ` Phil Turmel
     [not found]                                       ` <CAPpdf59o0kf1-mgB29AcgH2cpdwBrhazf3NeQUYNa6m9+c6C+A@mail.gmail.com>
2015-11-04  4:05                                         ` o1bigtenor
2015-11-04  4:31                                           ` Brad Campbell
2015-11-03 18:02       ` Phil Turmel
2015-11-03 19:06         ` o1bigtenor

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.