Friday, June 9, 2017

Solaris 10 - Steps to create LDOM

Steps to create LDOM

1. Create Domain

# ldm add-domain spup-lx-v01
# ldm add-vcpu 16 spup-lx-v01
# ldm add-mem 8g spup-lx-v01
# ldm list


Note: Record /etc/resolv.conf, /etc/netmasks, /etc/inet/ntp.conf file entry from same server environment.
You will need this info to set up this VM.

2. List some ldom related info
# ldm list
# ldm list-services
# ldm list-bindings
# ldm list-bindings spup-lx-v01

3. Add vnet to LDOM
# ldm add-vnet vnet0 primary-vsw2 spup-lx-v01
# ldm add-vnet vnet1 primary-vsw3 spup-lx-v01

We are configuring multi-pathing
# ldm set-vnet linkprop=phys-state vnet0 spup-lx-v01
# ldm set-vnet linkprop=phys-state vnet1 spup-lx-v01

4. Add Disk

# ldm list
# echo | format | grep -i <LUN>

# ldm add-vdsdev /dev/dsk/c0t6000D310006D6400000000000000023Cd0s2 DL30@primary-vds0
# ldm add-vdisk VDL30 DL30@primary-vds0 spup-lx-v01

Set boot device variables
# ldm set-var boot-device=vdl30 spup-lx-v01
# ldm set-variable auto-boot\?=false spup-lx-v01

# ldm list-bindings spup-lx-v01

5. Bind and start the LDOM

# ldm bind spup-lx-v01
# ldm list spup-lx-v01
# ldm start spup-lx-v01
# ldm list spup-lx-v01

6. Login to console
# telnet 0 5008

{0} ok boot -s

7. Once you login, perform the following tasks.

a. Remove /etc/path_to_inst (rebuilding device tree).
# mv /etc/path_to_inst /var/tmp/222._etc_path_to_inst
# rm /etc/path_to_inst*

b. Network and hostname configuration
Add hosts entry with correct IP/HOST
# vi /etc/hosts
192.168.10.60   spup-lx-v01.sces.dev    spup-lx-v01     loghost

# vi /etc/netmasks

192.168.1128  255.255.255.128
192.168.10.0    255.255.255.128


# cat >/etc/hostname.vnet0
spup-lx-v01 netmask + broadcast + group ipmp up

# cat >/etc/hostname.vnet1
group ipmp up

# ifconfig vnet1 up

dns client set up
# vi /etc/resolv.conf

domain  sces.dev
search  sces.dev
nameserver  192.168.10.24
nameserver  192.168.10.29

- Set up default router
# cat /etc/defaultrouter
192.168.1129

# cat >/etc/nodename
spup-lx-v01

# cat /etc/nodename

# hostname

# vi /etc/inet/ntp.conf
server 192.168.10.24

# ls -l /var/ntp/ntp.drift

# more /etc/hosts.allow
rpcbind: 192.168.10. 192.168.1. 192.168.5.
sshd: ALL
sendmail: localhost 127.0.0.1

# more /etc/nsswitch.conf

# ls -ltr /etc | grep path_to

# reboot -- -r


spup-lx-v01 console login:


# more /etc/resolv.conf
domain sces.dev
nameserver 192.168.10.24
nameserver 192.168.10.29


#  cat /etc/netmasks
192.168.10.0    255.255.255.128

# cat /etc/inet/ntp.conf

server 192.168.10.14

# ldm list-spconfig
# ldm add-spconfig cfg07012015


Record /etc/resolv.conf, /etc/netmasks, /etc/inet/ntp.conf file entry


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  474  ldm list
  475  ldm list-devices vcpu | wc -l
  476  ldm list-devices vcpu | grep 100 | wc -l
  477  ldm list-devices memory
  478  ldm list
  479  ldm add-domain serp-db-v06_sol11
  480  ldm list
  481  ldm add-vcpu 8 serp-db-v06_sol11
  482  ldm list
  483  ldm add-memory 2G serp-db-v06_sol11
  484  ldm list
  485  ldm list
  486  ldm list-bindings serp-db-v06_sol11
  487  ldm list-bindings serp-db-v06
  488  ldm list
  489  df -k
  490  exit
  491  echo | format | grep 0351
  492  ldm list-services | grep -i 0351
  493  ldm list
  494  ldm help | more
  495  ldm-- help | more
  496  ldm --help | more
  497  ldm list-devices -o cpu | more
  498  ldm list-devices -a cpu | more
  499   ldm --help | more
  500  man mpathadm
  501  history >/var/tmp/cmd-list
  502  clear
  503  history #

No comments:

Post a Comment