Re: F19 RAID1 drive died - what if it was sda that died?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



/boot is on /:
[0:root@elmo raid]$ df
Filesystem      Size  Used Avail Use% Mounted on
/dev/md2        1.9T  834G 1021G  45% /
/dev/sdc2       3.6T  2.3T  1.4T  63% /bacula

dos partition table (/dev/sdb is the same):
[0:root@elmo raid]$ fdisk -l /dev/sda
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x7eb4f1d4

Device     Boot    Start        End    Sectors  Size Id Type
/dev/sda1           2048   16779263   16777216    8G 82 Linux swap / Solaris
/dev/sda2  *    16779264 3907029167 3890249904  1.8T fd Linux raid autodetect

Run:
grub2-install /dev/sda
grub2-install /dev/sdb

Now, you can boot from either drive.

Bill

On 3/15/2018 11:52 AM, Gary Stainburn wrote:
On Thursday 15 March 2018 15:43:49 Tim wrote:
I thought with RAID1 being "all drives identical," and that unless you
were using yet another drive to boot from (separate from your raid),
that each drive would have a boot partition on it.  Following that
train of thought, if your controller didn't let you boot from a
different drive (which seems a serious shortcoming, to me), wouldn't it
be possible to just unplug the drives and put your still working one
into the first slot?

Just a brute force and ignorance approach to the situation...

Seems to me that the idea of mirrored drives is to give an easy way of
dealing with drive failures, surely it shouldn't impose complex
routines to get past the first drive going bad.
Tim,

That is exactly what I thought until I was in that situation. sda failed so I 
disconnected it, leaving just sdb connected. It refused to boot. I tried 
swapping the cable to put it in the same SATA port on the board but it still 
didn't boot.

Last time was some time ago, and /boot could not be a RAID device. This 
time /boot is a RAID device, but /boot/efi isn't and is just a vfat 
partition.

Hence my question. If I just dd this partition from sda to sdb would that then 
make sdb bootable?
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux