Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Logical Volume Management #2687

Closed
aurorarissime opened this issue Sep 16, 2024 · 33 comments · Fixed by #2778
Closed

Error with Logical Volume Management #2687

aurorarissime opened this issue Sep 16, 2024 · 33 comments · Fixed by #2778

Comments

@aurorarissime
Copy link

aurorarissime commented Sep 16, 2024

I can't even access the log file, sorry for not using the error template.

So I'm trying to install Arch on my nvme and in the Disk configuration part I set "Use a best-effort default partition layout" with btrfs and CoW. But when I try to set LVM with btrfs still, it makes everything crash as you can see on the screenshot. I tried with ext4 to see what was the problem and still got errors with LVM, so I belive it is the problem.
Also, despite the commands shown I couldn't find any log file, so I can't give one unfortunately.
This happened on the last official iso, 2024-09-01.
If there is another way to get some logs I would like to know to properly help with the issue. Thanks!

cbfb7f55-9046-4f35-a079-e112bc3d9efc

@Torxed
Copy link
Member

Torxed commented Sep 16, 2024

For some additional context, I recommended to post this issue based on this conversation: https://www.reddit.com/r/archlinux/comments/1fi228p/comment/lnfv1ay/?context=3 :)

@aurorarissime
Copy link
Author

aurorarissime commented Sep 17, 2024

I managed to get the logs! Sorry for the delay and thanks for your kindness 🙂
https://0x0.st/X3MS.log

@aurorarissime
Copy link
Author

This is the only thing preventing me from fully switching to Arch, is there a workaround or something I can do about it?

@svartkanin
Copy link
Collaborator

I haven't had time to look into this yet.
You could try to delete all existing partitions, then reboot and try the installation again.

@aurorarissime
Copy link
Author

Unfortunately it didn't solve the problem, still the same error. But thanks, and keep me updated if anything happens! 🫶🏻

@TheWiFiNerds
Copy link

I am also having this issue

@aurorarissime
Copy link
Author

Weird thing is that it used to work a few months ago, I used different settings but I remember setting btrfs with LVM 🤔

@Firebleudark
Copy link

Hi !

I think LVM is experimental, maybe you need to wait a little bit.
Unfortunately I can't help you more, for my computer I use ext4 + Luks.
Maybe I can create a VM to see if I have the same problem.
Another thing, sometimes archinstall don't work very good maybe try to install arch with the wiki without the script.

I hope someone will come with an answer for you.

@aurorarissime
Copy link
Author

Seem to just be a lvm problem, and not just specifically a lvm + btrfs problem. Tried ext4 + lvm and here is the result error : https://0x0.st/XIQQ.log

@svartkanin
Copy link
Collaborator

svartkanin commented Oct 17, 2024

After it crashes could you run the below command manually

lvs --reportformat json --unit B

maybe wait a bit and try it multiple times and check if the output eventually returns something in the

{
      "report": [
          {
              "lv": [
              ]
          }
      ]
      ,
      "log": [
      ]
  }

report->lvm block

@aurorarissime
Copy link
Author

I don't know how can I extract the text other than with this poor image. I believe it's at least readable, but I would appreciate a better way to send this if possible. Trying to upload the log file to 0x0.st doesn't include the command
20241019_021059.jpg

@svartkanin
Copy link
Collaborator

Thanks, to export anything you can store the output to a file and then simply run

curl -F'[email protected]' https://0x0.st

So it seems that the vol was created eventually, the current logic will attempt to fetch the info 3 times within 10s or so and then fail. We can definitely increase the timeout but I'm not sure what the actual time to create any VG or VOL is...
We can try to fetch it forever and then would just "hang" there if it can never get the info back.

Would you mind exporting that output so it's better readable, I'm curious to what the log entry exactly says

@aurorarissime
Copy link
Author

aurorarissime commented Oct 20, 2024

Here is the output of the command : https://0x0.st/Xlpz.log

And I believe it errors because of the timeout, because it throws it at me almost a second after the installation started, everytime

