Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread Martin, Terry Contractor
Hi

I have a couple of guests that I need to add memory to without recycling the 
guests. What are the steps and commands to accomplish this?

Thanks,

Terry


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit
http://wiki.linuxvm.org/


Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread Mark Pace
It is not possible to change the memory allocated to a guest without
logging off and logging on again.

On Thu, Oct 2, 2014 at 9:36 AM, Martin, Terry Contractor 
terry.mar...@ssa.gov wrote:

 Hi

 I have a couple of guests that I need to add memory to without recycling
 the guests. What are the steps and commands to accomplish this?

 Thanks,

 Terry


 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
 visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390
 --
 For more information on Linux on System z, visit
 http://wiki.linuxvm.org/




-- 
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit
http://wiki.linuxvm.org/


Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread Michael MacIsaac
Terry,

Do you have STANDBY memory defined in the virtual machines?

There is a section, 26.2 Set up memory hotplugging in The Virtualization
Cookbook for IBM z/VM 6.3, RHEL 6.4, and SLES 11 SP3 on the Web at
http://www.redbooks.ibm.com/abstracts/sg248147.html

Hope it helps.

-Mike M.

On Thu, Oct 2, 2014 at 9:36 AM, Martin, Terry Contractor 
terry.mar...@ssa.gov wrote:

 Hi

 I have a couple of guests that I need to add memory to without recycling
 the guests. What are the steps and commands to accomplish this?

 Thanks,

 Terry


 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
 visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390
 --
 For more information on Linux on System z, visit
 http://wiki.linuxvm.org/


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit
http://wiki.linuxvm.org/


Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread Pavelka, Tomas
One way is to have standby memory defined. 
For example, if you have user LINUX and want to have 512MB with the chance to 
go up to 2G, then you add the 2G as max memory on the USER directory statement:

USER LINUX PASWD 512M 2048M G 64

Then add the following statement to the user directory to define the remaining 
memory as standby:

COMMAND DEFINE STORAGE AS 512M STANDBY 1536M

If you set up the user like this, then from inside the Linux guest you can add 
memory at run time with the chmem command. For example, to add extra 512 M run:

chmem -e 512M

Note that it is not always possible to return the standby memory that you have 
once allocated without re-ipling the guest.

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit
http://wiki.linuxvm.org/


Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread Martin, Terry Contractor
Ok, thanks for the information. I will plan the memory on the guests 
accordingly.

-Original Message-
From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Pavelka, 
Tomas
Sent: Thursday, October 02, 2014 9:52 AM
To: LINUX-390@VM.MARIST.EDU
Subject: Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

One way is to have standby memory defined. 
For example, if you have user LINUX and want to have 512MB with the chance to 
go up to 2G, then you add the 2G as max memory on the USER directory statement:

USER LINUX PASWD 512M 2048M G 64

Then add the following statement to the user directory to define the remaining 
memory as standby:

COMMAND DEFINE STORAGE AS 512M STANDBY 1536M

If you set up the user like this, then from inside the Linux guest you can add 
memory at run time with the chmem command. For example, to add extra 512 M run:

chmem -e 512M

Note that it is not always possible to return the standby memory that you have 
once allocated without re-ipling the guest.

--
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit http://wiki.linuxvm.org/

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit
http://wiki.linuxvm.org/


Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread Martin, Terry Contractor
Thanks Mike. I will take a look. One question I assume that if you allocate the 
Standby memory in the guest Directory that it won't count against the memory 
footprint until some of that standby is used is that correct?

-Original Message-
From: Linux on 390 Port [mailto:LINUX-390@vm.marist.edu] On Behalf Of Michael 
MacIsaac
Sent: Thursday, October 02, 2014 9:49 AM
To: LINUX-390@vm.marist.edu
Subject: Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

Terry,

Do you have STANDBY memory defined in the virtual machines?

There is a section, 26.2 Set up memory hotplugging in The Virtualization 
Cookbook for IBM z/VM 6.3, RHEL 6.4, and SLES 11 SP3 on the Web at 
http://www.redbooks.ibm.com/abstracts/sg248147.html

Hope it helps.

-Mike M.

On Thu, Oct 2, 2014 at 9:36 AM, Martin, Terry Contractor  
terry.mar...@ssa.gov wrote:

 Hi

 I have a couple of guests that I need to add memory to without 
 recycling the guests. What are the steps and commands to accomplish this?

 Thanks,

 Terry


 --
 For LINUX-390 subscribe / signoff / archive access instructions, send 
 email to lists...@vm.marist.edu with the message: INFO LINUX-390 or 
 visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390
 --
 For more information on Linux on System z, visit 
 http://wiki.linuxvm.org/


