On November 26, 2015 10:30:21 PM PST, garrett.timmins@speedymail.org wrote:
I inherited a machine from a relative. It was running an old version of OpenSUSE 12.3. I'm new to OpenSUSE. I upgraded it so that it's now running OpenSUSE Leap.
It has 4 drives in my desktop. There's a RAID-1 array consisting of those four drives (2 as fallback)
cat /proc/mdstat Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] md126 : active raid1 sdc1[2] sdb1[1] sda1[0] sdd1[3] 1060160 blocks [4/4] [UUUU] bitmap: 0/130 pages [0KB], 4KB chunk
across partitions
/dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
That array's UUID is (e.g.)
blkid /dev/md126 -s UUID /dev/md126: UUID="a1234567-0123-0123-0123-ab1234567890"
The system's '/boot' partition is on that array. The rest is on an LVM on another array.
/etc/fstab UUID=a1234567-0123-0123-0123-ab1234567890 /boot ext4 defaults 0 2 /dev/VG0/SYSTEM / ext4 defaults 1 1
The old system bootloader was 'old' Grub v0.97. I thought the upgrade to Leap would update automatically to Grub2.
It didn't. I still have only 'old' Grub package.
So now I want to upgrade it to 'new' Grub2 v2.02.
I installed the Grub2 packages
rpm -qa | grep -i grub2 grub2-x86_64-xen-2.02~beta2-20.10.1.x86_64 grub2-i386-pc-2.02~beta2-20.10.1.x86_64 grub2-2.02~beta2-20.10.1.x86_64 grub2-branding-openSUSE-13.2-3.6.1.noarch grub2-x86_64-efi-2.02~beta2-20.10.1.x86_64
The old Grub is still installed
rpm -qa | grep -i grub- grub-0.97-200.1.3.x86_64
For grub2, I created an /etc/default/grub and executed
grub2-mkconfig -o /boot/grub2/grub.cfg
Now I know I need to install grub2 as the bootloader to be used on boot, instead of old grub?
Is the
grub2-install
command the right command?
When I look at that command's usage
grub2-install --help Usage: grub2-install [OPTION...] [OPTION] [INSTALL_DEVICE]
it says
INSTALL_DEVICE must be system device filename.
Since I have '/boot' partition on a 4-disk RAID-1 array, what's the right way to install grub2 as the bootloader default on that array?
Do I execute grub2-install 4 times, once for each drive?
grub2-install /dev/sda grub2-install /dev/sdb grub2-install /dev/sdc grub2-install /dev/sdd
Of course my goal is to make sure grub2 gets used, I'm able to boot, and I have some redundancy.
- Garrett
What was wrong with regular old grub? Why mess with that? -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org