On Fri, Jan 15, 2016 at 2:51 PM, Josh Wilsdon <[email protected]> wrote:

> Hi Eric,
>
> I'm assuming by "reinstall" here you mean that you'd like to just wipe out
> and recreate the zone. If that's not what you want, the instructions below
> will not be helpful. In that case, could you be a bit more specific?
>
> One option here would be to use sdcadm and 'update' to the same image that
> you've already got. To update to the same image you already have you could
> do something like:
>
> [root@headnode (coal) ~]# sdcadm insts svc=napi
> INSTANCE                              SERVICE  HOSTNAME  VERSION
>                 ALIAS
> a6c17122-13fa-402e-bcb0-03f5b3da80f5  napi     headnode
>  master-20151210T191957Z-g47ab1da  napi0
> [root@headnode (coal) ~]# sdcadm update --force-same-image
> napi@master-20151210T191957Z-g47ab1da
> Using channel dev
>
> This update will make the following changes:
>     update "napi" service to image bdca3f98-9f73-11e5-971b-477c74124de0
>         (napi@master-20151210T191957Z-g47ab1da)
>
> Would you like to continue? [y/N] y
>
> Create work dir: /var/sdcadm/updates/20160115T064231Z
> Installing image bdca3f98-9f73-11e5-971b-477c74124de0
>     (napi@master-20151210T191957Z-g47ab1da)
> Reprovisioning napi VM a6c17122-13fa-402e-bcb0-03f5b3da80f5
> Waiting for napi instance a6c17122-13fa-402e-bcb0-03f5b3da80f5 to come up
> Updated successfully (elapsed 46s).
> [root@headnode (coal) ~]#
>
>
> it would also be possible to just reprovision using vmadm. To do that you
> could do:
>
> [root@headnode (coal) ~]# vmadm get a6c17122-13fa-402e-bcb0-03f5b3da80f5
> | json image_uuid
> bdca3f98-9f73-11e5-971b-477c74124de0
> [root@headnode (coal) ~]# echo '{"image_uuid":
> "bdca3f98-9f73-11e5-971b-477c74124de0"}' | vmadm reprovision
> a6c17122-13fa-402e-bcb0-03f5b3da80f5
> Successfully reprovisioned VM a6c17122-13fa-402e-bcb0-03f5b3da80f5
> [root@headnode (coal) ~]#
>
>
>
> both of these options will do essentially the same thing, which is to
> delete the dataset underlying the zone and recreate that as a new clone
> from the image and boot that to re-run the setup. Anything you've
> customized in the zone will be lost, but NAPI data itself is stored in
> moray/manatee.
>
> Hope that helps,
> Josh
> *smartos-discuss* | Archives
> <https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/22263061-81bd43e9> |
> Modify
> <https://www.listbox.com/member/?&;>
> Your Subscription <http://www.listbox.com>
>



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to