Talk:LVM

From Gentoo Wiki
Jump to: navigation, search
Note
This is a talk page. Please add newer comments below older ones, and sign your comments using four tildes (~~~~). When adding a new section (at the bottom of the page), please mark it as "open for discussion" by using {{talk|open}} so it will show up in the list of open discussions.

RAID5

Talk status
This discussion is done.

LVM2 RAID5 - looks scary, if you define the LV size as 20% of the VG(which is for 6GB VG 1.2GB LV) and 2 stripes, it just takes 50% extra space and uses 1.8GB in the VG. Maybe a note would be useful? Disi 17:00, 4 November 2011 (UTC)

Its only example. Better to define actual wanted size.
-- Alexxy 15:44, 13. Nov. 2011 (UTC)

systemd

Talk status
This discussion is done.

There is no lvm.service. All I have right now (provided by sys-fs/lvm2:

   /usr/lib/systemd/system/lvm2-monitor.service
   /usr/lib/systemd/system/blk-availability.service
   /usr/lib/systemd/system/lvm2-lvmetad.service
   /usr/lib/systemd/system/dm-event.service

— The preceding unsigned comment was added by Eliasp (talkcontribs) 17 February 2014

Does the udev USE flag affect evdev too?

Talk status
This discussion is still ongoing.

Does the udev flag affect both sys-fs/udev and sys-fs/eudev ? I am guessing yes because eudev is a fork, and only one of them can be installed at the same time. Would someone confirm and maybe update the description for 'udev' USE flag in the article? Thank --EmanueLczirai (talk) 09:50, 13 January 2015 (UTC)

lvmetad warning

Talk status
This discussion is still ongoing.

I am getting a warning after executing pvcreate /dev/sd[ab]1 from the InstallCD which shows WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!. I am unsure how to handle this, as the article doesn't mention it. Do I even need lvmetad ? Maybe I don't need it while installing but what about afterwards, while the system is running normally? Should I do /etc/init.d/lvmetad stop prior to pvcreate, just to be sure? (If I do, I don't get the warning). If the warning is harmless, please consider updating the article stating so. Thanks in advance --EmanueLczirai (talk) 03:35, 15 January 2015 (UTC)

Apparently, in my case (LVM on a single disk: 1 PV, 1 VG, 2 LVs(bootvol+rootvol both btrfs); +grub2(with 2M bios partition near the huge LVM 8e00 partition)), it works without lvmetad(and even lvm) both while installing and afterwards. In the latter case I made sure lvmetad doesn't start by issuing this once rc-update del lvm boot. And now this shows lvm* aren't started in any runlevels: rc-update -v show|grep -i lvm. I might be missing something about this, I guess we'll find out(?). --EmanueLczirai (talk) 07:07, 18 January 2015 (UTC)
lvmetad is for "if you want to enable lvm autoactivation and metadata caching", says lvm2 after emerging. --EmanueLczirai (talk) 14:12, 10 February 2015 (UTC)
Normally lvmetad is not even enabled. Neither in initscripts nor in /etc/lvm/lvm.conf. But the lvm service has a useless rc_need on lvmetad. Remove it to get rid of those messages. Morbid Florist (talk) 15:20, 22 July 2015 (UTC)

A note about installing gentoo on LVM from InstallCD

If you are like me, using InstallCD(livecd?) to create LVM volumes and you had to interrupt the manual gentoo installation process only to resume it the next day, the next time you boot(from installcd), before chrooting, mounting these LVM volumes requires activating them like this lvchange --verbose --activate y --activationmode complete volgroupnamehere (or simpler lvchange -ay volgroupnamehere) otherwise the folder /dev/volgroupnamehere/ (eg. /dev/volgroupnamehere/logicalvolumenamehere_root which you need to mount root) does not exist. --EmanueLczirai (talk) 23:47, 15 January 2015 (UTC)

I'm actually using vgchange -ay and that seems to activate everything. Also a note about renaming a vg when you have duplicate names (e.g. when you connect a disk with your older installation using a USB-SATA connector) would be useful. --Pavlix (talk) 18:17, 10 February 2015 (UTC)

Handbook section

Talk status
This discussion is still ongoing as of 23-Dec-2017.

The whole section Handbook added by this change does not well integrate with the rest of the article. It does not leave any choice, stresses grub genkernel and unnecessarily duplicates information from other wiki articles. I'd like to propose moving it to somewhere else (maybe a separate subarticle) or remove it.
Any objections?--Charles17 (talk) 07:42, 23 December 2017 (UTC)

I added the Handbook section there because I wasn't entirely sure where to put it, I wanted to compliment the handbook as it was lacking LVM content. While it only has grub and does duplicate information from other articles it does provide step-by-step instructions to help the end user accomplish the task. A separate article would be a good idea and have the handbook linked to it. I'm kinda new to editing these wiki's and documentation so apologies if I have missed something or overstepped the mark.
No reason to excuse for bringing good new content to the wiki. And the question where information should be placed is always a matter of personal opinion. Some people like repeating content identically in many articles. I prefer to have it once per topic and to refer to it where needed. And sometimes it's hard to decide to which main article new subarticles (e.g. different ways for creating an LVM specific initramfs) should go. Experienced authors are also having lots of articles under their user ... --Charles17 (talk) 10:19, 24 December 2017 (UTC)