UFS: export a filesystem to a container and remove the filesystem from the configuration:
global# newfs /dev/rdsk/c1t0d0s0 global# zonecfg -z my_zone zoncfg:my-zone> add fs zoncfg:my-zone> set dir=/usr/mystuff zoncfg:my-zone> set special=/dev/dsk/c1t0d0s0 zoncfg:my-zone> set raw=/dev/rdsk/c1t0d0s0 zoncfg:my-zone> set type=ufs zoncfg:my-zone> end
This is an (probably well-known) example of how-to add and fs to your non-global zone, but what if you want something else ?
global# newfs /dev/rdsk/c1t0d0s0 iI skipped this part, dont have a slice to spare... global# zonecfg -z my_zone zoncfg:my-zone> add fs zoncfg:my-zone> set dir=/ora I want the global-zone fs in my non-global zone as /ora zoncfg:my-zone> set special=/zns/ora ..and the global-zone fs = /zns/ora zoncfg:my-zone> set options=[rw,nodevices,nosuid] zoncfg:my-zone> set type=lofs zoncfg:my-zone> end
If you would like to remove said fs, act as follows:
global# zonecfg -z my_zone zoncfg:my-zone> remove fs dir=/ora zoncfg:my-zone> info zonename: my_zone zonepath: /zns/my_zone limitpriv: inh...... etc,etc,etc