Solved

mdadm create raid change name

Posted on 2012-03-17
3
762 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 78

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

705 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