Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I set up raid 1 using mdadm with 2 SATA disks
The partition table for SATA drive A details:
/dev/sda1 /boot Linux raid autodetect
/dev/sda2 Extended
/dev/sda5 / Linux raid autodetect
/dev/sda6 swap Linux swap
/dev/sda7 /usr Linux
/dev/sda8 /var Linux
/dev/sda9 /home Linux
/dev/sda10 /tmp Linux
Partition table for SATA drive B is same as SATA drive A
The set up as follows:
# mknod /dev/md1 b 9 1
# mdadm --create /dev/md0 --level=1 --raid-devices=2 missing /dev/sdb1
# mdadm --create /dev/md1 --level=1 --raid-devices=2 missing /dev/sdb5
# mdadm --examine --scan >> /etc/mdadm.conf
- 2 lines below were added to /etc/fstab (on SATA drive A)
/dev/md0 /mnt/md0 reiserfs defaults 0 0
/dev/md1 /mnt/md1 reiserfs defaults 0 0
- reboot the machine
- when I type mount, the /dev/md0 is currently mounted but /dev/md1 was not mounted.
- An error message 'mount: special device /dev/md1 does not exist' during machine boot
Questions:
- anything wrong in my set up ?
- I create /dev/md1 with mknod and this md devices was disappear after reboot. Is there a way that I can fix it?
- I want to mirror all the partitions for SATA drive A after the /dev/md0 and /dev/md1 are created successfully.
If I want to mirror all the partition for disk A, do I just create raid devices for all the
individual partitions i.e /dev/sda1 to /dev/sda10 except extended partition /dev/sda2 and the swap /dev/sda6?
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506
Rep:
What does fstab look like and also what does cat /proc/mdstat say
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.