Skip to main content
Topic: lvm2: execution failed (Read 596 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

lvm2: execution failed

I'm getting this error on every boot in tty1:

Code: [Select]
dinit: lvm2: execution failed - setting up standard input/output descriptors: No such file or directory

"/var/log/dinit/lvm2.log" is empty

Reinstalling didn't help, and I can't find anything online with same exact error.

/etc/dinit.d/lvm2:

Code: [Select]
type      = scripted
command   = /usr/bin/vgchange --sysinit -a y
logfile   = /var/log/dinit/lvm2.log
restart   = false
after     = udev-settle

Re: lvm2: execution failed

Reply #1
Got a response from Dinit dev: https://github.com/davmac314/dinit/discussions/282#discussioncomment-8262589

They are saying:
Quote
The likely problem is that the configured logfile directory, /var/log/dinit/, doesn't exist (yet) when the service starts.

I used the workaround:

Quote
For a workaround, add log-type = buffer and remove logfile = /var/log/dinit/lvm2.log from the service description file.

And it did got rid of an error.


Re: [SOLVED] lvm2: execution failed

Reply #2
Not solved, only got a workaround!

Re: lvm2: execution failed

Reply #3
Can moderators tell me the reason they are marking this thread "Solved" without any explanation? I'm confused :(


Re: lvm2: execution failed

Reply #5
Apologies for the *very* late reply, but here I'm assuming that you have a separate /var partition (since /var/log/dinit should be installed (part of dinit-rc pkg) from what Davin said)? Either way I'll release a new package with logs written into buffer.
now only the dinit guy in artix

Re: lvm2: execution failed

Reply #6
Ah, I got btrfs subvolume for /var/log. So I guess it is related. I will test once it is published!

 

Re: lvm2: execution failed

Reply #7
It should've been shipped since about 3 weeks ago.
now only the dinit guy in artix