[opensuse-kernel] Proper procedures & install locations for grub2 updates when booting Opensuse Leap to RAID1 on EFI hardware?
I'm grub2-booting OpenSUSE Leap Xen on UEFI hardware, with /boot & OS on GPT RAID1 array. I'd like to know what the contents of /boot/grub/device.map /etc/default/grub_installdevice should be in this GRUB2+EFI config to ensure correct grub2 installation to the right location, and to take best advantage of the 2-drive &/or RAID redundancy. And, what the procedure _should_ be after each /etc/default/grub change -- should it be mkinitrd -v update-bootloader --reinit each time? My configuration is as follows: My grub2, kernel & xen are current, uname -rm 4.4.0-3.g0567b9b-default x86_64 rpm -qa | egrep -i "xen-4|grub2-2" xen-4.6.0_06-403.4.x86_64 grub2-2.02~beta2-76.1.x86_64 I've got two drives /dev/sde, /dev/sdf They're partitioned as Device Start End Sectors Size Type /dev/sde1 2048 4095 2048 1M BIOS boot /dev/sde2 4096 618495 614400 300M EFI System /dev/sde3 618496 2715646 2097151 1024M Linux RAID /dev/sde4 2715648 1953525134 1950809487 930.2G Linux RAID Device Start End Sectors Size Type /dev/sdf1 2048 4095 2048 1M BIOS boot /dev/sdf2 4096 618495 614400 300M EFI System /dev/sdf3 618496 2715646 2097151 1024M Linux RAID /dev/sdf4 2715648 1953525134 1950809487 930.2G Linux RAID I've got two RAID1 arrays configured cat /proc/mdstat Personalities : [raid1] [raid10] md0 : active raid1 sde3[0] sdf3[1] 1048512 blocks super 1.0 [2/2] [UU] bitmap: 0/1 pages [0KB], 65536KB chunk md1 : active raid1 sdf4[1] sde4[0] 975404544 blocks super 1.0 [2/2] [UU] bitmap: 1/8 pages [4KB], 65536KB chunk /dev/md0 holds "/boot mount | grep md0 /dev/md0 on /boot type ext4 (rw,noatime,journal_checksum,data=ordered) and /dev/md1 holds the OS etc pvs PV VG Fmt Attr PSize PFree /dev/md1 VG_X001 lvm2 a-- 930.19g 813.50g lvs | grep X001 LV_ROOT VG_X001 -wi-ao---- 20.00g LV_SWAP VG_X001 -wi-ao---- 2.00g LV_HOME VG_X001 -wi-ao---- 10.00g ... fstab mounts by UUID, where blkid /dev/md/x001\:0 -s UUID /dev/md/x001:0: UUID="3e40f30f-87ba-421c-9470-9d793536968a" and blkid /dev/sde2 /dev/sdf2 -s UUID -s TYPE -s PARTLABEL /dev/sde2: UUID="986E-2DB9" TYPE="vfat" PARTLABEL="EFI System Partition" /dev/sdf2: UUID="77A6-EB3D" TYPE="vfat" PARTLABEL="EFI System Partition" so cat /etc/fstab /dev/disk/by-uuid/3e40f30f-87ba-421c-9470-9d793536968a /boot ext4 noatime,acl,user_xattr,journal_checksum,barrier=1 0 2 UUID=986E-2DB9 /boot/efi vfat umask=0002,utf8=true,x-systemd.automount,noauto 0 2 ... When I make changes to /etc/default/grub, and exec grub2-mkconfig -o /boot/grub2/grub.cfg /boot/efi is populated/updated correctly /usr/bin/tree /boot/efi/EFI/opensuse/ /boot/efi/EFI/opensuse/ |- grub.xen-files |- grubx64.efi |- initrd-4.4.0-3.g0567b9b-default |- vmlinuz-4.4.0-3.g0567b9b-default |- xen-4.6.0_06-403.cfg |- xen-4.6.0_06-403.efi efi vars are updated efibootmgr -v BootCurrent: 0000 Timeout: 1 seconds BootOrder: 0000,0001 Boot0000* opensuse HD(2,1000,96000,6196ccc5-1e27-48e6-8372-2e64118e5d03)File(\EFI\OPENSUSE\GRUBX64.EFI) Boot0001* UEFI: Built-in EFI Shell Vendor(5023b95c-db26-429b-a648-bd47664c8012,)..BO and the system boots correctly. Atm, neither /boot/grub2/device.map /etc/defaults/grub_installdevice exist on this server. Where is grub2 actually being installed, by default? Since this is GPT, IIUC we're not installing to an MBR. How do we ensure that *both* EFI boot partitions are being used -- i.e., not just /dev/sde2, but /dev/sdf2 as well? What are the correct update procedures after /etc/default/grub changes? Thanks. -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (1)
-
suse.dev@fea.st