Skip to contentSkip to conversation

lvm thin_* binaries are installed in hostonly mode?

DISCUSSION WANG Chao 2 participants 3 messages Dec 4, 2013 – Dec 11, 2013 2 messages not in the archive

lore
Share & tools
lore

WANG Chao

author
#0 lore raw

Hi, Harald

I notice these thin_* binaries are installed to kdump initramfs in spite of the fact that I don't use thinp lvm:

# ll sbin/thin_*
-rwxr-xr-x. 1 root root  384648 Dec  4 20:37 sbin/thin_check
-rwxr-xr-x. 1 root root 2184112 Dec  4 20:37 sbin/thin_dump
-rwxr-xr-x. 1 root root 2179792 Dec  4 20:37 sbin/thin_repair
-rwxr-xr-x. 1 root root 2179928 Dec  4 20:37 sbin/thin_restore

This is introduced here:

commit 5d623b1

Author: Harald Hoyer <[email protected]>
Date:   Mon Oct 21 09:09:26 2013 +0200

lvm: always install thin utils for lvm

These binaries are totally 6.6M in size. That's too much for a kdump environment.

As you probably know, in kdump kernel, we only have very limited memory (~128M) and makedumpfile (a vmcore dump tool) is more faster if there's more available memory out there.

IMO, it's best we only install these thin_* bins when people are actually using these ones.

Anyway, I don't know if you have any particular reason to do this..

Thanks
WANG Chao

#2 lore raw
In reply to a message not in the archive
Quoted 11 lines · WANG Chao

Hi, Harald

I notice these thin_* binaries are installed to kdump initramfs in spite of the fact that I don't use thinp lvm:

# ll sbin/thin_*
(quoted diff) +0 -4
-rwxr-xr-x. 1 root root  384648 Dec  4 20:37 sbin/thin_check
-rwxr-xr-x. 1 root root 2184112 Dec  4 20:37 sbin/thin_dump
-rwxr-xr-x. 1 root root 2179792 Dec  4 20:37 sbin/thin_repair
-rwxr-xr-x. 1 root root 2179928 Dec  4 20:37 sbin/thin_restore
Quoted 7 lines

This is introduced here:

commit 5d623b1

Author: Harald Hoyer <[email protected]>
Date:   Mon Oct 21 09:09:26 2013 +0200

lvm: always install thin utils for lvm

I think we should install these only if thin device/volume is in the mount path.

Thanks
Vivek

author
#4 lore raw
In reply to a message not in the archive
Quoted 18 lines · Vivek Goyal
Quoted 17 lines · WANG Chao

Hi, Harald

I notice these thin_* binaries are installed to kdump initramfs in spite of the fact that I don't use thinp lvm:

# ll sbin/thin_*
(quoted diff) +0 -4
-rwxr-xr-x. 1 root root  384648 Dec  4 20:37 sbin/thin_check
-rwxr-xr-x. 1 root root 2184112 Dec  4 20:37 sbin/thin_dump
-rwxr-xr-x. 1 root root 2179792 Dec  4 20:37 sbin/thin_repair
-rwxr-xr-x. 1 root root 2179928 Dec  4 20:37 sbin/thin_restore

This is introduced here:

commit 5d623b1

Author: Harald Hoyer <[email protected]>
Date:   Mon Oct 21 09:09:26 2013 +0200
Quoted 7 lines
Quoted 1 line

lvm: always install thin utils for lvm

I think we should install these only if thin device/volume is in the mount path.

Thanks
Vivek

Thanks Harald. I see you have fixed it upstream and it's working.

commit c21c4dc

Author: Harald Hoyer <[email protected]>
Date:   Thu Dec 5 15:57:42 2013 +0100

lvm: install thin tools, only when needed in hostonly

Thanks,
Chao