@codefiles
Copy link
Contributor

codefiles commented Oct 20, 2024

So it seems that the vol was created eventually, the current logic will attempt to fetch the info 3 times within 10s or so and then fail. We can definitely increase the timeout but I'm not sure what the actual time to create any VG or VOL is...
We can try to fetch it forever and then would just "hang" there if it can never get the info back.

I plan to replace all retry logic with use of udev_sync(), which should wait for the device to be ready.

@aurorarissime
Copy link
Author

Fix underway?

@svartkanin
Copy link
Collaborator

@Alixxx-please I have not tested this but you can give this patch a try and see if it works #2748

@aurorarissime
Copy link
Author

aurorarissime commented Oct 21, 2024

Sorry but how would I test this on a live iso please?
I believe I should use the live iso from Github Actions. I will let you know really soon!

@aurorarissime
Copy link
Author

I got a very similar error, but still one unfortunately. It also happened almost instantly after starting the installation
https://0x0.st/Xlwg.log

@svartkanin
Copy link
Collaborator

Could you try to reboot and then again

@aurorarissime
Copy link
Author

I believe I get the same error unfortunately 😕
https://0x0.st/Xlwh.log

@codefiles
Copy link
Contributor

@svartkanin, why would you think it is acceptable to submit a pull request with my proposed solution? You did not discuss this with me or even add me as an author. That is very unprofessional of you and it is not the first time you have done this.

@Torxed, are you going to allow this to keep happening?

@svartkanin
Copy link
Collaborator

@codefiles this issue has been open for over a month now and there was no PR raised from your side thus far. You said "you're planning" to eventually fix all retries but didn't necessarily specify a time frame for it.

In the spirit of trying to resolve the issue and to see if your proposed eventual fix is actually solving this I was thinking of raising it to get it tested if it works. Yes I did not mention you in the PR and that was my fault for not giving credit for your solution.

I've declined the PR now so feel free to raise your own with a fix.

@aurorarissime
Copy link
Author

aurorarissime commented Oct 23, 2024

So if the first fix doesn't work, there's no other option at the moment?

@aurorarissime
Copy link
Author

..?

@svartkanin
Copy link
Collaborator

@Alixxx-please could you please try if the patch #2778 works for you?

@aurorarissime
Copy link
Author

I put the iso of your fix in rufus, booted it, typed archinstall, did my usual configure but it led to I believe the same error as usual :/
https://0x0.st/XDMz.log
Am I doing something wrong, when I type archinstall even on a device iso is it still using the official latest version?

@svartkanin
Copy link
Collaborator

That's not the same error. Can you try running it on a clean system. Are you in a VM or real hardware?

@aurorarissime
Copy link
Author

I'm on real hardware, I'm trying to install it on a clean nvme, with nothing on it (except the partitions from the previous attempts to install Arch) and dedicated to install Arch. You want me to install it on a VM, on another drive?

@svartkanin
Copy link
Collaborator

Can you purge all partitions from the previous attempts so that you have a newly formatted disk

@aurorarissime
Copy link
Author

Purged all partitions but still get the error 😶
https://0x0.st/XDM7.log

@aurorarissime
Copy link
Author

I'm honestly thinking the script won't work anymore, except if some magic happen from my computer, the same that broke the script haha. I think I'm going to install it manually again. Does archinstall installs certain packages of anything that is necessary / useful that I might miss by installing everything by myself?

@svartkanin
Copy link
Collaborator

The error you received now is unrelated to the initial one so the patch fixed that one.
I didn't have a chance to look into the new one yet, I suspect something with lvm+btefs isn't quite right.
Unless you absolutely need that setup, you could try ext4 with lvm instead

@aurorarissime
Copy link
Author

aurorarissime commented Nov 9, 2024

I absolutely want, don't need. But I'm glad it solved the initial issue then. Take your time don't worry, after two months I can wait as long as needed haha.
And last time I tried with ext4, I had the same problem. Maybe it's fixed but I really prefer btrfs, sooo I'll wait 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants