On 07/18/16 04:12 PM, Jon Dison wrote:
I've got an existing SmartOS zone working fine with a couple of lofs mounts. I can't seem to get the syntax quite right to add another. I'm going off these examples <https://wiki.smartos.org/display/DOC/Using+vmadm+to+manage+virtual+machines> but still coming up short.
Has anyone done this before and has the exact steps?

Unless something has changed recently, you can't do this with vmadm, you have to use zonecfg thus:

# zonecfg -z f3732664-417e-478e-cfff-8efc74f94a42
zonecfg:f3732664-417e-478e-cfff-8efc74f94a42> add fs
zonecfg:f3732664-417e-478e-cfff-8efc74f94a42:fs> set dir=/test
zonecfg:f3732664-417e-478e-cfff-8efc74f94a42:fs> set special=/zones/test
zonecfg:f3732664-417e-478e-cfff-8efc74f94a42:fs> set type=lofs
zonecfg:f3732664-417e-478e-cfff-8efc74f94a42:fs> end
zonecfg:f3732664-417e-478e-cfff-8efc74f94a42> commit
zonecfg:f3732664-417e-478e-cfff-8efc74f94a42> exit

# vmadm reboot f3732664-417e-478e-cfff-8efc74f94a42

# zlogin f3732664-417e-478e-cfff-8efc74f94a42

# ls -ld /test
drwxr-xr-x drwxr-xr-x 2 root root 3 Jul 18 05:02 /test/

# exit

# vmadm get f3732664-417e-478e-cfff-8efc74f94a42 | json filesystems
[
  {
    "source": "/zones/test",
    "target": "/test",
    "type": "lofs"
  }
]

--
Ian.




-------------------------------------------
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