mdadm can you downgrade the superblock?

Why would you want to downgrade the superblock?  Old mdadm verisons like mdadm 2.5.6 only use the 0.90 superblock/metadata and new versions use 1,1.0,1.1 and 1.2 superblocks by default.

There are some annoying caveats with this, first of all the new superblocks (later than 0.90) CANNOT be read by GRUB, so you won't even be able to install GRUB.  Even worse, old versions of mdadm CANNOT automatically detect arrays even if they were created with a new version of mdadm with the -e 0.90 superblock flag.  And of course old versions of mdadm cannot even manually mount the new superblock format (I'm not sure what would happen if you tried).

So I thought I'd try to downgrade an existing 1.2 superblock array, I had already backed up data to another partition and it's good because my experience didn't go well.  Unfortunately it's not possible to downgrade the superblock and below are my nresults and observations from trying.

First of all more details from the mdadm man page:

-e , --metadata=
    Declare the style of superblock (raid metadata) to be used. The default is 0.90 for --create, and to guess for other operations.

    Options are:
    0, 0.90, default

Use the original 0.90 format superblock. This format limits arrays to 28 componenet devices and limits component devices of levels 1 and greater to 2 terabytes.

    1, 1.0, 1.1, 1.2

Use the new version-1 format superblock. This has few restrictions. The different subversion store the superblock at different locations on the device, either at the end (for 1.0), at the start (for 1.1) or 4K from the start (for 1.2).

Trying with superblock 1.1


mdadm --create /dev/md0 -e 1.1 --assume-clean --level=1 --raid-devices=2 /dev/sda3 missing
mdadm: /dev/sda3 appears to be part of a raid array:
    level=raid1 devices=2 ctime=Wed May 12 20:16:56 2010
Continue creating array? y
mdadm: array /dev/md0 started.


*Version 1.1 is not readable by GRUB either


md0 : active raid1 sda3[0]
      461017216 blocks [2/1] [U_]

 

Trying with superblock 0.90


mdadm --create /dev/md0 -e 0.90 --assume-clean --level=1 --raid-devices=2 /dev/sda3 missing  
mdadm: /dev/sda3 appears to be part of a raid array:
    level=raid1 devices=2 ctime=Tue Jun  8 23:01:54 2010
Continue creating array? y
mdadm: array /dev/md0 started.


*Now I can't mount the partition individually or as md0 for some reason.  It seems this wiped out the superblock and/or trying to create things with this new (even older version) superblock broke something.
 


Tags:

mdadm, downgrade, superblock, verisons, metadata, versions, superblocks, default, caveats, grub, install, automatically, detect, arrays, manually, mount, format, existing, array, partition, didn, nresults, observations, declare, raid, operations, componenet, devices, component, levels, terabytes, restrictions, subversion, locations, dev, md, sda, ctime, wed, creating, readable, active, u_, tue, jun, individually,

Latest Articles

  • ImageMagick Convert PDF Not Authorized
  • ImageMagick Converted PDF to JPEG some files have a black background solution
  • Linux Mint Mate Customize the Lock screen messages and hide username and real name
  • Ubuntu/Gnome/Mint/Centos How To Take a partial screenshot
  • ssh how to verify your host key / avoid MIM attacks
  • Cisco IP Phone CP-8845 8800/8900 Series How To Reset To Factory Settings Instructions
  • ls how to list ONLY directories
  • How to encrypt your SSH private key file id_rsa
  • Linux Mint 18 Disable User Name List from showing on Login Screen
  • Firefox Cannot Hit Enter Key In Address Bar and Location History Not Working
  • Cisco Unified Communications Manager / CUCM IP 8.6,10,12 Install Error Solution
  • Ubuntu Debian Mint Linux SSHD OpenSSH Server Not Starting After Reboot Solution
  • nmap how to scan for all ports and not just the 1000 most common ports
  • Windows 7,8,10 and Server 2008, 2012, 2016, 2019 Read Only Attribute Won't Go Away
  • bind / named how to make a wildcard record and retain defined A records
  • Cisco Unified Communications Manager 12 Install Errors on Proxmox/KVM
  • Local Vs Universally Administered MAC Address NIC Refuses to come up
  • Cisco Unified Communications Manager 12 CUCM 12 - How To Enable Video Calling
  • Windows 7, 8, 10, Windows Server 2008, 2012, 2016, 2019 How To AC97 Audio Drivers and Other Unsigned Drivers
  • Cisco Unified Communications Manager / CUCM IP Telephony Definitions