Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #230074

Re: mdadm usage

From Andy Smith <andy@strugglers.net>
Newsgroups linux.debian.user
Subject Re: mdadm usage
Date 2020-12-29 14:20 +0100
Message-ID <Brn4R-5sL-3@gated-at.bofh.it> (permalink)
References <BrhiN-1Nn-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

On Tue, Dec 29, 2020 at 07:58:50AM +0100, Thomas A. Anderson wrote:
> I have been "using" mdadm to run software raid1 (stripping) on a file
> server i have been running.

As others have noted, RAID-1 is not striping but mirroring. I'll
assume you have used RAID-1. Showing us the content of your
/proc/mdstat file would help.

> now that I try to access data on these two original drives on
> another system, I am unable to.

The default metadata format (v1.2) for mdadm is at the beginning of
the device. If you've put a filesystem directly on the md device
then the presence of the metadata will prevent it being recognised
as a simple filesystem. What you can do is force mdadm to import it
as a degraded RAID-1.

Back in the days before GRUB understood md RAID-1 people used to
have to specifically use metadata format v1.0 or v0.9 for the device
containing /boot, in order to get metadata placed at end of device
so that GRUB was tricked into thinking it was a simple filesystem.

If you need help importing your single RAID-1 device, get it plugged
in to a system and recognised as a block device (see
/proc/partitions for a list of block devices), then show us the
output of:

# mdadm --examine /dev/whatever

where /dev/whatever is the block device for this single RAID-1
member device.

Then we'll help you get mdadm to assemble it.

Alternatively, assuming filesystem directly on md device it is also
possible to use the loop driver to create a new device that is an
offset into the md member device and then mount that as the
filesystem, but in my opinion that is more complicated and dangerous
than just getting mdadm to assemble a degraded RAID-1.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

