New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
RAID-1 in Ubuntu Server
Hello,
I am planning to setup RAID-1 in my home server. I have two disks. Before trying with those i wanted to try this in Virtual Box. I created Two storage disk, VDI. Then installed with RAID-1.
/dev/sda1: 12.1G, Ext4, /
/dev/sda2: 2.9G, SWAP, SWAP
/dev/sdb1: 12.1G, Ext4, /
/dev/sdb2: 2.9G, SWAP, SWAP
I have two md,
/dev/md0: sda1+sdb1
/dev/md1: sda2+sdb2
Now, i wanted to test if my one disk fails, what happens and what i can do then?
So, i turned off/shutdown the VBOX, from settings i removed one disk. If i boot now, it takes me to initramfs.
- What should i do then?
- Is it supposed to boot with one disk?
- How i can recover from this state?
Thank You.
Comments
Following
Do you have a separate boot partition on both disks with grub pointing to each partition?
Post the output of
fdisk -l
while both drives are connected please.>
Here it is:
http://pastebin.com/9uGgu1vi
Go down to "Degraded RAID" (https://help.ubuntu.com/lts/serverguide/advanced-installation.html). Does the instructions there work?
Why, i.e. what are the actual error messages that it shows you before taking to initramfs?
In general (Linux + properly set up mdadm), yes. In Ubuntu though, with all its systemd shit and whatnot, who knows.
ERROR: https://postimg.org/image/wfefbhccd/
No....
Ok it was a bug. https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1635049
I had to install the deb file and it is working now.
http://launchpadlibrarian.net/275652884/mdadm_3.4-4_amd64.deb