Solved

mdadm create raid change name

Posted on 2012-03-17
3
732 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
3 Comments
 
LVL 76

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 500 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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 use conditional statements using Python.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now