Tuesday 12 July 2016

OVM for SPARC Primer part 5

Modifying resource allocations on ldoms:


To get a detailed view of current configuration & resource allocations of the guest domain type:

#ldm list-bindings domainname

To increase CPU/memory resources on an ldom type the following:

bash-3.00# ldm list-domain  domain1
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
domain1          inactive   ------          2     1G
bash-3.00# ldm set-mem 2g  domain1
bash-3.00# ldm set-vcpu 4  domain1
bash-3.00#
bash-3.00# ldm list-domain  domain1
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
domain1          inactive   ------          4     2G
bash-3.00#

To check for available resources go to primary domain & get total available resources from prtdiag command & subtract from that the aggregate of resources currently allocation to all the ldoms.

You can modify resource allocations to guest domains on the fly but in case of primary domain you need a reboot.

For troubleshooting purpose you may need to capture a crash dump requiring a panic to be executed.
You can panic a guest domain using the following command:

bash-3.00# ldm panic domain1


Some basic troubleshooting checks:


·         Check the status of required services

bash-3.00# svcs -l ldmd
fmri         svc:/ldoms/ldmd:default
name         Logical Domains Manager
enabled      true
state        online
next_state   none
state_time   Wed May 27 19:30:18 2015
logfile      /var/svc/log/ldoms-ldmd:default.log
restarter    svc:/system/svc/restarter:default
contract_id  42
dependency   require_all/none svc:/system/filesystem/local (online)
dependency   require_all/none svc:/network/loopback (online)
bash-3.00#
bash-3.00# svcs -l vntsd
fmri         svc:/ldoms/vntsd:default
name         virtual network terminal server
enabled      true
state        online
next_state   none
state_time   Wed May 27 19:30:21 2015
logfile      /var/svc/log/ldoms-vntsd:default.log
restarter    svc:/system/svc/restarter:default
contract_id  60
dependency   optional_all/error svc:/milestone/network (online)
dependency   optional_all/none svc:/system/system-log (online)
bash-3.00#

·         If there are any issues with services then check their corresponding log files for further analysis.

·         If the ldom manager version is greater than 3.0 you can view individual guest domain logs under /var/log/vntsd.

·         You can run explorer with ldom option to gather ldom related logs.

·         Check for consistency of /var/opt/SUNWldm/ldom-db.xml file.

No comments:

Post a Comment

Using capture groups in grep in Linux

Introduction Let me start by saying that this article isn't about capture groups in grep per se. What we are going to do here with gr...