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

  • How to install Windows or other OS and then bring to another computer by using a physical drive and Virtual Machine with QEMU
  • PXE-E23 Error BOOTx64.EFI GRUB booting is 0 bytes tftp pxe dhcp solution NBP filesize is 0 Bytes
  • vagrant install on Debian Mint Ubuntu Linux RHEL Quick Setup Guide Tutorial
  • RHEL 8 CentOS 8, Alma Linux 8, Rocky Linux 8 System Not Booting with RAID or on other servers/computers Solution for dracut and initramfs missing kernel modules
  • How to Upgrade to Debian 11 from Version 8,9,10
  • Ubuntu Linux Mint Debian Redhat Cannot View Files on Android iPhone USB File Transfer Not Working Solution
  • Virtualbox Best Networking Mode In Lab/Work Environment without using NAT Network or Bridged
  • debootstrap how to install Ubuntu, Mint, Debian install
  • Linux grub not using UUID for the root device instead it uses /dev/sda1 or other device name solution
  • How To Restore Partition Table on Running Linux Mint Ubuntu Debian Machine
  • Debian Ubuntu apt install stop daemon questions/accept the default action without prompting
  • iptables NAT how to enable PPTP in newer Debian/Ubuntu/Mint Kernels Linux
  • Grandstream Phone Vulnerability Security Issue Remote Backdoor Connection to 207.246.119.209:3478
  • Linux How to Check Which NIC is Onboard eth0 or eth1 Ubuntu Centos Debian Mint
  • VboxManage VirtualBox NAT Network Issues Managment Troubleshooting
  • Dell PowerEdge Server iDRAC Remote KVM/IP Default Username, Password Reset and Login Information Solution
  • Nvidia Tesla GPUs K40/K80/M40/P40/P100/V100 at home/desktop hacking, cooling, powering, cable solutions Tutorial AIO Solutions
  • Stop ls in Linux Debian Mint CentOS Ubuntu from applying quotes around filenames and directory names
  • Thunderbird Attachment Download Error Corrupt Wrong filesize of 29 or 27 bytes Solution
  • Generic IP Camera LAN Default IP Settings DVR