You are not logged in.
Pages: 1
Hey,
I am writing automation for bootstrapping archlinux clusters using Ansible (although I have confirmed the following manually too).
However all of the following (seperate) commands fail:
arch-chroot /mnt grub-install --target=i386-pc /dev/sda
grub-install --target=x86_64-efi --efi-directory=/mnt/efi --bootloader-id=GRUB --boot-directory=/mnt/boot
arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB --boot-directory=/boot
They all fail with a message akin to:
Installing for i386-pc platform.
grub-install: error: disk `lvmid/emAQTn-nRnY-Q2JJ-MfFv-UKTd-LBO1-wHswZZ/JLgN4L-JcUi-98kk-aRFe-jtfW-NRFe-2qxc2Q' not found.
For each machine I have the following setup
I have 3 partitions on each disk:
- 1MiB partition for bios-boot (since im using GPT)
- ~1GiB efi partition for UEFI (trying to ensure bootable by both bios and efi)
- X GiB root partition across all drives which matches the smallest remaining space on any single drive (minus a little space for any manufacturer changes)
e.g:
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 683.8M 1 loop /run/archiso/airootfs
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1021M 0 part
│ ├─vulcan-vulcan_rmeta_0 254:9 0 4M 0 lvm
│ │ └─vulcan-vulcan 254:13 0 2G 0 lvm /mnt/efi
│ └─vulcan-vulcan_rimage_0 254:10 0 2G 0 lvm
│ └─vulcan-vulcan 254:13 0 2G 0 lvm /mnt/efi
└─sda3 8:3 0 1.8T 0 part
├─venus-venus_rmeta_0 254:0 0 4M 0 lvm
│ └─venus-venus 254:8 0 3.6T 0 lvm /mnt
└─venus-venus_rimage_0 254:1 0 1.8T 0 lvm
└─venus-venus 254:8 0 3.6T 0 lvm /mnt
sdb 8:16 0 1.8T 0 disk
├─sdb1 8:17 0 1M 0 part
├─sdb2 8:18 0 1021M 0 part
│ ├─vulcan-vulcan_rmeta_1 254:11 0 4M 0 lvm
│ │ └─vulcan-vulcan 254:13 0 2G 0 lvm /mnt/efi
│ └─vulcan-vulcan_rimage_1 254:12 0 2G 0 lvm
│ └─vulcan-vulcan 254:13 0 2G 0 lvm /mnt/efi
└─sdb3 8:19 0 1.8T 0 part
├─venus-venus_rmeta_1 254:2 0 4M 0 lvm
│ └─venus-venus 254:8 0 3.6T 0 lvm /mnt
└─venus-venus_rimage_1 254:3 0 1.8T 0 lvm
└─venus-venus 254:8 0 3.6T 0 lvm /mnt
sdc 8:32 0 1.8T 0 disk
├─sdc1 8:33 0 1M 0 part
├─sdc2 8:34 0 1021M 0 part
│ └─vulcan-vulcan_rimage_0 254:10 0 2G 0 lvm
│ └─vulcan-vulcan 254:13 0 2G 0 lvm /mnt/efi
└─sdc3 8:35 0 1.8T 0 part
├─venus-venus_rmeta_2 254:4 0 4M 0 lvm
│ └─venus-venus 254:8 0 3.6T 0 lvm /mnt
└─venus-venus_rimage_2 254:5 0 1.8T 0 lvm
└─venus-venus 254:8 0 3.6T 0 lvm /mnt
sdd 8:48 0 1.8T 0 disk
├─sdd1 8:49 0 1M 0 part
├─sdd2 8:50 0 1021M 0 part
│ └─vulcan-vulcan_rimage_1 254:12 0 2G 0 lvm
│ └─vulcan-vulcan 254:13 0 2G 0 lvm /mnt/efi
└─sdd3 8:51 0 1.8T 0 part
├─venus-venus_rmeta_3 254:6 0 4M 0 lvm
│ └─venus-venus 254:8 0 3.6T 0 lvm /mnt
└─venus-venus_rimage_3 254:7 0 1.8T 0 lvm
└─venus-venus 254:8 0 3.6T 0 lvm /mnt
I have two RAID volumes using lvmraid:
- RAID1 (vulcan) across all 1GiB efi partitions to ensure I can boot from any disk (via either uefi or bios boot)
- RAID10 (venus) across all root partitions
e.g:
# vgs -o +uuid
VG #PV #LV #SN Attr VSize VFree VG UUID
venus 4 1 0 wz--n- 7.26t 0 emAQTn-nRnY-Q2JJ-MfFv-UKTd-LBO1-wHswZZ
vulcan 4 1 0 wz--n- 3.98g 0 Yd3WlV-YfHV-jst1-LRfF-fu4J-pX81-YCba2h
# lvs -o +uuid
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert LV UUID
venus venus rwi-aor--- 3.63t 100.00 JLgN4L-JcUi-98kk-aRFe-jtfW-NRFe-2qxc2Q
vulcan vulcan rwi-aor--- <1.99g 100.00 o41vuh-o5fz-Dpqj-ijOP-P86b-Mcox-uOyDLW
# findmnt --real
TARGET SOURCE FSTYPE OPTIONS
/run/archiso/bootmnt /dev/sdf1 iso9660 ro,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8
/run/archiso/airootfs /dev/loop0 squashfs ro,relatime,errors=continue
/mnt /dev/mapper/venus-venus xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=128,swidth=512,noquota
└─/mnt/efi /dev/mapper/vulcan-vulcan vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro
# /dev/mapper/venus-venus
UUID=d7993d3a-67ee-4586-831f-b217f6e31b47 / xfs rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=128,swidth=512,noquota 0 1
# /dev/mapper/vulcan-vulcan
UUID=3A31-BBE6 /efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
I pacstrap / bootstrap the base system according to: https://gitlab.com/deepcypher/dc-auto/- … ation.yaml
This is largely just the usual steps from the archwiki
I then further bootstrap mkinitcpio and grub using: https://gitlab.com/deepcypher/dc-auto/- … /main.yaml
this creates a mkinitcpio sub-hook with efistub-copy using a 1-1 example from the archwiki. And it is the second to last step that fails.
grub-install --target=x86_64-efi --efi-directory=/mnt/efi --bootloader-id=GRUB --boot-directory=/mnt/boot
with a verbose output of:
...
grub-install: info: Scanning for lvm devices on disk lvm/vulcan-vulcan_rmeta_0.
grub-install: info: no LVM signature found.
grub-install: info: Scanning for DISKFILTER devices on disk lvm/vulcan-vulcan_rimage_0.
grub-install: info: Scanning for mdraid1x devices on disk lvm/vulcan-vulcan_rimage_0.
grub-install: info: Scanning for mdraid09_be devices on disk lvm/vulcan-vulcan_rimage_0.
grub-install: info: Scanning for mdraid09 devices on disk lvm/vulcan-vulcan_rimage_0.
grub-install: info: Scanning for dmraid_nv devices on disk lvm/vulcan-vulcan_rimage_0.
grub-install: info: Scanning for ldm devices on disk lvm/vulcan-vulcan_rimage_0.
grub-install: info: scanning lvm/vulcan-vulcan_rimage_0 for LDM.
grub-install: info: no LDM signature found.
grub-install: info: Scanning for lvm devices on disk lvm/vulcan-vulcan_rimage_0.
grub-install: info: no LVM signature found.
grub-install: info: Scanning for DISKFILTER devices on disk lvm/vulcan-vulcan.
grub-install: info: Scanning for mdraid1x devices on disk lvm/vulcan-vulcan.
grub-install: info: Scanning for mdraid09_be devices on disk lvm/vulcan-vulcan.
grub-install: info: Scanning for mdraid09 devices on disk lvm/vulcan-vulcan.
grub-install: info: Scanning for dmraid_nv devices on disk lvm/vulcan-vulcan.
grub-install: info: Scanning for ldm devices on disk lvm/vulcan-vulcan.
grub-install: info: scanning lvm/vulcan-vulcan for LDM.
grub-install: info: no LDM signature found.
grub-install: info: Scanning for lvm devices on disk lvm/vulcan-vulcan.
grub-install: info: no LVM signature found.
grub-install: info: drive = -1.
grub-install: error: disk `lvmid/emAQTn-nRnY-Q2JJ-MfFv-UKTd-LBO1-wHswZZ/JLgN4L-JcUi-98kk-aRFe-jtfW-NRFe-2qxc2Q' not found.
Any help would be appreciated. I have seen a tonne of posts like this relating to motherboard swaps or such issues, but this is upon initial installation, and does not entail any encryption. I have been searching google, the archwiki, and the forums for days to see if there was any advice. I have thus been unsuccessful which is why I am now finally posting here.
Last edited by GeorgeRaven (2022-05-30 15:41:27)
Offline
Please edit your post and use [ code ] tags (not quote tags or markdown) when posting output. This makes the output easier to read and provides a scroll box for long output.
https://wiki.archlinux.org/title/Genera … s_and_code
https://bbs.archlinux.org/help.php#bbcode
Offline
Hey @2ManyDogs
Thanks for linking the guidelines those were very helpful, I believe the new formatting of the question makes it significantly easier to read, so really thanks for pointing those out.
Offline
Pages: 1