<div dir="ltr">Hi - Thanks for the response!<div><br></div><div>Yes, I do have the udev rules in place and when I increase the memory in the web gui from say 4GB to 4.5GB it will add all of the memory that it was missing from boot plus the additional 500. When I look in /sys/devices/system/memory it only lists the memory modules that were from when the system was on. I can also see in dmesg output "Hotplug Mem Device" from during boot but its almost like the kernel isn't getting notified during boot and which also keeps udev from ever seeing it and setting it to online. CentOS 6 should have no problem with hotplugging memory but it doesn't seem to take it with the way Proxmox handles it at boot.</div><div><br></div><div>Thanks!</div><div><br></div><div>Brian</div><div><br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div style="font-size:12.8000001907349px"><div><br></div></div></div></div></div><div class="gmail_quote">On Sun, Apr 12, 2015 at 11:18 AM, Alexandre DERUMIER <span dir="ltr"><<a href="mailto:aderumier@odiso.com" target="_blank">aderumier@odiso.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
do you have the udev rules<br>
<br>
/lib/udev/rules.d/80-hotplug-cpu-mem.rules (not sure about centos path)<br>
<span class=""><br>
SUBSYSTEM=="memory", ACTION=="add", TEST=="state", ATTR{state}=="offline", ATTR{state}="online"<br>
<br>
<br>
</span>This is udev which enable the memory module after acpi hotplug.<br>
<span class=""><br>
----- Mail original -----<br>
De: "Brian Hart" <<a href="mailto:brianhart@ou.edu">brianhart@ou.edu</a>><br>
À: "proxmoxve" <<a href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a>><br>
</span>Envoyé: Vendredi 10 Avril 2015 18:28:15<br>
Objet: Re: [PVE-User] Hotplug Memory boots VM with 1GB<br>
<span class=""><br>
Hello All,<br>
I had some more time to play with memory hotplugging and was trying to make this work again. I noticed in the wiki it says it requires a kernel greater than 3.10. I was trying to get this to work with CentOS 6 systems as that is primarily what we are running and it is not on a 3.x kernel yet. However, Cent 6 does support hotplugging memory and CPU. I think the issue though is the memory is hotplugged at an an odd time that the VM isn't ready for it with CentOS 6. Once the system boots I still see 987MB of starting memory and if I increase the amount of memory through the proxmox GUI the VM immediately detects all of the memory it was supposed to have plus the additional memory I just added. I have also found that I can manually tell it to probe for memory by doing an "echo 0x100000000 > /sys/devices/system/memory/probe" and it will find one piece (you have to do this repeatedly for every module if it doesn't auto-detect the hotplug).<br>
<br>
Anybody have an idea of how to tell CentOS 6 to detect the hotplugged memory after boot? Also, I'm curious why the additional memory has to be hotplugged? When using VMware it doesn't do it in this way so how come KVM/QEMU does?<br>
<br>
Thanks,<br>
<br>
Brian<br>
<br>
<br>
On Sun, Mar 8, 2015 at 8:16 PM, Brian Hart < <a href="mailto:brianhart@ou.edu">brianhart@ou.edu</a> > wrote:<br>
<br>
<br>
<br>
Ah, you're absolutely right. It is in the wiki. I had skipped to the bottom part of the wiki that said "Memory Hotplug' and overlooked the part that referenced Linux guests specifically. It looks like it is probably udev rules I'm missing. I will look at adding that in and try again.<br>
Thank you for the follow up!<br>
<br>
Brian<br>
<br>
<br>
<br>
On Sun, Mar 8, 2015 at 12:16 PM, Alexandre DERUMIER < <a href="mailto:aderumier@odiso.com">aderumier@odiso.com</a> > wrote:<br>
<br>
</span>BQ_BEGIN<br>
<span class="">I have updated the wiki last month about memory && cpu hotplug<br>
<br>
<a href="https://pve.proxmox.com/wiki/Hotplug_%28qemu_disk,nic,cpu,memory%29" target="_blank">https://pve.proxmox.com/wiki/Hotplug_%28qemu_disk,nic,cpu,memory%29</a><br>
<br>
----- Mail original -----<br>
De: "Brian Hart" < <a href="mailto:brianhart@ou.edu">brianhart@ou.edu</a> ><br>
À: "proxmoxve" < <a href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a> ><br>
Envoyé: Samedi 7 Mars 2015 06:36:32<br>
Objet: [PVE-User] Hotplug Memory boots VM with 1GB<br>
<br>
Hello -<br>
I'm not sure if I'm running into a bug or if I'm missing something. I have done several tests playing with different settings for a VM and have found that consistently whenever I set Hotplug to allow memory it limits the guest VM to 1GB of memory even if I have more assigned to it at startup. Has anybody else seen this? Is there something special about the hotplug that this is expected that I'm not aware of?<br>
<br>
Thanks,<br>
Brian Hart<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
pve-user mailing list<br>
<a href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a><br>
<a href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user" target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a><br>
<br>
<br>
<br>
<br>
<br>
</span>BQ_END<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
pve-user mailing list<br>
<a href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a><br>
<a href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user" target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a><br>
</div></div></blockquote></div><br></div></div></div>