Hi dear,

I would like to add a zfs volume to a lx branded zone.
Firstly, zfs volume exported as a raw or block device;
Secondly, my application can write to a disk directly to get a better 
performance;
Thirdly, I have a few disks and I create a pool on these disks. I got many lx 
branded zone on this machine, I would like to use volume or a slice of disk to 
store data on each virtual machine.

When I try to do that I found the zfs doc said a zfs volume can be added as a 
device to a non-global zone by using the zone cfg add device subcommand.
So I tried  to create volume and add it to lx branded zone, but when I use 
zonecfg add the volume to lx branded zone, I found nothing under device path 
/dev/zvol/dsk(risk)/, which means failed to add this volume.
Then I try another way, I add a hard disk to that zone, after reboot, I found 
the disk under /dev/rdsk/, and my application can access the disk correctly. 
But it is not my preferred way because the raw disk it too big for one virtual 
machine.

Is volume the only way to let non-global zone accesses raw device directly?
How to add a volume to a non-global zone correctly?

Regards
xin.

——————————————————————
北京知象科技有限公司 数据平台




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