The officially official Devuan Forum!

You are not logged in.

#1 2020-08-27 16:25:00

Danielsan
Member
Registered: 2020-07-14
Posts: 172  

[SOLVED] BTRFS on RAID and SUBVOLS but double entry on GRUB, why?

Hi guys,

I am here again, I have been trying Artix and Obarun, but I think that I feel more comfortable with Debian based distro.

I won't get in the details now but after installation I was able to create BTRFS raid, create my subvolumes, and run Devuan from them. But when I update GRUB it finds a second installation of Devuan when it is actually one. You can boot from SDA1 or SDB1 and you get same environment, but it is unwanted and probably a manifestation of a wrong step somewhere.

How can I get grub recognize properly the only Devuan the lies on the RAID striped mode over two disks?

May it depend by an that version of GRUB itself?

Anyway I found another method that create BTRFS RAID and SUBs during the installation time:
https://www.paritybit.ca/blog/debian-with-btrfs

Thanks!

Last edited by Danielsan (2020-09-03 16:02:21)

Offline

#2 2020-08-27 18:27:20

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: [SOLVED] BTRFS on RAID and SUBVOLS but double entry on GRUB, why?

Danielsan wrote:

I won't get in the details now but after installation I was able to create BTRFS raid, create my subvolumes, and run Devuan from them.

Is this to be a challenge thread then? tongue

Can we at least see the contents of /boot/grub/grub.cfg?


Brianna Ghey — Rest In Power

Offline

#3 2020-08-28 03:51:06

Danielsan
Member
Registered: 2020-07-14
Posts: 172  

Re: [SOLVED] BTRFS on RAID and SUBVOLS but double entry on GRUB, why?

It is not a challenge... big_smile But I'd like to have every steps working fine before to post something... big_smile

Offline

#4 2020-08-29 06:49:55

Danielsan
Member
Registered: 2020-07-14
Posts: 172  

Re: [SOLVED] BTRFS on RAID and SUBVOLS but double entry on GRUB, why?

I re-did the installation and this time the issue doesn't happen, perhaps because I did all my steps clearly and in the right sequence, and now I have Devuan on a Btrfs RAID using subvolumes as partitions:

gnuser@devuan:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Devuan GNU/Linux 3 (beowulf)
Release:	3
Codename:	beowulf

gnuser@devuan:~$ mount | grep btrfs
/dev/sdb1 on / type btrfs (rw,noatime,discard,space_cache,autodefrag,subvolid=268,subvol=/@)
/dev/sdb1 on /home type btrfs (rw,noatime,discard,space_cache,autodefrag,subvolid=270,subvol=/@home)
/dev/sda3 on /media/snapshots type btrfs (rw,relatime,space_cache,subvolid=5,subvol=/)

gnuser@devuan:~$ sudo btrfs fi df /
Data, RAID0: total=4.00GiB, used=3.64GiB
System, RAID1: total=32.00MiB, used=16.00KiB
Metadata, RAID1: total=256.00MiB, used=125.92MiB
GlobalReserve, single: total=16.00MiB, used=0.00B
gnuser@devuan:~$ sudo btrfs fi show
Label: 'btraid'  uuid: cf6cf3c5-f308-46b8-b4e8-dea7ad870436
	Total devices 2 FS bytes used 3.76GiB
	devid    1 size 16.00GiB used 2.28GiB path /dev/sdb1
	devid    2 size 16.00GiB used 2.28GiB path /dev/sdc

Label: 'snapshots'  uuid: bcbe0d7f-14c9-4ad4-86c4-27362d64ef93
	Total devices 1 FS bytes used 3.66GiB
	devid    1 size 5.59GiB used 4.51GiB path /dev/sda3

gnuser@devuan:~$ lsblk 
NAME             MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
sda                8:0    0   16G  0 disk  
├─sda1             8:1    0  524M  0 part  /boot/efi
├─sda2             8:2    0  525M  0 part  /boot
├─sda3             8:3    0  5.6G  0 part  /media/snapshots
└─sda4             8:4    0  9.4G  0 part  
  └─sda4_crypt   254:0    0  9.4G  0 crypt 
    ├─vgcr0-swap 254:1    0  3.7G  0 lvm   [SWAP]
    └─vgcr0-enc  254:2    0  5.7G  0 lvm   /mnt/private
sdb                8:16   0   16G  0 disk  
└─sdb1             8:17   0   16G  0 part  /home
sdc                8:32   0   16G  0 disk  
sr0               11:0    1 1024M  0 rom   

I am almost ready to install Devuan on a real hardware!!! big_smile

Offline

#5 2020-09-03 16:11:59

Danielsan
Member
Registered: 2020-07-14
Posts: 172  

Re: [SOLVED] BTRFS on RAID and SUBVOLS but double entry on GRUB, why?

By the way I think I solved the issue leaving the second disk in a partionless state, other thing is creating /boot outside of the btrfs filesystem; I did the same on my real hardware (WOW!!! big_smile ) and it worked.

Soon my recommendations or at least what I did... :-P

Last edited by Danielsan (2020-09-03 16:12:13)

Offline

Board footer