Yes, it will work as long as the zone is on the same server as the data.
type needs to be set to 'lofs', you probably also want 'options' set to
[ 'nodevice' ]
Regards
Jorge
On 2016-03-12 12:08, 王靖 wrote:
> Thanks for your reply.
>
> Do you mean that I can solve this issue without using NFS/iSCSI/SMB?
> In my case, there are one physical machine, 4 SSD, 1 SATA. I group SATA into
> a pool naming sata_zpool and also group SSD to a pool naming zones.
>
> #zpool create sata_zpool c2t3d0
> #zfs create -V 50G sata_zpool/test
>
> #zpool status
>
> pool: sata_zpool
> state: ONLINE
> scan: none requested
> config:
>
> NAME STATE READ WRITE CKSUM
> sata_zpool ONLINE 0 0 0
> c2t3d0 ONLINE 0 0 0
>
> errors: No known data errors
>
> pool: zones
> state: ONLINE
> scan: none requested
> config:
>
> NAME STATE READ WRITE CKSUM
> zones ONLINE 0 0 0
> raidz1-0 ONLINE 0 0 0
> c0t0d0 ONLINE 0 0 0
> c0t1d0 ONLINE 0 0 0
> c0t2d0 ONLINE 0 0 0
> c0t3d0 ONLINE 0 0 0
>
> errors: No known data errors
>
> Then I can write the json file like below
>
> test.json
> {
> "brand": "lx",
> "image_uuid": "d5b3865c-0804-11e5-be21-dbc4ce844ddc",
> "alias": "test",
> "kernel_version": "2.6.32",
> "hostname": "test",
> "max_physical_memory": 1024,
> "resolvers": [
> "114.114.114.114",
> "8.8.8.8"
> ],
> "filesystem": [
> {
> "type": "zfs",
> "source":"/sata_zpool/test",
> "target":"/test"
> }
> ],
> "nics": [
> {
> "nic_tag": "admin",
> "ip": "10.20.2.49",
> "netmask": "255.255.255.0",
> "gateway": "10.20.2.1",
> "primary": "1"
> }
> ]
> }
>
> #vmadm create -f test.son
> #zlogin UUD
> #df -h
>
> Filesystem Size Used Avail Use% Mounted on
> none 11G 562M 10G 6% /
>
> It seems that it does not work. Could you please help me? Thanks very much.
>
> On Mar 12, 2016, at 5:52 PM, Jorge Schrauwen <[email protected]> wrote:
>
> If you just want the storage and not the zfs management layer...
>
> You can look in 'man vmadm' under the filesystems property. I use it and it
> works great to expose my bulk data to multiple zones.
>
> On 2016-03-12 10:49, Fred Liu wrote:
> It seems hardware pass-through is not applicable in SmartOS from what I know.
> But
> there are some indirect methods(NFS/iSCSI) you can try for there is almost no
> network
> overhead in LX.
>
> Thanks.
>
> 发送自 Outlook Mobile [1]
>
> On Sat, Mar 12, 2016 at 1:02 AM -0800, "Ian Collins" <[email protected]>
> wrote:
>
> On 03/12/16 21:49, 王靖 wrote:
>> Thanks for your reply. I try to install NOSQL database aerospike in a > lx
>> branded zone. It seems that aerospike can put data in SSD and > SATA, so I
>> want to have a lx branded zone that have SSD and SATA, in > this way I can
>> store most of the data on SATA while use SSD as a > cache.
>
> You will probably be much better of just using the SSD as a cache for the
> zones pool.
>
> SmartOS is designed to work with a single pool. Unlike legacy file systems,
> you generally don't have to mess about with drive configurations with ZFS.
>
> --
> Ian.
SMARTOS-DISCUSS | Archives [2] [3] | Modify [4] Your
Subscription
[5]
Links:
------
[1] https://aka.ms/sdimjr
[2] https://www.listbox.com/member/archive/184463/=now
[3] https://www.listbox.com/member/archive/rss/184463/26452851-88b650c7
[4]
https://www.listbox.com/member/?&
[5] 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