--
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit http://wiki.linuxvm.org/


Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread Michael MacIsaac
Terry,

Yes, I believe (but have never proven it).

-Mike

On Thu, Oct 2, 2014 at 10:00 AM, Martin, Terry Contractor 
terry.mar...@ssa.gov wrote:

 Thanks Mike. I will take a look. One question I assume that if you
 allocate the Standby memory in the guest Directory that it won't count
 against the memory footprint until some of that standby is used is that
 correct?

 -Original Message-
 From: Linux on 390 Port [mailto:LINUX-390@vm.marist.edu] On Behalf Of
 Michael MacIsaac
 Sent: Thursday, October 02, 2014 9:49 AM
 To: LINUX-390@vm.marist.edu
 Subject: Re: Adding memory dynamically to a RHEL6.5 guest running under
 z/VM 6.3

 Terry,

 Do you have STANDBY memory defined in the virtual machines?

 There is a section, 26.2 Set up memory hotplugging in The Virtualization
 Cookbook for IBM z/VM 6.3, RHEL 6.4, and SLES 11 SP3 on the Web at
 http://www.redbooks.ibm.com/abstracts/sg248147.html

 Hope it helps.

 -Mike M.

 On Thu, Oct 2, 2014 at 9:36 AM, Martin, Terry Contractor 
 terry.mar...@ssa.gov wrote:

  Hi
 
  I have a couple of guests that I need to add memory to without
  recycling the guests. What are the steps and commands to accomplish this?
 
  Thanks,
 
  Terry
 
 
  --
  For LINUX-390 subscribe / signoff / archive access instructions, send
  email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
  visit
  http://www.marist.edu/htbin/wlvindex?LINUX-390
  --
  For more information on Linux on System z, visit
  http://wiki.linuxvm.org/
 

 --
 For LINUX-390 subscribe / signoff / archive access instructions, send
 email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390
 --
 For more information on Linux on System z, visit http://wiki.linuxvm.org/


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit
http://wiki.linuxvm.org/


Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread Mauro Souza
Terry,

You are right. Standby memory will not be allocated until you put it online
on Linux. Here we use to have all machines with a couple GB of standby
memory (and a couple processors too), so we can change it quickly when
needed.

We have SLES11 here, and we can put memory online AND offline without
having to IPL the guest. The same for CPU.

Mauro
http://mauro.limeiratem.com - registered Linux User: 294521
Scripture is both history, and a love letter from God.

2014-10-02 11:26 GMT-03:00 Michael MacIsaac mike99...@gmail.com:

 Terry,

 Yes, I believe (but have never proven it).

 -Mike

 On Thu, Oct 2, 2014 at 10:00 AM, Martin, Terry Contractor 
 terry.mar...@ssa.gov wrote:

  Thanks Mike. I will take a look. One question I assume that if you
  allocate the Standby memory in the guest Directory that it won't count
  against the memory footprint until some of that standby is used is that
  correct?
 
  -Original Message-
  From: Linux on 390 Port [mailto:LINUX-390@vm.marist.edu] On Behalf Of
  Michael MacIsaac
  Sent: Thursday, October 02, 2014 9:49 AM
  To: LINUX-390@vm.marist.edu
  Subject: Re: Adding memory dynamically to a RHEL6.5 guest running under
  z/VM 6.3
 
  Terry,
 
  Do you have STANDBY memory defined in the virtual machines?
 
  There is a section, 26.2 Set up memory hotplugging in The
 Virtualization
  Cookbook for IBM z/VM 6.3, RHEL 6.4, and SLES 11 SP3 on the Web at
  http://www.redbooks.ibm.com/abstracts/sg248147.html
 
  Hope it helps.
 
  -Mike M.
 
  On Thu, Oct 2, 2014 at 9:36 AM, Martin, Terry Contractor 
  terry.mar...@ssa.gov wrote:
 
   Hi
  
   I have a couple of guests that I need to add memory to without
   recycling the guests. What are the steps and commands to accomplish
 this?
  
   Thanks,
  
   Terry
  
  
   --
   For LINUX-390 subscribe / signoff / archive access instructions, send
   email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
   visit
   http://www.marist.edu/htbin/wlvindex?LINUX-390
   --
   For more information on Linux on System z, visit
   http://wiki.linuxvm.org/
  
 
  --
  For LINUX-390 subscribe / signoff / archive access instructions, send
  email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
 visit
  http://www.marist.edu/htbin/wlvindex?LINUX-390
  --
  For more information on Linux on System z, visit
 http://wiki.linuxvm.org/
 

 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
 visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390
 --
 For more information on Linux on System z, visit
 http://wiki.linuxvm.org/


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit
http://wiki.linuxvm.org/


Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread Mark Pace
My apologies for being wrong about this.