mdadm usage "Thomas A. Anderson" <thomas.anderson@little-beak.com> - 2020-12-29 08:10 +0100
  Re: mdadm usage Reco <recoverym4n@enotuniq.net> - 2020-12-29 08:30 +0100
    Re: mdadm usage deloptes <deloptes@gmail.com> - 2020-12-29 09:40 +0100
  Re: mdadm usage Felix Miata <mrmazda@earthlink.net> - 2020-12-29 08:50 +0100
    Re: mdadm usage basti <mailinglist@unix-solution.de> - 2020-12-29 09:40 +0100
      Re: mdadm usage "Thomas A. Anderson" <thomas.anderson@little-beak.com> - 2020-12-29 21:40 +0100
        Re: mdadm usage Linux-Fan <Ma_Sys.ma@web.de> - 2020-12-30 00:00 +0100
        Re: mdadm usage deloptes <deloptes@gmail.com> - 2020-12-30 02:00 +0100
          Re: mdadm usage Michael Stone <mstone@debian.org> - 2020-12-30 02:30 +0100
            Re: mdadm usage deloptes <deloptes@gmail.com> - 2020-12-30 09:20 +0100
            Re: mdadm usage Jesper Dybdal <jd-debian-user@dybdal.dk> - 2020-12-30 14:40 +0100
              Re: mdadm usage Andy Smith <andy@strugglers.net> - 2020-12-30 15:00 +0100
                Re: mdadm usage Jesper Dybdal <jd-debian-user@dybdal.dk> - 2021-01-02 14:40 +0100
              mdadm usage Nicholas Geovanis <nickgeovanis@gmail.com> - 2020-12-30 15:10 +0100
                Re: mdadm usage Nicholas Geovanis <nickgeovanis@gmail.com> - 2020-12-30 15:10 +0100
                Re: mdadm usage deloptes <deloptes@gmail.com> - 2020-12-30 21:50 +0100
                Re: mdadm usage Michael Stone <mstone@debian.org> - 2020-12-30 22:40 +0100
                Re: mdadm usage deloptes <deloptes@gmail.com> - 2020-12-30 23:20 +0100
                Re: mdadm usage Andy Smith <andy@strugglers.net> - 2020-12-31 00:30 +0100
                Re: mdadm usage rhkramer@gmail.com - 2020-12-31 13:30 +0100
                Re: mdadm usage Michael Stone <mstone@debian.org> - 2020-12-31 15:20 +0100
                Re: mdadm usage Andy Smith <andy@strugglers.net> - 2020-12-31 15:30 +0100
                Re: mdadm usage Reco <recoverym4n@enotuniq.net> - 2020-12-31 15:50 +0100
                Re: mdadm usage Andy Smith <andy@strugglers.net> - 2020-12-31 16:10 +0100
                Re: mdadm usage Reco <recoverym4n@enotuniq.net> - 2020-12-31 16:20 +0100
                Re: mdadm usage Andy Smith <andy@strugglers.net> - 2020-12-31 16:40 +0100
                Re: mdadm usage deloptes <deloptes@gmail.com> - 2021-01-01 23:10 +0100
                Re: mdadm usage Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-02 09:40 +0100
                Re: mdadm usage deloptes <deloptes@gmail.com> - 2021-01-02 10:10 +0100
                Re: mdadm usage Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-02 11:30 +0100
                Re: mdadm usage Linux-Fan <Ma_Sys.ma@web.de> - 2021-01-02 14:50 +0100
                Re: mdadm usage deloptes <deloptes@gmail.com> - 2021-01-02 16:40 +0100
                Re: mdadm usage Linux-Fan <Ma_Sys.ma@web.de> - 2021-01-02 18:10 +0100
                Re: mdadm usage The Wanderer <wanderer@fastmail.fm> - 2021-01-02 10:40 +0100
                Re: mdadm usage Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-02 12:00 +0100
                Re: mdadm usage The Wanderer <wanderer@fastmail.fm> - 2021-01-02 12:30 +0100
                Re: mdadm usage Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-02 12:50 +0100
                Re: mdadm usage Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-02 13:10 +0100
                Re: mdadm usage The Wanderer <wanderer@fastmail.fm> - 2021-01-02 14:20 +0100
                Re: mdadm usage The Wanderer <wanderer@fastmail.fm> - 2021-01-02 14:10 +0100
                Re: mdadm usage deloptes <deloptes@gmail.com> - 2021-01-02 12:50 +0100
          Re: mdadm usage "Thomas A. Anderson" <thomas.anderson@little-beak.com> - 2020-12-30 11:50 +0100
            Re: mdadm usage "Alexander V. Makartsev" <avbetev@gmail.com> - 2020-12-30 13:30 +0100
            Re: mdadm usage Dan Ritter <dsr@randomstring.org> - 2020-12-30 13:30 +0100
            Re: mdadm usage Andy Smith <andy@strugglers.net> - 2020-12-30 15:00 +0100
            Re: mdadm usage deloptes <deloptes@gmail.com> - 2020-12-30 22:10 +0100
              Re: mdadm usage Nicholas Geovanis <nickgeovanis@gmail.com> - 2020-12-31 00:00 +0100
        Re: mdadm usage Andrei POPESCU <andreimpopescu@gmail.com> - 2020-12-30 09:10 +0100
      Re: mdadm usage Dan Ritter <dsr@randomstring.org> - 2020-12-30 04:00 +0100
  Re: mdadm usage Andy Smith <andy@strugglers.net> - 2020-12-29 14:20 +0100
    Re: mdadm usage mick crane <mick.crane@gmail.com> - 2020-12-29 16:40 +0100
      Re: mdadm usage "Alexander V. Makartsev" <avbetev@gmail.com> - 2020-12-29 20:40 +0100
      Re: mdadm usage Andy Smith <andy@strugglers.net> - 2020-12-30 14:40 +0100
        Re: mdadm usage The Wanderer <wanderer@fastmail.fm> - 2020-12-30 14:50 +0100
        Re: mdadm usage mick crane <mick.crane@gmail.com> - 2020-12-30 18:00 +0100
          Re: mdadm usage Andrei POPESCU <andreimpopescu@gmail.com> - 2020-12-30 19:40 +0100

csiph-web