You are not logged in.

#1 2019-10-29 10:03:17

everwisher
Member
Registered: 2019-09-11
Posts: 33

LV raid can't be mounted on startup

I have 6 hard drives and divided them all to 2 partitions, a larger one and a smaller one. Then I created a linear JBOD LV from all the larger partitions and a raid-5 LV from all the smaller ones. The lvm scheme has been running without any issue during my Ubuntu, Mint, Fedora and Manjaro times.

Recently I decided to switch to Arch Linux but found myself unable to successfully boot up the system for the failure to mount the raid-5 LV. Once that volume is commented in fstab, everything works fine and I can use

# sudo vgchange -ay

to activate the vg and mount the raid5 lv on it manually.

However my samba shares resides on that lv and it now can't be used on a headless startup.

I even rebuilt the lv but the issus persists.

Anyone can tell me what's the underlying blunder please?

Offline

#2 2019-10-29 12:00:10

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,102

Re: LV raid can't be mounted on startup

Is your / filesystem on the raid or on the jbod ?
for raid, see https://wiki.archlinux.org/index.php/LV … o_for_RAID
If jbod, https://wiki.archlinux.org/index.php/LV … mkinitcpio

If you have things configured correctly , do those other distros use the same lvm2 version as archlinux ?
Do they use the same lvmetad setting ?

Last edited by Lone_Wolf (2019-10-29 12:00:29)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2019-10-30 23:59:48

everwisher
Member
Registered: 2019-09-11
Posts: 33

Re: LV raid can't be mounted on startup

Is your / filesystem on the raid or on the jbod ?
for raid, see https://wiki.archlinux.org/index.php/LV … o_for_RAID
If jbod, https://wiki.archlinux.org/index.php/LV … mkinitcpio
If you have things configured correctly , do those other distros use the same lvm2 version as archlinux ?
Do they use the same lvmetad setting ?

Well, all the linux distros i’ve used along side the hard drive lvs reside in an SSD, which is divided into two partitions: an esp and a system partition for /

I'm not aware of the use of lvmetad but I didn’t change the lvs back when using ubuntu, mint and fedora. I don’t know if any of those previous distros made any changes to them.

Last edited by everwisher (2019-10-31 00:03:26)

Offline

#4 2019-10-31 12:24:08

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,102

Re: LV raid can't be mounted on startup

So your / is not on the JBOD or lvm raid ?
It's very unclear to me how your partitions are setup.

Once everything is mounted / activated run (as root)

# lsblk -f
# fdisk -l

and post their outputs, also include /etc/fstab .
Full journal / dmesg from  a boot without and with the lvm raid commented in fstab would also help.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB