Garuda MATE - Installing across multiple drives (RAID0, LVM)

Hello,
I have recently finished building a computer, and am trying to install Garuda on it. Thinking it would be a simple process, I put 2 nvme ssd's in the computer with the intention of installing my OS over both of them as a single volume. I cannot figure out how to do this. So far I have only been able to install a broken system onto a raid0 array. At the moment, grub boots fine and I see the garuda loading screen. However, this loads for an infinite amount of time and if I press ESC I am met with:

setfont: KDFONTOP: Function not implemented
ERROR: resume: hibernation device 'UUID=e54f5ef2-c2b8-4f60-af05-d7bc44944bca' not found
mount: /new_root: can't find UUID=8ebd68ab-42eb-4cd9-9a23-bb5b9af402cb.
You are now being dropped into an emergency shell.
sh: can't access tty; job control turned off

garuda-inxi:

from chrooted installer terminal:
---------------------------------------------------------------------------------------------------------------------
[root@garuda-mate /]# garuda-inxi
12System:
  12Kernel 5.19.7-zen2-1-zen 12arch x86_64 12bits 64 12compiler N/A 12Console N/A 12Distro Garuda Linux
    12base Arch Linux
12Machine:
  12Message No machine data: try newer kernel. Is dmidecode installed? Try -M --dmidecode.
Can't use an undefined value as an ARRAY reference at /usr/bin/inxi line 10383.
System:
  Kernel: 5.19.7-zen2-1-zen arch: x86_64 bits: 64 compiler: N/A Console: N/A Distro: Garuda Linux
    base: Arch Linux
Machine:
  Message: No machine data: try newer kernel. Is dmidecode installed? Try -M --dmidecode.
Can't use an undefined value as an ARRAY reference at /usr/bin/inxi line 10383.
Garuda (2.6.7-1):
  System install date:     2022-09-25
  Last full system update: 2022-09-25 ↻
  Is partially upgraded:   No
  Relevant software:       None
  Windows dual boot:       No/Undetected
  Snapshots:               Snapper
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
  Failed units:
---------------------------------------------------------------------------------------------------------------------
from dropped root:
---------------------------------------------------------------------------------------------------------------------
sh: garuda-inxi: not found

I have tried:

  • btrfs raid - cannot install the system
  • mdadm raid - cannot boot into system
  • LVM - do not know how to implement with garuda
  • attempted the Arch raid-install page, am unsure how to use it with garuda, as it has its own installer

Most recent steps:

  1. created array with mdadm
  2. started installer
  3. set mount point "/" on btrfs raid0 array (/dev/md0p1), gave root flag
  4. set mount /boot/efi to physical drive partition (nvme0n1p1) on fat32 with boot flag
  5. proceed with install, press done, staying in the live session.
  6. update /tmp/calamares-root-05cvay7c/etc/mdadm.conf per arch RAID page, section 5.1
  7. update /tmp/calamares-root-05cvay7c/etc/mkinitcpio.conf per arch RAID page, section 5.2
  8. set root=/dev/md/0p1 per arch RAID page 5.3.
  9. reboot

Setting raid0.defaultlayout=2 fails with bash: raid0.defaultlayout=2: command not found

For safety purposes when if raid0 as the os root, I have 10tb worth of raid5 HDD that I plan on backing it up to weekly, if I can ever figure this out.
If there is an easier way to use both disks as a single volume, please let me know. I will absolutely use it over RAID. I would use LVM, but I cant figure out how to get it working with the installer partitioner.
If I could mount just the root directories that grow from normal use/installing packages to the raid array/logical volume and put the rest of it elsewhere, I would be very happy with that as well. I know /home and /usr are the big ones, but I am unsure if there are any more and worry about restricting the others to a very small disk space.

This is my first forum post ever, please be nice and thank you for your help!

Welcome :slight_smile:

I’ll be nice today :wink:

Why do you torture yourself with it?

Install Garuda on the first hard disk, there is automatically a snapshot of your / area backed up for a restore, but that does not create a real backup.
On your second harddisk you backup whatever you want with rsync, vorta or borg as you like.
The really important stuff you backup on an external drive and additionally in the cloud to be on the safe side.

BTW, this is not a full garuda-inxi, you can post it here between three ~ on top and last line.

1 Like

