HowTo: Linux Rename a RAID Array From md0 to md2 | Linux Today

HowTo: Linux Rename a RAID Array From md0 to md2

Written By
A
Anonymous
Nov 26, 2012

I am moving a raid array called /dev/md0 from serverA to serverB. On serverB /dev/md0 is already in use. How do I rename a RAID array from /dev/md0 to /dev/md2?

You can move a RAID array (software based RAID array) to another system. However, if /dev/md0 is already is use on serverB, you can rename /dev/md0 as /dev/m2 (or next available md device). In this example:

/dev/md0 is original software based RAID array.
/dev/md0 is made of the two partitions called /dev/sdc1 and /dev/sdd2.
I am going to rename /dev/md0 as /dev/md2 i.e. set /dev/md2 as the new device name.

A

Anonymous

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.