Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

9p Sharing and shared XBMC SQL Library

Featured Replies

I am going to flaunt my ignorance.  :)

 

If I move away from NFS mountpoints to 9p sharing in my XBMCBuntu VMs, is my best strategy to just start with a new SQL library for XBMC?  Does the library have share information (i.e. SMB, NFS, 9p, etc.)?

 

John

I am going to flaunt my ignorance.  :)

 

If I move away from NFS mountpoints to 9p sharing in my XBMCBuntu VMs, is my best strategy to just start with a new SQL library for XBMC?  Does the library have share information (i.e. SMB, NFS, 9p, etc.)?

 

John

I would because the paths will be totally different.

Here is how I swapped paths on an existing library. Backup  each database to a file. As it turns out it's in clear text. Replace paths and then restore the database.

 

  • Author

Actually, I just thought of something that killed this idea:

 

I have 2 standalone boxes that run OpenELEC (not VMs).  So naturally they are not utilizing 9p.  :(

 

However, could this be a workaround....

 

What if I created a persistent NFS mapping on the openelec boxes that points to each unraid share that I care about (Movies, TV, etc.)?  So, when I build the new SQL DB, the paths should be consistent between the standalone boxes and the VMs (i.e. /mnt/*whatever*):

 

OpenELEC #1

    /mnt/Movies = NFS:\\unraid\Movies

    /mnt/TV = NFS:\\unraid\TV

 

OpenELEC #2

    /mnt/Movies = NFS:\\unraid\Movies

    /mnt/TV = NFS:\\unraid\TV

 

XBMCBuntu VM #1

    /mnt/Movies = 9p:\mnt\user\Movies

    /mnt/TV = 9p:\mnt\user\TV

 

XBMCBuntu VM #2

    /mnt/Movies = 9p:\mnt\user\Movies

    /mnt/TV = 9p:\mnt\user\TV

 

Shouldn't this work for using a shared library?

 

John

  • Author

W00t!

 

I have this working beautifully!

 

Since I have a combination of XBMCBuntu VMs and standalone OpenELEC boxes, I had to get mildly creative as I described above.

 

On the OpenELEC boxes, I created persistent mappings from each of the unRAID shares that matter (movies, tvshows and music) to local mount points (i.e. /storage/movies) using CIFS.  This has become very easy in OE v4 as described here:  http://wiki.openelec.tv/index.php?title=Mounting_network_shares

 

Here is the content of my storage-movies.mount file...

 

 [unit]
Description=cifs mount script
Requires=network-online.service
After=network-online.service
Before=xbmc.service

[Mount]
What=//192.168.1.10/Movies
Where=/storage/movies
Options=username=YOURUSER,password=YOURPASSWORD,rw
Type=cifs

[install]
WantedBy=multi-user.target

 

On the XBMCBuntu VMs, I created the 9p passthrough shares as archedraft described here:  http://lime-technology.com/forum/index.php?topic=34686.msg322473#msg322473

 

Here is the section from one of my XMLs and the fstab entry...

 

    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user/Movies'/>
      <target dir='movies'/>
    </filesystem>
    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user/Music'/>
      <target dir='music'/>
    </filesystem>
    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user/TV'/>
      <target dir='tvshows'/>
    </filesystem>

 

movies  /storage/movies    9p  rw,dirsync,_netdev,relatime,trans=virtio,version$
tvshows /storage/tvshows          9p rw,dirsync,_netdev,relatime,trans=virtio,v$
music   /storage/music    9p  rw,dirsync,_netdev,relatime,trans=virtio,version=$

 

I now have all 4 instances (VM and non-VM) using the same MariaDB docker DB!  As far as MariaDB is concerned, all 4 instances are using the same paths for the media.

 

LOVING LIFE!

 

John

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.