Re: [smartos-discuss] add device to OS/LX zone

2018-02-27 Thread Fred Liu
But creating ufs failed. It is just to emulate application's access on real hardware. I don't believe it will work as a raw block device. Thanks. Fred On Tue, Feb 27, 2018 at 9:09 PM +0800, "Jorge Schrauwen" mailto:sjorge...@blackdot.be>> wrote: In your example you called newfs, which cre

Re: [smartos-discuss] add device to OS/LX zone

2018-02-27 Thread Jorge Schrauwen
In your example you called newfs, which creates a new UFS file system. I think if you don't create a filesystem on it and use it as a raw block device it should just work. This is what qemu does when running inside a KVM branded zone. Regards Jorge On 2018-02-27 14:05, Fred Liu wrote: > Act

Re: [smartos-discuss] add device to OS/LX zone

2018-02-27 Thread Fred Liu
Actually?we need access the real hardware not the file system. There is some database software which claims having performance optimization on real hardware. I notice that we can tune zfs rec block size in vm, maybe that is another idea. Anyone tuned? Thanks! Fred On Tue, Feb 27, 2018 at 8

Re: [smartos-discuss] add device to OS/LX zone

2018-02-27 Thread Jorge Schrauwen
Hi, You probably want to set fs_allowed so it includes the filesystem you are trying to create on it. (from man vmadm) fs_allowed: This option allows you to specify filesystem types this zone is allowed to mount. For example on a zone for building SmartOS you p

[smartos-discuss] add device to OS/LX zone

2018-02-27 Thread Fred Liu
Hi, For I have no spare hardware(disk), I have tried adding zvol to OS/LX zone. But it looks likes not working as the document. zonecfg:f58e8c87-eb04-ea48-bf23-9b7be32515b8:device> set match=/dev/zvol/rdsk/zones/device zonecfg:f58e8c87-eb04-ea48-bf23-9b7be32515b8:device> end zonecfg:f58e8c87-eb0