BTRFS Raid for @home

When you run into problems installing MX Linux XFCE
Message
Author
Squid
Posts: 19
Joined: Mon Nov 25, 2024 11:31 am

BTRFS Raid for @home

#1 Post by Squid »

Hi.
I have 3 nvme:s, 2x1.9TB, 1x1.8TB.

I figured i wanted to install the @ on the solo 1.8TB, and then btrfs raid1 the two 1.9 for @home.

The installer it self does not seem to understand raid what i figured.

I have run:

Code: Select all

sudo mkfs.btrfs -f -L homeRaid1 -m raid1 -d raid1 /dev/nvme0n1 /dev/nvme1n1
This seem to have worked fine.

But now is the problem, how do i go around making the @home subvolume so the installer can store all /home/ into this and can take advantage of timeshift?

I have no data on the drives to "lose".

User avatar
Eadwine Rose
Administrator
Posts: 14449
Joined: Wed Jul 12, 2006 2:10 am

Re: BTRFS Raid for @home

#2 Post by Eadwine Rose »

With all help requests, as per forum rules (which, if you haven't, please read), please share your full Quick System Info, do not edit.
If need be, you can do this using the LiveUSB, thanks.
MX-23.6_x64 July 31 2023 * 6.1.0-34amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Squid
Posts: 19
Joined: Mon Nov 25, 2024 11:31 am

Re: BTRFS Raid for @home

#3 Post by Squid »

I actually don't see its relevance to post the QSI for my question, at all....



Code: Select all

System:
  Kernel: 6.10.10-1-liquorix-amd64 [6.10-12~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0 parameters: audit=0
    intel_pstate=disable BOOT_IMAGE=/antiX/vmlinuz quiet splasht nosplash lang=en_GB kbd=se
    tz=Europe/Stockholm
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23.4_ahs_x64 Libretto September 15  2024 base: Debian GNU/Linux
    12 (bookworm)
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: TUF GAMING B650-PLUS v: Rev 1.xx serial: <superuser required>
    UEFI: American Megatrends v: 1616 date: 05/16/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse MX Master 2S serial: <filter>
    charge: 100% (should be ignored) rechargeable: yes status: discharging
CPU:
  Info: model: AMD Ryzen 7 7800X3D bits: 64 type: MT MCP arch: Zen 4 gen: 5 level: v4 note: check
    built: 2022+ process: TSMC n5 (5nm) family: 0x19 (25) model-id: 0x61 (97) stepping: 2
    microcode: 0xA601203
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache: L1: 512 KiB
    desc: d-8x32 KiB; i-8x32 KiB L2: 8 MiB desc: 8x1024 KiB L3: 96 MiB desc: 1x96 MiB
  Speed (MHz): avg: 949 high: 4850 min/max: 400/5050 scaling: driver: amd-pstate-epp
    governor: performance cores: 1: 4850 2: 400 3: 400 4: 400 5: 4735 6: 400 7: 400 8: 400 9: 400
    10: 400 11: 400 12: 400 13: 400 14: 400 15: 400 16: 400 bogomips: 134396
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Vulnerable: Safe RET, no microcode
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB: conditional; STIBP: always-on;
    RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA AD104 [GeForce RTX 4070] vendor: ASUSTeK driver: nouveau v: kernel non-free: N/A
    status: unknown device ID pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-1, DP-2, DP-3,
    HDMI-A-1 empty: none bus-ID: 01:00.0 chip-ID: 10de:2786 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: swrast gpu: nouveau display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x572mm (40.00x22.52") s-diag: 1166mm (45.9")
  Monitor-1: DP-1 pos: bottom-l model: Dell U2724D serial: <filter> built: 2024 res: 1920x1080
    dpi: 82 gamma: 1.2 size: 597x336mm (23.5x13.23") diag: 685mm (27") ratio: 16:9 modes:
    max: 2560x1440 min: 720x400
  Monitor-2: DP-2 pos: top-right model: AOC 27G2G4 serial: <filter> built: 2020 res: 1920x1080
    dpi: 82 gamma: 1.2 size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Monitor-3: DP-3 pos: primary,bottom-r model: Dell U2724D serial: <filter> built: 2024
    res: 1920x1080 dpi: 82 gamma: 1.2 size: 597x336mm (23.5x13.23") diag: 685mm (27") ratio: 16:9
    modes: max: 2560x1440 min: 720x400
  Monitor-4: HDMI-A-1 mapped: HDMI-1 pos: top-left model: AOC 27G2G4 serial: <filter> built: 2020
    res: 1920x1080 dpi: 82 gamma: 1.2 size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9
    modes: max: 1920x1080 min: 720x400
  API: OpenGL v: 4.5 Mesa 23.1.2-1~mx23ahs renderer: llvmpipe (LLVM 15.0.6 256 bits)
    direct-render: Yes
Audio:
  Device-1: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:22bc class-ID: 0403
  Device-2: AMD Family 17h/19h HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 0d:00.6 chip-ID: 1022:15e3 class-ID: 0403
  API: ALSA v: k6.10.10-1-liquorix-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 port: e000 bus-ID: 08:00.0 chip-ID: 10ec:8125 class-ID: 0200
  IF: eth0 state: up speed: 2500 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: ASUSTek AalteUSB-BT500 type: USB driver: btusb v: 0.8 bus-ID: 3-1:2 chip-ID: 0b05:190e
    class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 3.0 lmp-v: 5.1
    sub-v: d922 hci-v: 5.1 rev: dfc6
  Info: acl-mtu: 1021:6 sco-mtu: 255:12 link-policy: rswitch hold sniff park
    link-mode: peripheral accept service-classes: rendering, capturing, object transfer, audio,
    telephony
RAID:
  Hardware-1: Advanced Micro Devices [AMD] Device driver: N/A v: N/A port: N/A bus-ID: 0b:00.0
    chip-ID: 1022:43bd rev: N/A class-ID: 0104
Drives:
  Local Storage: total: 5.55 TiB used: 2.33 GiB (0.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: SKC3000D2048G size: 1.86 TiB
    block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: EIFK31.6 temp: 27.9 C scheme: MBR
  ID-2: /dev/nvme1n1 maj-min: 259:2 vendor: Kingston model: SKC3000D2048G size: 1.86 TiB
    block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: EIFK31.6 temp: 22.9 C scheme: MBR
  ID-3: /dev/nvme2n1 maj-min: 259:4 vendor: Western Digital model: WD BLACK SN850X 2000GB
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD
    serial: <filter> rev: 620361WD temp: 29.9 C scheme: GPT
  ID-4: /dev/sda maj-min: 8:0 type: USB vendor: SanDisk model: Cruzer Contour size: 7.51 GiB
    block-size: physical: 512 B logical: 512 B type: N/A serial: <filter> rev: 8.42 scheme: GPT
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  Message: No partition data found.
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 46.6 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 2119 libs: 1052 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mirror.accum.se/mirror/mxlinux.org/packages/mx/repo/ bookworm main non-free
    2: deb http://mirror.accum.se/mirror/mxlinux.org/packages/mx/repo/ bookworm ahs
Info:
  Processes: 359 Uptime: 7m wakeups: 6 Memory: 62.54 GiB used: 1.86 GiB (3.0%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI

User avatar
Eadwine Rose
Administrator
Posts: 14449
Joined: Wed Jul 12, 2006 2:10 am

Re: BTRFS Raid for @home

#4 Post by Eadwine Rose »

"With all help requests, as per forum rules (which, if you haven't, please read), please share your full Quick System Info"
MX-23.6_x64 July 31 2023 * 6.1.0-34amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
j2mcgreg
Global Moderator
Posts: 6569
Joined: Tue Oct 23, 2007 12:04 pm

Re: BTRFS Raid for @home

#5 Post by j2mcgreg »

@Squid

Code: Select all

Drives:
  Local Storage: total: 5.55 TiB used: 2.33 GiB (0.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: SKC3000D2048G size: 1.86 TiB
    block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: EIFK31.6 temp: 27.9 C scheme: MBR
  ID-2: /dev/nvme1n1 maj-min: 259:2 vendor: Kingston model: SKC3000D2048G size: 1.86 TiB
    block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: EIFK31.6 temp: 22.9 C scheme: MBR
  ID-3: /dev/nvme2n1 maj-min: 259:4 vendor: Western Digital model: WD BLACK SN850X 2000GB
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD
    serial: <filter> rev: 620361WD temp: 29.9 C scheme: GPT
Why are the two Kingston NVMEs using MBR while the Western Digital is using GPT? That's surely going to confuse things when setting up RAID.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

Post Reply

Return to “Installation”