{"id":968,"date":"2013-04-23T14:13:09","date_gmt":"2013-04-23T14:13:09","guid":{"rendered":"http:\/\/kraftek.com\/blog\/?p=968"},"modified":"2013-04-23T14:13:09","modified_gmt":"2013-04-23T14:13:09","slug":"cdom-and-ldom-config","status":"publish","type":"post","link":"\/blog\/index.php\/cdom-and-ldom-config\/","title":{"rendered":"CDOM and LDOM config"},"content":{"rendered":"<p>If your server doesn&#8217;t have a CDOM, you could create one by running something like this (create_config.ksh):<\/p>\n<pre>\nldm add-vdiskserver primary-vds0 primary\n\u00a0ldm add-vconscon port-range=5000-5100\u00a0 primary-vcc0 primary\n\u00a0ldm add-vswitch net-dev=igb0 primary-vsw0 primary\n ldm add-vswitch net-dev=nxge0 primary-vsw1 primary\n\u00a0ldm set-vcpu 4 primary\n\u00a0ldm set-memory 1g primary\n\u00a0ldm add-config initial\n\u00a0ldm list-config<\/pre>\n<p>&nbsp;<\/p>\n<p>Reboot the server.<\/p>\n<p>Now let&#8217;s say you want to create an LDOM in that server, login to the cdom and do something like this (create_myldom.ksh):<\/p>\n<pre>\nldm add-domain myldom\nldm set-vcpu 16 myldom\nldm set-memory 13G myldom\nldm add-vnet vnet1 primary-vsw0 myldom\nldm add-vnet vnet2 primary-vsw1 myldom\n ldm add-vdsdev \/dev\/dsk\/<\/pre>\n<pre dir=\"ltr\"><wbr \/>c0t600601605A203100A44CDC74C08<wbr \/>2E211d0s2 vol2@primary-vds0\nldm add-vdisk vdisk0 vol2@primary-vds0 myldom\nldm bind myldom\nldm set-var auto-boot?=true myldom\n ldm start-domain myldom<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If your server doesn&#8217;t have a CDOM, you could create one by running something like this (create_config.ksh): ldm add-vdiskserver primary-vds0 primary \u00a0ldm add-vconscon port-range=5000-5100\u00a0 primary-vcc0 primary \u00a0ldm add-vswitch net-dev=igb0 primary-vsw0 primary ldm add-vswitch net-dev=nxge0 primary-vsw1 primary \u00a0ldm set-vcpu 4 primary \u00a0ldm set-memory 1g primary \u00a0ldm add-config initial \u00a0ldm list-config &nbsp; Reboot the server. Now let&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-968","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=968"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/968\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=968"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}