The vmadm(1M) states that the filesystems field is not updatable, so at current zonecfg is the only way to do it.
-- Brian Bennett Systems Engineer, Cloud Operations Joyent, Inc. | www.joyent.com <http://www.joyent.com/> > On Jul 17, 2016, at 10:06 PM, Ian Collins <[email protected]> wrote: > > 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> > <https://www.listbox.com/member/archive/rss/184463/26986985-d0246faa> | > Modify <https://www.listbox.com/member/?&> Your Subscription > <http://www.listbox.com/>
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------- 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
