?
Solved

mdadm create raid change name

Posted on 2012-03-17
3
Medium Priority
?
765 Views
Last Modified: 2012-03-18
in ubuntu, I created a raid with this command

mdadm -C /dev/md0 --level=raid1 --raid-devices=2 /dev/sdb /dev/sdc

And works fine, but when I reboot the system, the new array are in /dev/md127 (I hope that was in /dev/md0) Why? and how can I fix it to maintain the same pointer /dev/md0 that in the creation command?

Regards
0
Comment
Question by:lnrivera
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 79

Expert Comment

by:arnold
ID: 37734064
df -k
more /etc/mdadm.conf
more /etc/fstab

your initial setup might be referring or is using /dev/md127 to assemble the two drives you referenced.

There is no information on what you have currently.
0
 
LVL 43

Accepted Solution

by:
ravenpl earned 2000 total points
ID: 37734533
This is new kernel "feature".

You need to create proper /etc/mdadm.conf

In Your case execute (as root)
# echo ’DEVICE /dev/sd*[a-z]’ > /etc/mdadm.conf
# mdadm --detail --scan >> /etc/mdadm.conf
edit the /etc/mdadm.conf and change /dev/md127 to /dev/md0
Now either wait for new kernel update, or force rebuilding initramfs
# update-initramfs -u
0
 

Author Closing Comment

by:lnrivera
ID: 37734563
Great!
0

Featured Post

Need protection from advanced malware attacks?

Look no further than WatchGuard's Total Security Suite, providing defense in depth against today's most headlining attacks like Petya 2.0 and WannaCry. Keep your organization out of the news with protection from known and unknown threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question