[ovirt-users] hot plug memory in el7
Michal Skrivanek
mskrivan at redhat.com
Thu Dec 10 14:34:02 UTC 2015
> On 10 Dec 2015, at 15:12, Gianluca Cecchi <gianluca.cecchi at gmail.com> wrote:
>
> On Thu, Dec 10, 2015 at 2:35 PM, Michal Skrivanek <mskrivan at redhat.com <mailto:mskrivan at redhat.com>> wrote:
>
>
> great!
> with 7.2 it should be automatic. I think with Windows it works automatically as well.
>
>
> In the mean time I tested how to make it automatic also in my CentOS 7.1 guest.
>
> I temporarily added this rule inside /lib/udev/rules.d/55-ovirt-guest-agent.rules (but it could have also been a plain new file for that matter):
>
> SUBSYSTEM=="memory", ACTION=="add", TEST=="state", ATTR{state}=="offline", ATTR{state}="online"
>
> With this row the addition is automatically intercepted and applied from the OS too.
> Tested changing from 8Gb to 10Gb of ram.
>
> I'm not an udev guru.... I took inspiration form the already set up file for cpu adition in 40-redhat.rules file.. ;-)
me neither, but yeah, it’s in 7.2 just like that:)
# cat /lib/udev/rules.d/40-redhat.rules
# do not edit this file, it will be overwritten on update
# CPU hotadd request
SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
# Memory hotadd request
SUBSYSTEM=="memory", ACTION=="add", ATTR{state}=="offline", ATTR{state}="online"
# reload sysctl.conf / sysctl.conf.d settings when the bridge module is loaded
ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge"
# load SCSI generic (sg) driver
SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -bv sg"
# Rule for prandom character device node permissions
KERNEL=="prandom", MODE=“0644"
>
> So perhaps the only change in 7.2 is an addition like mine in 40-redhat.rules?
>
>>
>>
>> Questions:
>> 1) which component to bugzilla against for message confusing window of the gui?
>
> doesn’t matter much, ovirt-engine, frontend.
>
> Ok, I'll do
>
>
> Gianluca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20151210/afcf6729/attachment-0001.html>
More information about the Users
mailing list