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

Build with LVM? #14

Open
ameeno opened this issue Apr 9, 2020 · 11 comments
Open

Build with LVM? #14

ameeno opened this issue Apr 9, 2020 · 11 comments

Comments

@ameeno
Copy link

ameeno commented Apr 9, 2020

Hello, this tool would be great to live in EFI for resizing file systems offline.

(especially root)

However I am trying to build a version with lvm compatible as well as with lvm-utilities.

I cannot really build it yet and I am trying to build a version without downloading a 14GB vm.

Can you assist?

@zhovner
Copy link
Owner

zhovner commented Apr 10, 2020

Sorry, it's been a while and I forget how it works :)

@ameeno
Copy link
Author

ameeno commented May 6, 2020

Ok, we need to add the dm-mod kernel module and the lvm2 package before building.

The installer script removes all the modules, can you build one with LVM2 compatible?

I do not think it will add many kiloBytes and would be great for doing Offline lvm2 mods.

@zhovner
Copy link
Owner

zhovner commented May 6, 2020

Maybe you can ask @foxpdll for help.

@foxpdll
Copy link

foxpdll commented May 6, 2020

Ok, we need to add the dm-mod kernel module and the lvm2 package before building.

The installer script removes all the modules, can you build one with LVM2 compatible?

I do not think it will add many kiloBytes and would be great for doing Offline lvm2 mods.

try this https://github.com/foxpdll/OneFileLinux/tree/master/FoxBuild i added lvm2 packages

@zhovner
Copy link
Owner

zhovner commented May 6, 2020

@foxpdll can you please publish compiled file in Releases page?

@foxpdll
Copy link

foxpdll commented May 6, 2020

@ameeno
Copy link
Author

ameeno commented May 6, 2020

hello @foxpdll,

Thanks, I have tried this package with llvm2. Its an improvement, pvscan, lvscan and vgscan do present output.

However, it complains about device mapper. and modprobe dm-mod does not work, and no VG's can be mounted or modified or mapped.

I think the key missing piece is the dm-mod (Device Mapper) kernel module.

dm-mod is required according to this guide on alpine
https://wiki.alpinelinux.org/wiki/Setting_up_Logical_Volumes_with_LVM
how could I add it?
The build script appears to remove all modules when building. perhaps you know where to get the source code for Dm mod to install it at build time?

@foxpdll
Copy link

foxpdll commented May 7, 2020

Hi @ameeno ,
yes you are right. i forgot include dm-mod
i will recompile and put it in release 0.3.3 in my repo

You can build dist by youself
Download my scripts - all folder FoxBuild
run 01 script 02 script 03 script
then go to linux sourses and make menuconfig
inclide all you need
go ..
run 04 script
in folder you will find compiledfile

build script remove all modules
but then it install them from compiled sources
you can make menuconfig and choose all you need
after compilling modules will be in /lib/modules

@foxpdll
Copy link

foxpdll commented May 7, 2020

@ameeno
Copy link
Author

ameeno commented May 7, 2020

@foxpdll
Thanks for this, I will test and report back.

I have tried compiling myself but Ubuntu 20.04 does not allow me to build due to weird bugs.

I have tried using the vmware image and even converted it to qemu-kvm. but it compiles too slowly on my virtual machine,/laptop.

so thanks for all your help.

@ameeno
Copy link
Author

ameeno commented May 8, 2020

hello, there are some problems with it reading thin volumes, so still not good. but thanks for trying.

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

No branches or pull requests

3 participants