You are not logged in.

#1 2014-05-04 20:52:14

TiborB
Member
Registered: 2008-12-09
Posts: 103

LVM on RAID1 - LVs inactive after boot

Hi,

I have new installation of arch linux and first time I used RAID1 and lvm on the mdadm raid1.
And my system refuses to boot properly, It hangs during boot asking to log as root and fix the problem.

The problem is that my /home parition (lv in vg created on raid1 software raid) is incative.

Simple 'lvchange -ay /dev/mapper/bla-bla' will fix this and with 'Ctrl-d' boot process continues and the PC starts. In fact there are two LVs in raid1 and both fail the same way.

In addition I get this error every boot:

systemd-remount-fs.service - Remount Root and Kernel File Systems
   Loaded: loaded (/usr/lib/systemd/system/systemd-remount-fs.service; static)
   Active: failed (Result: exit-code) since Ne 2014-05-04 22:31:51 CEST; 14min ago
     Docs: man:systemd-remount-fs.service(8)
           http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
  Process: 531 ExecStart=/usr/lib/systemd/systemd-remount-fs (code=exited, status=1/FAILURE)
 Main PID: 531 (code=exited, status=1/FAILURE)

May 04 22:31:51 _______ systemd[1]: Starting Remount Root and Kernel File Systems...
May 04 22:31:51 _______  systemd-remount-fs[531]: mount: / not mounted or bad option
May 04 22:31:51 _______  systemd-remount-fs[531]: In some cases useful info is found in syslog - try
May 04 22:31:51 _______  systemd-remount-fs[531]: dmesg | tail or so.
May 04 22:31:51 _______  systemd[1]: systemd-remount-fs.service: main process exited, code=exited, status=1/FAILURE
May 04 22:31:51 _______  systemd[1]: Failed to start Remount Root and Kernel File Systems.
May 04 22:31:51 _______  systemd[1]: Unit systemd-remount-fs.service entered failed state.

also, when booting the boot process stops and waith for 1 and half minutes with "a start job is running for dev-mapper-raid1vg/homelv"

I am new to this and can find a clue on google why this is going on

any advice?

Tibor

Offline

#2 2014-05-04 21:53:35

TiborB
Member
Registered: 2008-12-09
Posts: 103

Re: LVM on RAID1 - LVs inactive after boot

UPDATE:

after some googling i downgraded lvm2 to lvm2-2.02.105-2 and the PC rebooted properly (I tried only once so far). Though problem with systemd-remount-fs.service as pasted above is still there.

What with this? I would like to be sure that this will be fixed and I will not have to spend so much time fixing this problem in the future...

Offline

#3 2014-05-05 18:19:28

TiborB
Member
Registered: 2008-12-09
Posts: 103

Re: LVM on RAID1 - LVs inactive after boot

UPDATE2:

so the boot failed again...

Offline

#4 2014-05-06 21:44:54

TiborB
Member
Registered: 2008-12-09
Posts: 103

Re: LVM on RAID1 - LVs inactive after boot

Well, I gave up, got rid of lvm on the top of raid1...

Yesterday, I enabled lvm logging - the log file showed nothing suspicious (to me).

Also when I disabled mount of particular filesystems in fstab - it booted and all lvs were active!

My conclusion is this is some confict between raid and lvm, maybe bad timing or bad prioritization during boot - who knows smile

Offline

#5 2014-05-13 02:07:40

hydrosIII
Member
Registered: 2013-04-04
Posts: 127

Re: LVM on RAID1 - LVs inactive after boot

This seems to be a systemd issue or maybe a new issue with the lvm version. Im running same setup in Debian with no problem.

Offline

#6 2014-05-13 04:36:14

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,230
Website

Re: LVM on RAID1 - LVs inactive after boot

FWIW, I experience the same issue, but unreliably. Maybe one out of every 5 boots. I haven't worked out why.

Offline

Board footer

Powered by FluxBB