On Thu, Oct 2, 2014 at 9:46 AM, Mark Pace pacemainl...@gmail.com wrote:

 It is not possible to change the memory allocated to a guest without
 logging off and logging on again.

 On Thu, Oct 2, 2014 at 9:36 AM, Martin, Terry Contractor 
 terry.mar...@ssa.gov wrote:

 Hi

 I have a couple of guests that I need to add memory to without recycling
 the guests. What are the steps and commands to accomplish this?

 Thanks,

 Terry


 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
 visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390
 --
 For more information on Linux on System z, visit
 http://wiki.linuxvm.org/




 --
 The postings on this site are my own and don’t necessarily represent
 Mainline’s positions or opinions

 Mark D Pace
 Senior Systems Engineer
 Mainline Information Systems






-- 
The postings on this site are my own and don’t necessarily represent
Mainline’s positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit
http://wiki.linuxvm.org/


Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread Martin, Terry Contractor
Thanks guys! 

-Original Message-
From: Linux on 390 Port [mailto:LINUX-390@vm.marist.edu] On Behalf Of Mauro 
Souza
Sent: Thursday, October 02, 2014 10:44 AM
To: LINUX-390@vm.marist.edu
Subject: Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

Terry,

You are right. Standby memory will not be allocated until you put it online on 
Linux. Here we use to have all machines with a couple GB of standby memory (and 
a couple processors too), so we can change it quickly when needed.

We have SLES11 here, and we can put memory online AND offline without having to 
IPL the guest. The same for CPU.

Mauro
http://mauro.limeiratem.com - registered Linux User: 294521 Scripture is both 
history, and a love letter from God.

2014-10-02 11:26 GMT-03:00 Michael MacIsaac mike99...@gmail.com:

 Terry,

 Yes, I believe (but have never proven it).

 -Mike

 On Thu, Oct 2, 2014 at 10:00 AM, Martin, Terry Contractor  
 terry.mar...@ssa.gov wrote:

  Thanks Mike. I will take a look. One question I assume that if you 
  allocate the Standby memory in the guest Directory that it won't 
  count against the memory footprint until some of that standby is 
  used is that correct?
 
  -Original Message-
  From: Linux on 390 Port [mailto:LINUX-390@vm.marist.edu] On Behalf 
  Of Michael MacIsaac
  Sent: Thursday, October 02, 2014 9:49 AM
  To: LINUX-390@vm.marist.edu
  Subject: Re: Adding memory dynamically to a RHEL6.5 guest running 
  under z/VM 6.3
 
  Terry,
 
  Do you have STANDBY memory defined in the virtual machines?
 
  There is a section, 26.2 Set up memory hotplugging in The
 Virtualization
  Cookbook for IBM z/VM 6.3, RHEL 6.4, and SLES 11 SP3 on the Web at 
  http://www.redbooks.ibm.com/abstracts/sg248147.html
 
  Hope it helps.
 
  -Mike M.
 
  On Thu, Oct 2, 2014 at 9:36 AM, Martin, Terry Contractor  
  terry.mar...@ssa.gov wrote:
 
   Hi
  
   I have a couple of guests that I need to add memory to without 
   recycling the guests. What are the steps and commands to 
   accomplish
 this?
  
   Thanks,
  
   Terry
  
  
   --
    For LINUX-390 subscribe / signoff / archive access 
   instructions, send email to lists...@vm.marist.edu with the 
   message: INFO LINUX-390 or visit
   http://www.marist.edu/htbin/wlvindex?LINUX-390
   --
    For more information on Linux on System z, visit 
   http://wiki.linuxvm.org/
  
 
  
  -- For LINUX-390 subscribe / signoff / archive access instructions, 
  send email to lists...@vm.marist.edu with the message: INFO 
  LINUX-390 or
 visit
  http://www.marist.edu/htbin/wlvindex?LINUX-390
  
  -- For more information on Linux on System z, visit
 http://wiki.linuxvm.org/
 

 --
 For LINUX-390 subscribe / signoff / archive access instructions, send 
 email to lists...@vm.marist.edu with the message: INFO LINUX-390 or 
 visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390
 --
 For more information on Linux on System z, visit 
 http://wiki.linuxvm.org/


