9p mount problems with "unassigned devices"


Recommended Posts

I have struggled with this for a while now, and no matter what I do I seem to fail mounting drives outside unraid array with correct permissions. So for the first and maybe most important question: Is there something that needs to be enabled to be able to use disk mounts outside Unraids array in a VM over 9p?

 

If I mount any of the unraid array folders like /mnt/cache or /mnt/user/, I get expected permissions and can read and write and everything is wonderful. But if I then try to mount something like /mnt/disks/Cache (for a new external cache drive), or another /mnt/disks/Data folder which is both assigned via the "Unassigned devices" plugin, I get only read access except from creating files under root in the VM.

I have checked the folders both when mounted and not, they all share the same user:group and chmod values. The fstab and mtab is exactly the same and I can't find any useful information in the log files either.

 

I also tried to make a folder under root, chown it to myself with permissions telling me I should have no problems writing a file in it, but it still denies it.

 

It must be something I really have overlooked, maybe something stupid and tiny - because I feel I've been through more of the "advanced" shit already.

 

FSTAB:
storage		/mnt/storage	9p	trans=virtio,version=9p2000.L,msize=262144,_netdev,rw	0	0
media		/mnt/media	9p	trans=virtio,version=9p2000.L,msize=262144,_netdev,rw	0	0
scratch		/mnt/scratch	9p	trans=virtio,version=9p2000.L,msize=262144,_netdev,rw	0	0
cache		/mnt/cache	9p	trans=virtio,version=9p2000.L,msize=262144,_netdev,rw	0	0

MTAB:
storage /mnt/storage 9p rw,sync,dirsync,relatime,trans=virtio,version=9p2000.L,msize=262144 0 0
media /mnt/media 9p rw,sync,dirsync,relatime,trans=virtio,version=9p2000.L,msize=262144 0 0
scratch /mnt/scratch 9p rw,sync,dirsync,relatime,trans=virtio,version=9p2000.L,msize=262144 0 0
cache /mnt/cache 9p rw,sync,dirsync,relatime,trans=virtio,version=9p2000.L,msize=262144 0 0

"cache" is the only one which is troubling, and the only one outside the Unraid array. I have similar problems with another VM where I chose to run NFS instead, but I guess I would prefer to use 9p as long it is on the same machine.

 

I could not find anything more about this specific problem on this forum, and I have been through multiple posts here already and tried like everything as setting gid,uid etc.

Link to comment
  • 1 year later...

It only works if you're on the same network!     I know this is an old thread, but I'm looking and can't find anything to solve the same issue you were having.   I'm having the same issues.  I tried it, and it works on the array, but I can't seem to get it to work on an unassigned drive.  The permissions won't let me do anything unless I use sudo, which isn't a solution. 

 

Problem for me is that I'm passing through a nic with a different WAN, so I'm not on the same network as my unraid box, and I really need to be able to write to an unassigned drive passthrough-mounted.   Seems like it should be an easy deal, but it is totally not!

Edited by woodmister
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.