Skip to content

Instantly share code, notes, and snippets.

View gist:51182ac21b27a2a5f1a0
[root@headnode (dc1) ~]# sdcadm post-setup zookeeper -s 080020ff-ffff-ffff-ffff-002128b21918 -s 080020ff-ffff-ffff-ffff-002128b2306a
Getting SDC application details from SAPI
Getting SDC's binder details from SAPI
Getting SDC's binder instances from SAPI
Getting SDC's binder vms from VMAPI
Verifying target severs "["080020ff-ffff-ffff-ffff-002128b21918","080020ff-ffff-ffff-ffff-002128b2306a"]" exist
sdcadm post-setup: error (Usage): Must specify 2 existing servers
[root@headnode (dc1) ~]# sdc-cnapi /servers | json -a "uuid"
HTTP/1.1 200 OK
Content-Type: application/json
View gist:843ad152b72e47a870bf
[ Feb 17 22:14:57 Executing start method ("/lib/svc/method/mdata-execute"). ]
+ . /lib/svc/share/smf_include.sh
++ SMF_EXIT_OK=0
++ SMF_EXIT_NODAEMON=94
++ SMF_EXIT_ERR_FATAL=95
++ SMF_EXIT_ERR_CONFIG=96
++ SMF_EXIT_MON_DEGRADE=97
++ SMF_EXIT_MON_OFFLINE=98
++ SMF_EXIT_ERR_NOSMF=99
++ SMF_EXIT_ERR_PERM=100
View gist:a6660636b802b3170c4a
[root@headnode (dc1) ~]# sdcadm svcs
TYPE UUID NAME IMAGE INSTS
vm e295968b-a390-4fa8-af5d-d76ea494809e adminui 5c4e3240-b803-11e4-960d-132b0fca6dd2 1
vm 9ba25856-6098-4c72-b3cc-bdd66d010bc7 amon 8d8f1b96-b801-11e4-accc-23093b67a680 1
vm 9dff245f-34f4-4f93-b79d-83264d770ebc amonredis 5fc443e6-b804-11e4-9c12-07fb102068c3 1
vm - assets - 1
vm ceffb747-356e-450c-8288-03095efdc7e8 binder 395736f4-b805-11e4-84fb-07f2bb1aac41 3
vm 0d741aa7-e760-41a4-835a-2046c9c2c53e ca 7a7d82c0-b803-11e4-962e-6355c09445b6 1
vm c705138c-4d2c-4f66-8710-d506fbed38c9 cloudapi 2a84c4cc-b803-11e4-a941-8b1732e719c8 1
vm eae368d5-c423-462f-aa79-66cb97f4d6f7 cnapi 31693a28-b805-11e4-9bd5-cf30dfa8edab 1
View sdcadm output
-002128b21918 -s 080020ff-ffff-ffff-ffff-002128b2306a -s 080020ff-ffff-ffff-ffff
Verifying target severs "["080020ff-ffff-ffff-ffff-002128b21918","080020ff-ffff-ffff-ffff-002128b2306a"]" exist
Getting SDC's manatee details from SAPI
Getting SDC's manatee instances from SAPI
Getting primary manatee details from VMAPI
This command will make the following changes:
Add instance "manatee1" in server 080020ff-ffff-ffff-ffff-002128b21918
Add instance "manatee2" in server 080020ff-ffff-ffff-ffff-002128b2306a
View gist:a12a6405180fe398d74a
Page Summary Pages MB %Tot
------------ ---------------- ---------------- ----
Kernel 1098484 4290 9%
ZFS File Data 2879314 11247 23%
Anon 1486357 5806 12%
Exec and libs 249557 974 2%
Page cache 23801 92 0%
Free (cachelist) 105053 410 1%
Free (freelist) 6735763 26311 54%
View gist:a2ed85f00eb1c3ffc7cd
sdcadm error:
[root@headnode (dc1) ~]# sdcadm update --all --just-images
Imported image a7dab558-d90a-11e4-a140-07b5db4c1682 (papi@release-20150402-20150402T072955Z-g21bb506)
Update error: {"message":"imgapi client error: \"task timeout error\"","we_cause":{},"code":"SDCClient","exitStatus":1,"image":"b78d718e-d90a-11e4-8877-471cf469986a"}
sdcadm update: error (SDCClient): imgapi client error: "task timeout error"
command: sdcadm update --all
View gist:71cf0989c99e65e8b0bd21b74c196bf4
fatal: [node0 -> None]: FAILED! => {"changed": true, "cmd": ["scli", "--create_mdm_cluster", "--master_mdm_ip", "192.168.33.50", "--master_mdm_management_ip", "192.168.33.50", "--master_mdm_name", "node0", "--accept_license", "--approve_certificate"], "delta": "0:00:00.056874", "end": "2016-04-20 18:38:55.805746", "failed": true, "rc": 7, "start": "2016-04-20 18:38:55.748872", "stderr": "Error: MDM failed command. Status: The Master MDM is already configured", "stdout": "", "stdout_lines": [], "warnings": []}