--
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit http://wiki.linuxvm.org/


Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread Martin, Terry Contractor
Mark,

No problem!

-Original Message-
From: Linux on 390 Port [mailto:LINUX-390@vm.marist.edu] On Behalf Of Mark Pace
Sent: Thursday, October 02, 2014 10:49 AM
To: LINUX-390@vm.marist.edu
Subject: Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

My apologies for being wrong about this.

On Thu, Oct 2, 2014 at 9:46 AM, Mark Pace pacemainl...@gmail.com wrote:

 It is not possible to change the memory allocated to a guest without 
 logging off and logging on again.

 On Thu, Oct 2, 2014 at 9:36 AM, Martin, Terry Contractor  
 terry.mar...@ssa.gov wrote:

 Hi

 I have a couple of guests that I need to add memory to without 
 recycling the guests. What are the steps and commands to accomplish this?

 Thanks,

 Terry


 -
 - For LINUX-390 subscribe / signoff / archive access instructions, 
 send email to lists...@vm.marist.edu with the message: INFO LINUX-390 
 or visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390
 -
 - For more information on Linux on System z, visit 
 http://wiki.linuxvm.org/




 --
 The postings on this site are my own and don’t necessarily represent 
 Mainline’s positions or opinions

 Mark D Pace
 Senior Systems Engineer
 Mainline Information Systems






--
The postings on this site are my own and don’t necessarily represent Mainline’s 
positions or opinions

Mark D Pace
Senior Systems Engineer
Mainline Information Systems

--
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit http://wiki.linuxvm.org/


Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread Alan Altmark
On Thursday, 10/02/2014 at 09:37 EDT, Martin, Terry Contractor
terry.mar...@ssa.gov wrote:

 I have a couple of guests that I need to add memory to without recycling
the
 guests. What are the steps and commands to accomplish this?

If you didn't plan for it in advance, you can't do it.  See Managing
Hotplug Memory in the Linux Device Driver and Command Reference.

Alan Altmark

Senior Managing z/VM and Linux Consultant
Lab Services System z Delivery Practice
IBM Systems  Technology Group
ibm.com/systems/services/labservices
office: 607.429.3323
mobile; 607.321.7556
alan_altm...@us.ibm.com
IBM Endicott

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit
http://wiki.linuxvm.org/


Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

2014-10-02 Thread O'Brien, Dennis L
I'm not sure what Terry means by won't count against the memory footprint.  
Standby and reserved storage is included in the calculations to determine 
whether a live guest relocation will put the target member at risk for running 
out of page space.  See the help files for messages HCP1811I and HCP1813I.



    Dennis O'Brien

They may take our lives, but they'll never take our freedom!  -- Mel Gibson 
as William Wallace, in Braveheart

-Original Message-
From: Linux on 390 Port [mailto:LINUX-390@vm.marist.edu] On Behalf Of Martin, 
Terry Contractor
Sent: Thursday, October 02, 2014 07:00
To: LINUX-390@vm.marist.edu
Subject: Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

Thanks Mike. I will take a look. One question I assume that if you allocate the 
Standby memory in the guest Directory that it won't count against the memory 
footprint until some of that standby is used is that correct?

-Original Message-
From: Linux on 390 Port [mailto:LINUX-390@vm.marist.edu] On Behalf Of Michael 
MacIsaac
Sent: Thursday, October 02, 2014 9:49 AM
To: LINUX-390@vm.marist.edu
Subject: Re: Adding memory dynamically to a RHEL6.5 guest running under z/VM 6.3

Terry,

Do you have STANDBY memory defined in the virtual machines?

There is a section, 26.2 Set up memory hotplugging in The Virtualization 
Cookbook for IBM z/VM 6.3, RHEL 6.4, and SLES 11 SP3 on the Web at 
http://www.redbooks.ibm.com/abstracts/sg248147.html

Hope it helps.

-Mike M.

On Thu, Oct 2, 2014 at 9:36 AM, Martin, Terry Contractor  
terry.mar...@ssa.gov wrote:

 Hi

 I have a couple of guests that I need to add memory to without 
 recycling the guests. What are the steps and commands to accomplish this?

 Thanks,

 Terry


 --
 For LINUX-390 subscribe / signoff / archive access instructions, send 
 email to lists...@vm.marist.edu with the message: INFO LINUX-390 or 
 visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390
 --
 For more information on Linux on System z, visit 
 http://wiki.linuxvm.org/


--
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
--
For more information on Linux on System z, visit http://wiki.linuxvm.org/

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.