New Fedora 30 install.
- We have
/dev/sda
as a hardware RAID 1 with 2 SSDs,/boot
and/boot/efi
are in it as well. - We have 6 HDD’s in a RAID 10 with
/dev/sdb a
nd separate partitions for/var
and/home
(and/
before this).
*I created/dev/sda3
partition and formatted as XFS and a LVM - We copied everything from the old root (/dev/mapper/fedora-root), to /dev/mapper/root-lvroot.
- I updated
/etc/fstab
with the new/dev/sda3
for root - I ran
grub2-mkconfig
.
Reboots and goes into emergency mode with these errors:
can't open initiatorname configuration file /etc/iscsi/initiatorname.iscsi
Warning: InitiatorName file /etc/iscsi/ initiatorname .iscsi does not exist or does not contain a properly formatted InitiatorName
*can't open InitiatorAlias* configuration file /etc/iscsi/initiatorname iscsi
Here’s a screenshot of blkid
in emergency mode:
Did I miss a step? Should I run grub-install
as suggested here?
Here’s what it looks like in gparted:
edit: From systemRescueCD I tried:
grub2-install --no-floppy --recheck /dev/sda
grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.
Edit: results of df -H
df -H
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/root-lvroot 236G 20G 217G 9% /
/dev/sda1 2.0G 8.2M 2.0G 1% /boot
dev 68G 20M 68G 1% /dev
/dev/sda2 2.0G 173M 1.7G 10% /boot/efi
run 68G 97M 68G 1% /run
and when trying to reinstall with dnf:
dnf reinstall grub2-efi grub2-efi-modules shim
Unable to detect release version (use '--releasever' to specify release version)
Fedora Modular $releasever - x86_64 349 kB/s | 53 kB 00:00
Failed to download metadata for repo 'fedora-modular'
Error: Failed to download metadata for repo 'fedora-modular'
mount
/dev/mapper/root-lvroot on / type xfs (rw,relatime,attr2,inode64,sunit=512,swidth=512,noquota)
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=65709296k,nr_inodes=16427324,mode=755)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=65709296k,nr_inodes=16427324,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda2 on /boot/efi type ext4 (rw,relatime,stripe=64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
Still in SystemRescueCD:
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
/usr/bin/grub2-editenv: error: cannot open `/boot/grub2/grubenv.new': No such file or directory.
Generating grub configuration file ...
mkdir: cannot create directory '/var/lib/os-prober/mount': No such file or directory
mkdir: cannot create directory '/var/lib/os-prober/mount': No such file or directory
mkdir: cannot create directory '/var/lib/os-prober/mount': No such file or directory
mkdir: cannot create directory '/var/lib/os-prober/mount': No such file or directory
done
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 788.8M 1 loop
sda 8:0 0 223G 0 disk
├─sda1 8:1 0 1.9G 0 part /boot/efi
├─sda2 8:2 0 1.9G 0 part
└─sda3 8:3 0 219.3G 0 part
└─root-lvroot 254:0 0 219.3G 0 lvm /
sdb 8:16 0 4.9T 0 disk
└─sdb1 8:17 0 4.6T 0 part
├─fedora-root 254:1 0 791.6G 0 lvm
├─fedora-swap 254:2 0 14.9G 0 lvm
├─fedora-var 254:3 0 186.3G 0 lvm
└─fedora-home 254:4 0 3.7T 0 lvm
sr0 11:0 1 841M 0 rom
Edit: some of the above errors were because /var
needed to be mounted. Once I did that I could run the commands but same issue continues.
fsarchiver probe simple
[======DISK======] [=============NAME==============] [====SIZE====] [MAJ] [MIN]
[sda ] [PERC H740P Adp ] [ 223.00 GB] [ 8] [ 0]
[sdb ] [PERC H740P Adp ] [ 4.91 TB] [ 8] [ 16]
[sr0 ] [Virtual CD ] [ 841.00 MB] [ 11] [ 0]
[=====DEVICE=====] [==FILESYS==] [======LABEL======] [====SIZE====] [MAJ] [MIN]
[loop0 ] [squashfs ] [<unknown> ] [ 788.83 MB] [ 7] [ 0]
[sda1 ] [vfat ] [/boot/efi ] [ 1.86 GB] [ 8] [ 1]
[sda2 ] [ext4 ] [/boot ] [ 1.86 GB] [ 8] [ 2]
[sda3 ] [LVM2_member] [<unknown> ] [ 219.27 GB] [ 8] [ 3]
[sdb1 ] [LVM2_member] [<unknown> ] [ 4.61 TB] [ 8] [ 17]
[dm-0 ] [xfs ] [<unknown> ] [ 219.27 GB] [254] [ 0]
[dm-1 ] [xfs ] [root ] [ 791.62 GB] [254] [ 1]
[dm-2 ] [swap ] [swap ] [ 14.90 GB] [254] [ 2]
[dm-3 ] [xfs ] [<unknown> ] [ 186.27 GB] [254] [ 3]
[dm-4 ] [xfs ] [<unknown> ] [ 3.64 TB] [254] [ 4]
After editing the kernel options during the boot for the old root directory, I changed root to point to /dev/sda3. Now emergency mode errors out with: Failed to mount /sysroot
. Is the problem coming from making /dev/sda3
a LVM?
And this command is finding the old root:
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Generating grub configuration file ...
Found Fedora 30 (Server Edition) on /dev/mapper/fedora-root
Here’s what I have in /etc/default/grub
:
cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="resume=/dev/mapper/fedora-swap rd.lvm.lv=root/lvroot rd.lvm.lv=fedora/swap rhgb quiet audit=0"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true