Hi dear,

I would like to add a zfs volume to a lx branded zone.

I tried two ways

     1. mount device

     2. mount file system

But both failed, so I turn to your help. Maybe there is bug here.


Firstly I use zonecfg to add device to this virtual machine, but when I restart 
the user zone, I found nothing under device path /dev/zvol/rdsk/, which means 
failed to add this device.

Therefore, I try another way,  I attend to mount file system instead of device.

I run following commands, please kindly help me check,


set dir=/wvol

set special=/dev/zvol/rdsk/zones/wvol //the zfs volume in the global zone

set raw=/devices/pseudo/zfs@0\\:20\\,raw //this is the wvol link to the device

set type=lofs


after restart the user zone:

[root@bdb4c6af-a595-ebf4-84a2-b4b7b52bf6a8 ~]# ll /wvol
crw------- 1 root sys 0, 94371860 Jul 21 10:45 /wvol

[root@bdb4c6af-a595-ebf4-84a2-b4b7b52bf6a8 ~]# stat /wvol
  File: ‘/wvol’
  Size: 0               Blocks: 0          IO Block: 8192   character special 
file
Device: 22a00h/141824d  Inode: 47185964    Links: 1     Device type: 0,5a00014
Access: (0600/crw-------)  Uid: (    0/    root)   Gid: (    3/     sys)
Access: 2016-07-21 10:45:06.000000000 +0000
Modify: 2016-07-21 10:45:06.000000000 +0000
Change: 2016-07-22 12:04:50.000000000 +0000
 Birth: -


I suspect the device type in red font above is incorrect, so I run stat command 
on global zone as comparison.


[root@public-cloud-4 ~]# stat /devices/pseudo/zfs@0:20,raw
  File: `/devices/pseudo/zfs@0:20,raw'
  Size: 0             Blocks: 0          IO Block: 8192   character special file
Device: 8a80000h/145227776d    Inode: 47185964    Links: 1     Device type: 
5a,14
Access: (0600/crw-------)  Uid: (    0/    root)   Gid: (    3/     sys)
Access: 2016-07-21 10:45:06.000000000 +0000
Modify: 2016-07-21 10:45:06.000000000 +0000
Change: 2016-07-22 12:04:50.000000000 +0000
 Birth: -


I believe something wrong on lx branded zone, because the device type is an 
invalid value 5a00014, to my experience, it seems to be an address access 
error, the correct value should be 5a,14. So I report this issue to you.


How can I fix this issue and mount a volume 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