[OmniOS-discuss] extended attributes in LX zone

Dan McDonald danmcd at omniti.com
Sat Oct 1 01:56:32 UTC 2016


> On Sep 30, 2016, at 6:57 PM, Michael Talbott <mtalbott at lji.org> wrote:
> 
> Bummer. Oh well. How about presenting a zvol as a raw device like shown here: http://docs.oracle.com/cd/E19253-01/819-5461/gbebi/index.html
> 
> I did this, shutdown and rebooted the zone.. and the path the the volume appears under /dev/zvol/dsk/ssdpool/ but that directory is empty when it should contain the name of my zvol :(
> 
> I figure if I can get that working, then I could format that vol in ext4 so it'd have a way of properly handling xattrs (or so I hope).. Otherwise.. I guess I could present a zvol as an iscsi volume to the linux host/zone/entity and then format that ext4 over iscsi, but I'd rather not add the networking stack in there if I don't have to.
> 
> Any ideas on getting zvols as raw devices in an lx zone?

You MIGHT be able to use zonecfg to bring one in.  E.g.

add device
set match=/dev/zvol/dsk/data/oi-data-disk
end

I haven't tested this yet.  That example three extra lines for zonecfg comes from a standard lipkg zone.

ALSO, it may be the case that for an LX zone, such a zvol device entry would appear in /native.

Dan



More information about the OmniOS-discuss mailing list