All of lore.kernel.org
 help / color / mirror / Atom feed
From: "r23@anchordrop.net" <r23@anchordrop.net>
To: Wols Lists <antlists@youngman.org.uk>, linux-raid@vger.kernel.org
Subject: Re: raid-1 starting with 1 drive after brief hiatus with cruddy controller.
Date: Sun, 18 Jun 2017 12:08:10 -0400	[thread overview]
Message-ID: <20170618120810.1e3ffe2d@e20> (raw)
In-Reply-To: <5946867B.5010200@youngman.org.uk>



I have 2 scenarios here:

scenario 1- I tried the argument 'missing'. I think its taking that as a literal device name. I'm
probably not doing it like your asking.

root@mars:~# 
root@mars:~# mdadm --manage --stop /dev/md0              
mdadm: error opening /dev/md0: No such file or directory
root@mars:~# ls -lR /dev | grep md
lrwxrwxrwx  1 root root            25 Jun 18 11:52 initctl -> /run/systemd/initctl/fifo
lrwxrwxrwx  1 root root            28 Jun 18 11:52 log -> /run/systemd/journal/dev-log
drwxr-xr-x  2 root root            40 Jun 18 07:52 md
/dev/md:
root@mars:~#  mdadm --assemble /dev/md/debian:0  -v --run /dev/sdb2 missing
mdadm: looking for devices for /dev/md/debian:0
mdadm: cannot open device missing: No such file or directory
mdadm: missing has no superblock - assembly aborted
root@mars:~#


Scenario 2: - trying to explicitly add the good disk:

1) examine /dev/sdb2 
2)  mdadm --assemble /dev/md/md0  -v --run /dev/sdb2  : result = failed to add /dev/sdb2 to /dev/md/md0: Invalid argument
3) mdadm --manage /dev/md0 -v --add  /dev/sdb2 : result  =  mdadm: Cannot get array info for /dev/md0
4) mdadm --detail -v /dev/md0  = result = raid0 ??

detail on above 4 steps:

root@mars:~# 
root@mars:~# mdadm --misc --examine /dev/sdb2
/dev/sdb2:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x1
     Array UUID : 2a3489a6:b430c744:2c89a792:98521913
           Name : debian:0
  Creation Time : Sat May  9 17:44:25 2015
     Raid Level : raid1
   Raid Devices : 2

 Avail Dev Size : 9765179392 (4656.40 GiB 4999.77 GB)
     Array Size : 4882589696 (4656.40 GiB 4999.77 GB)
    Data Offset : 262144 sectors
   Super Offset : 8 sectors
   Unused Space : before=262056 sectors, after=0 sectors
          State : clean
    Device UUID : 4697b088:5d3b1ae5:55d30f65:516df63d

Internal Bitmap : 8 sectors from superblock
    Update Time : Wed Jun 14 23:53:27 2017
  Bad Block Log : 512 entries available at offset 72 sectors
       Checksum : 1f245410 - expected 1f249410
         Events : 129099


   Device Role : Active device 1
   Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
root@mars:~# mdadm --assemble /dev/md/md0  -v --run /dev/sdb2
mdadm: looking for devices for /dev/md/md0
mdadm: /dev/sdb2 is identified as a member of /dev/md/md0, slot 1.
mdadm: no uptodate device for slot 0 of /dev/md/md0
mdadm: failed to add /dev/sdb2 to /dev/md/md0: Invalid argument
mdadm: failed to RUN_ARRAY /dev/md/md0: Invalid argument
root@mars:~# ls -lR /dev | grep md
lrwxrwxrwx  1 root root            25 Jun 18 11:52 initctl -> /run/systemd/initctl/fifo
lrwxrwxrwx  1 root root            28 Jun 18 11:52 log -> /run/systemd/journal/dev-log
drwxr-xr-x  2 root root            40 Jun 18 07:52 md
brw-rw----  1 root disk        9,   0 Jun 18 11:57 md0
lrwxrwxrwx 1 root root 6 Jun 18 11:57 9:0 -> ../md0
/dev/md:
root@mars:~# mdadm --manage /dev/md0 -v --add  /dev/sdb2
mdadm: Cannot get array info for /dev/md0
root@mars:~# mdadm --detail -v /dev/md0
/dev/md0:
        Version : 1.2
     Raid Level : raid0
  Total Devices : 0
    Persistence : Superblock is persistent

          State : inactive

    Number   Major   Minor   RaidDevice
root@mars:~# 






  reply	other threads:[~2017-06-18 16:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-18  4:14 raid-1 starting with 1 drive after brief hiatus with cruddy controller r23
2017-06-18 13:56 ` Wols Lists
2017-06-18 16:08   ` r23 [this message]
2017-06-18 21:00   ` NeilBrown
2017-06-18 20:59 ` NeilBrown
2017-06-21 18:29   ` r23

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170618120810.1e3ffe2d@e20 \
    --to=r23@anchordrop.net \
    --cc=antlists@youngman.org.uk \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.