I've been going through the pain of dealing with this because I very much want a single partition for the whole OS, and because I have a spare computer that I can use while I tinker with this one.
I apologize for the incomplete garuda-inxi, that is all that it gave me from the terminal.
I posted garuda-inxi a pastebin because I did not know that the three ` collapsed large sections of text down.

Nope

Summary

This text will be hidden text.

~~~
garuda-inxi
~~~
do this.

Summary

or backtick too

garuda-inxi

Let me have a look at garuda-inxi :slight_smile:

1 Like

here is garuda-inxi

[root@garuda-mate /]# garuda-inxi
12System:
  12Kernel 5.19.7-zen2-1-zen 12arch x86_64 12bits 64 12compiler gcc 12v 12.2.0
    12parameters BOOT_IMAGE=/boot/vmlinuz-x86_64 lang=en_US keytable=us tz=UTC misobasedir=garuda
    misolabel=GARUDA_MATE_TALON quiet systemd.show_status=1 systemd.unified_cgroup_hierarchy=1
    driver=free nouveau.modeset=1 i915.modeset=1 radeon.modeset=1
  12Console N/A 12Distro Garuda Linux 12base Arch Linux
12Machine:
  12Type Desktop 12Mobo ASUSTeK 12model ROG STRIX X570-I GAMING 12v Rev X.0x 12serial <filter>
    12UEFI American Megatrends 12v 4403 12date 04/27/2022
12CPU:
  12Info 12model AMD Ryzen 9 5950X 12socket AM4 12bits 64 12type MT MCP 12arch Zen 3 12gen 4 12built 2021-22
    12process TSMC n7 (7nm) 12family 0x19 (25) 12model-id 0x21 (33) 12stepping 2 12microcode 0xA20120A
  12Topology 12cpus 1x 12cores 16 12tpc 2 12threads 32 12smt enabled 12cache 12L1 1024 KiB 12desc d-16x32 KiB;
    i-16x32 KiB 12L2 8 MiB 12desc 16x512 KiB 12L3 64 MiB 12desc 2x32 MiB
  12Speed (MHz) 12avg 2275 12high 3400 12min/max 2200/5083 12boost enabled 12base/boost 3400/5050 12scaling
    12driver acpi-cpufreq 12governor schedutil 12volts 1.1 V 12ext-clock 100 MHz 12cores 121 3400 122 2200 123 2200
    124 2200 125 2200 126 2200 127 2200 128 2200 129 2200 1210 2200 1211 2200 1212 2200 1213 2200 1214 2200 1215 2200
    1216 2200 1217 2200 1218 2200 1219 2200 1220 2200 1221 2200 1222 2200 1223 2200 1224 2200 1225 2200 1226 3400
    1227 2200 1228 2200 1229 2200 1230 2200 1231 2200 1232 2200 12bogomips 217600
  12Flags avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  12Vulnerabilities
  12Type itlb_multihit 12status Not affected
  12Type l1tf 12status Not affected
  12Type mds 12status Not affected
  12Type meltdown 12status Not affected
  12Type mmio_stale_data 12status Not affected
  12Type retbleed 12status Not affected
  12Type spec_store_bypass 12mitigation Speculative Store Bypass disabled via prctl
  12Type spectre_v1 12mitigation usercopy/swapgs barriers and __user pointer sanitization
  12Type spectre_v2 12mitigation Retpolines, IBPB: conditional, IBRS_FW, STIBP: always-on, RSB
    filling, PBRSB-eIBRS: Not affected
  12Type srbds 12status Not affected
  12Type tsx_async_abort 12status Not affected
12Graphics:
  12Device-1 NVIDIA GA102 [GeForce RTX 3080 Lite Hash Rate] 12vendor eVga.com. 12driver nouveau 12v kernel
    12alternate nvidia_drm,nvidia 12non-free 515.xx+ 12status current (as of 2022-07) 12arch Ampere
    12code GAxxx 12process TSMC n7 (7nm) 12built 2020-22 12pcie 12gen 3 12speed 8 GT/s 12lanes 16 12link-max 12gen 4
    12speed 16 GT/s 12ports 12active HDMI-A-1 12empty DP-1,DP-2,DP-3 12bus-ID 0a:00.0 12chip-ID 10de:2216
    12class-ID 0300
  12Display 12server X.org 12v 1.21.1.4 12compositor marco 12v 1.26.0 12driver 12gpu nouveau 12note  X driver
    n/a 12tty 80x40
  12Monitor-1 HDMI-A-1 12model AOC 2460G5 12serial <filter> 12built 2018 12res 1920x1080 12dpi 92 12gamma 1.2
    12size 531x299mm (20.91x11.77") 12diag 609mm (24") 12ratio 16:9 12modes 12max 1920x1080 12min 720x400
  12Message Unable to show GL data. Required tool glxinfo missing.
12Audio:
  12Device-1 NVIDIA GA102 High Definition Audio 12vendor eVga.com. 12driver snd_hda_intel 12v kernel 12pcie
    12gen 3 12speed 8 GT/s 12lanes 16 12link-max 12gen 4 12speed 16 GT/s 12bus-ID 0a:00.1 12chip-ID 10de:1aef
    12class-ID 0403
  12Device-2 AMD Starship/Matisse HD Audio 12vendor ASUSTeK 12driver snd_hda_intel 12v kernel 12pcie 12gen 4
    12speed 16 GT/s 12lanes 16 12bus-ID 0c:00.4 12chip-ID 1022:1487 12class-ID 0403
  12Sound Server-1 ALSA 12v k5.19.7-zen2-1-zen 12running yes
  12Sound Server-2 PulseAudio 12v 16.1 12running no
  12Sound Server-3 PipeWire 12v 0.3.57 12running yes
12Network:
  12Device-1 Intel Wi-Fi 6 AX200 12driver iwlwifi 12v kernel 12pcie 12gen 2 12speed 5 GT/s 12lanes 1
    12bus-ID 05:00.0 12chip-ID 8086:2723 12class-ID 0280
  12IF wlp5s0 12state down 12mac <filter>
  12Device-2 Intel I211 Gigabit Network 12vendor ASUSTeK 12driver igb 12v kernel 12pcie 12gen 1
    12speed 2.5 GT/s 12lanes 1 12port f000 12bus-ID 06:00.0 12chip-ID 8086:1539 12class-ID 0200
  12IF enp6s0 12state up 12speed 1000 Mbps 12duplex full 12mac <filter>
12Bluetooth:
  12Device-1 Intel AX200 Bluetooth 12type USB 12driver btusb 12v 0.8 12bus-ID 3-6:3 12chip-ID 8087:0029
    12class-ID e001
  12Report bt-adapter 12ID hci0 12rfk-id 0 12state up 12address N/A
12RAID:
  12Supported mdraid levels raid0
  12Device-1 md0 12maj-min 9:0 12type mdraid 12level raid-0 12status active 12state clean 12size 3.62 TiB
  12Info 12report N/A 12blocks 3888936960 12chunk-size 512k 12super-blocks 1.2
  12Components 12Online
  120 nvme0n1p3 12maj-min 259:4 12size 1.81 TiB 12state active sync
  121 nvme1n1p3 12maj-min 259:7 12size 1.81 TiB 12state active sync
  12Device-2 md1 12maj-min 9:1 12type mdraid 12level raid-0 12status active 12state clean 12size 15.98 GiB
  12Info 12report N/A 12blocks 16758784 12chunk-size 512k 12super-blocks 1.2
  12Components 12Online
  120 nvme0n1p2 12maj-min 259:3 12size 8 GiB 12state active sync
  121 nvme1n1p2 12maj-min 259:6 12size 8 GiB 12state active sync
12Drives:
  12Local Storage 12total 12raw 17.31 TiB 12usable 17.31 TiB 12used 8.53 GiB (0.0%)
  12SMART Message Required tool smartctl not installed. Check --recommends
  12ID-1 /dev/nvme0n1 12maj-min 259:0 12vendor Samsung 12model SSD 980 PRO 2TB 12size 1.82 TiB 12block-size
    12physical 512 B 12logical 512 B 12speed 63.2 Gb/s 12lanes 4 12type SSD 12serial <filter> 12rev 5B2QGXA7
    12temp 31.9 C
  12ID-2 /dev/nvme1n1 12maj-min 259:1 12vendor Samsung 12model SSD 980 PRO 2TB 12size 1.82 TiB 12block-size
    12physical 512 B 12logical 512 B 12speed 63.2 Gb/s 12lanes 4 12type SSD 12serial <filter> 12rev 5B2QGXA7
    12temp 41.9 C
  12ID-3 /dev/sda 12maj-min 8:0 12vendor Seagate 12model ST5000LM000-2AN170 12size 4.55 TiB 12block-size
    12physical 4096 B 12logical 512 B 12speed 6.0 Gb/s 12type N/A 12serial <filter> 12rev 0001
  12ID-4 /dev/sdb 12maj-min 8:16 12vendor Seagate 12model ST5000LM000-2AN170 12size 4.55 TiB 12block-size
    12physical 4096 B 12logical 512 B 12speed 6.0 Gb/s 12type N/A 12serial <filter> 12rev 0001
  12ID-5 /dev/sdc 12maj-min 8:32 12vendor Seagate 12model ST5000LM000-2AN170 12size 4.55 TiB 12block-size
    12physical 4096 B 12logical 512 B 12speed 6.0 Gb/s 12type N/A 12serial <filter> 12rev 0001
  12ID-6 /dev/sdd 12maj-min 8:48 12type USB 12vendor SanDisk 12model Ultra 12size 28.64 GiB 12block-size
    12physical 512 B 12logical 512 B 12type N/A 12serial <filter> 12rev 1.00
12Partition:
  12ID-1 / 12raw-size 3.62 TiB 12size 3.62 TiB (100.00%) 12used 8.33 GiB (0.2%) 12fs btrfs 12block-size 4096 B
    12dev /dev/md0p1 12maj-min 259:8
  12ID-2 /boot 12raw-size 512 MiB 12size 511 MiB (99.80%) 12used 199.7 MiB (39.1%) 12fs vfat
    12block-size 512 B 12dev /dev/nvme1n1p1 12maj-min 259:5
  12ID-3 /home 12raw-size 3.62 TiB 12size 3.62 TiB (100.00%) 12used 8.33 GiB (0.2%) 12fs btrfs
    12block-size 4096 B 12dev /dev/md0p1 12maj-min 259:8
  12ID-4 /var/log 12raw-size 3.62 TiB 12size 3.62 TiB (100.00%) 12used 8.33 GiB (0.2%) 12fs btrfs
    12block-size 4096 B 12dev /dev/md0p1 12maj-min 259:8
  12ID-5 /var/tmp 12raw-size 3.62 TiB 12size 3.62 TiB (100.00%) 12used 8.33 GiB (0.2%) 12fs btrfs
    12block-size 4096 B 12dev /dev/md0p1 12maj-min 259:8
12Swap:
  12Kernel 12swappiness 133 (default 60) 12cache-pressure 100 (default)
  12ID-1 swap-1 12type zram 12size 31.25 GiB 12used 0 KiB (0.0%) 12priority 100 12dev /dev/zram0
12Sensors:
  12System Temperatures 12cpu 38.5 C 12mobo N/A
  12Fan Speeds (RPM) N/A
12Info:
  12Processes 546 12Uptime 4m 12wakeups 0 12Memory 31.26 GiB 12used 6.43 GiB (20.6%) 12Init systemd 12v 251
    12default graphical 12tool systemctl 12Compilers 12gcc 12.2.0 12Packages 12pacman 1186 12lib 310 12Client Unknown
  Client: kthreadd 12inxi 3.3.20
Garuda (2.6.7-1):
  System install date:     2022-09-25
  Last full system update: 2022-09-25
  Is partially upgraded:   No
  Relevant software:       NetworkManager connman
  Windows dual boot:       No/Undetected
  Snapshots:               Snapper
Running in chroot, ignoring command 'list-units'
  Failed units:

thank you for your patience

1 Like

Funny, I have a tinker computer like that too, but yours is a bit faster.
Well done.
But unfortunately I can’t help you with your problem, maybe a RAID expert will jump in.

bogomips: 217187

Question, where do you get this “12”, it doesn’t show up for me, live ISO only???

Thank you very much for your help. I am not sure where the 12 comes from. You are probably right, though. It is likely a live ISO thing.

There is a difference between what you want and what you need.
I can understand that you want to experiment

Well, the original value of experimentation is that you enjoy the adventure yourself. Then, asking for help for edge case, imaginary, irregular, or unneeded scenarios, takes away the joy/fun of achieving this yourself. :wink:

Since you can break that PC with no cost, it would be great if you tested multiple potential ways of doing what you want, and post your feedback, so more people have profit. :+1:

1 Like

It’s from inxi color, when in a color incapable TTY, you need to add some --no-color param (example, not the actual inxi param).

3 Likes

I will do my best. Like I said I am very new to linux, especially arch, so I wouldn’t expect much out of me.

speaking of experimentation, I just rebuilt my initramfs-linux-zen.iso image with

MODULES=(. . . dm-raid dm_integrity raid0 raid1 raid10 raid456 . . .)
HOOK=(. . . mdadm_udev . . .)

as per Arch wiki, and upon rebooting I now get this:
Warning: /lib/modules/5.19.11-zen1-1-zen/modules.devname not found - ignoring
followed by the garuda splash screen. This time, however, I do not have keyboard access, so I cannot esc into the terminal output.
edit: spelling

1 Like

Following this post here, I ran mkinitcpio -p linux while in the garuda chroot tool (after installing alacritty for the 100th time . . . haha), and by god it works! I can successfully boot into my install.
@petsam, you were right, it feels way better figuring this out myself!

For those of you looking to do this as well, follow my 1-9 steps, then:

  1. reboot back into the live iso
  2. open the file explorer, go computer > filesystem > mnt > etc > mkinitcpio.conf and edit it (or sudo nano if you prefer), adding dm-raid dm_integrity raid0 raid1 raid10 raid456 to the MODULES list, and mdadm_udev to the HOOK list
  3. after installation, through a terminal (in my case MATE terminal), install alacritty
  4. run pacman -S mkinitcpio-firmware
  5. run the Garuda Chroot tool, and run mkinitcpio -g /boot/initramfs-linux-zen.img
  6. then mkinitcpio -p linux-zen

and it should (hopefully) work

4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.