Jump to content

mbicca

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by mbicca

  1. On 3/8/2017 at 7:21 AM, uaeproz said:

     

     

    I tried it but it didn't work:

     

    root@Tower:/ramdisk# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    rootfs           16G  389M   16G   3% /
    tmpfs            16G  316K   16G   1% /run
    devtmpfs         16G     0   16G   0% /dev
    cgroup_root      16G     0   16G   0% /sys/fs/cgroup
    tmpfs           128M  2.6M  126M   3% /var/log
    /dev/sda1       7.5G  421M  7.1G   6% /boot
    /dev/md1        7.3T  4.2T  3.1T  58% /mnt/disk1
    /dev/md2        9.1T  4.9T  4.3T  53% /mnt/disk2
    /dev/md3        7.3T  4.2T  3.2T  58% /mnt/disk3
    /dev/md4        3.7T  2.7T  992G  74% /mnt/disk4
    /dev/md5        3.7T  3.5T  211G  95% /mnt/disk5
    /dev/md6        3.7T  2.6T  1.1T  70% /mnt/disk6
    /dev/md7        3.7T  3.1T  646G  83% /mnt/disk7
    /dev/md8        7.3T  5.2T  2.2T  71% /mnt/disk8
    /dev/md9        3.7T  3.1T  565G  85% /mnt/disk9
    /dev/md10       7.3T  5.0T  2.4T  69% /mnt/disk10
    /dev/md11       7.3T  6.7T  634G  92% /mnt/disk11
    /dev/md12       7.3T  4.8T  2.6T  66% /mnt/disk12
    /dev/md13       3.7T   33M  3.7T   1% /mnt/disk13
    /dev/md14       7.3T  2.8T  4.6T  38% /mnt/disk14
    /dev/md16       3.7T   33M  3.7T   1% /mnt/disk16
    /dev/md18       3.7T   33M  3.7T   1% /mnt/disk18
    /dev/sdf1       943G   34G  896G   4% /mnt/cache
    shfs             90T   53T   38T  59% /mnt/user0
    shfs             91T   53T   38T  58% /mnt/user
    /dev/loop0       10G  3.0G  6.1G  33% /var/lib/docker
    tmpfs            16G     0   16G   0% /ramdisk
    shm              64M  4.0K   64M   1% /var/lib/docker/containers/805bc16f4bbb9e448c9f29a3949db212b0575f66ec224946c32eaa08feca5a48/shm
     


    Did you change your plex settings to use that path? It does look like your tmpfs mounted correctly under /ramdisk. Remember you need to change your Plex Settings to actually use it. Attached you can find how I setup up mine and then inside the Plex setup you set it to use the /transcode path.

    Screen Shot 2018-04-27 at 5.42.54 PM.png

  2. On 3/8/2017 at 7:21 AM, uaeproz said:

     

     

    I tried it but it didn't work:

     

    root@Tower:/ramdisk# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    rootfs           16G  389M   16G   3% /
    tmpfs            16G  316K   16G   1% /run
    devtmpfs         16G     0   16G   0% /dev
    cgroup_root      16G     0   16G   0% /sys/fs/cgroup
    tmpfs           128M  2.6M  126M   3% /var/log
    /dev/sda1       7.5G  421M  7.1G   6% /boot
    /dev/md1        7.3T  4.2T  3.1T  58% /mnt/disk1
    /dev/md2        9.1T  4.9T  4.3T  53% /mnt/disk2
    /dev/md3        7.3T  4.2T  3.2T  58% /mnt/disk3
    /dev/md4        3.7T  2.7T  992G  74% /mnt/disk4
    /dev/md5        3.7T  3.5T  211G  95% /mnt/disk5
    /dev/md6        3.7T  2.6T  1.1T  70% /mnt/disk6
    /dev/md7        3.7T  3.1T  646G  83% /mnt/disk7
    /dev/md8        7.3T  5.2T  2.2T  71% /mnt/disk8
    /dev/md9        3.7T  3.1T  565G  85% /mnt/disk9
    /dev/md10       7.3T  5.0T  2.4T  69% /mnt/disk10
    /dev/md11       7.3T  6.7T  634G  92% /mnt/disk11
    /dev/md12       7.3T  4.8T  2.6T  66% /mnt/disk12
    /dev/md13       3.7T   33M  3.7T   1% /mnt/disk13
    /dev/md14       7.3T  2.8T  4.6T  38% /mnt/disk14
    /dev/md16       3.7T   33M  3.7T   1% /mnt/disk16
    /dev/md18       3.7T   33M  3.7T   1% /mnt/disk18
    /dev/sdf1       943G   34G  896G   4% /mnt/cache
    shfs             90T   53T   38T  59% /mnt/user0
    shfs             91T   53T   38T  58% /mnt/user
    /dev/loop0       10G  3.0G  6.1G  33% /var/lib/docker
    tmpfs            16G     0   16G   0% /ramdisk
    shm              64M  4.0K   64M   1% /var/lib/docker/containers/805bc16f4bbb9e448c9f29a3949db212b0575f66ec224946c32eaa08feca5a48/shm
     


    This is really odd, I have been using this for a long time, did you try running the commands manually? Any errors?

    Like:
    mkdir /ramdisk
    mount -t tmpfs -o size=2048m tmpfs /ramdisk

     

    This is my go file and the output of df -h which shows the /ramdisk of 2GB:

    # cat /boot/config/go
    #!/bin/bash
    # Start the Management Utility
    #ethtool -K eth0 tx off sg off tso off
    /usr/local/sbin/emhttp &
    mkdir /ramdisk
    mount -t tmpfs -o size=2048m tmpfs /ramdisk

    # df -h
    Filesystem      Size  Used Avail Use% Mounted on
    rootfs           12G  396M   12G   4% /
    tmpfs            12G  248K   12G   1% /run
    devtmpfs         12G   16K   12G   1% /dev
    cgroup_root      12G     0   12G   0% /sys/fs/cgroup
    tmpfs           128M  2.4M  126M   2% /var/log
    /dev/sdd1       7.6G  587M  7.1G   8% /boot
    tmpfs           2.0G     0  2.0G   0% /ramdisk
    /dev/md1        2.8T  1.4T  1.4T  51% /mnt/disk1
    /dev/md2        2.8T  279G  2.5T  10% /mnt/disk2
    /dev/md3        2.8T   17M  2.8T   1% /mnt/disk3
    /dev/md4        2.8T  748G  2.0T  27% /mnt/disk4
    /dev/md5        2.8T  218G  2.6T   8% /mnt/disk5
    /dev/sdc1       233G  121G  111G  53% /mnt/cache
    shfs             14T  2.6T   12T  19% /mnt/user
    /dev/loop0       30G 1018M   28G   4% /var/lib/docker
    shm              64M     0   64M   0% /var/lib/docker/containers/dfc268df8c41735b6868324017ee4856f1dd9f1d6d78521101b81b126411eb03/shm
    shm              64M  8.0K   64M   1% /var/lib/docker/containers/508dfe59ead3611622afde93e85ad50f77f796511ff80c2bc4e07a814c6ea626/shm
    /dev/loop1      5.0G   18M  4.9G   1% /etc/libvirt

  3. Hi Guys,

     

    Yes, trurl, sorry for the typo that is correct, I have also tested adding lines to the /boot/go script and it works great.

    Here are the reviewed steps , including the go script change:
     

    1) Login using SSH to your Unraid server > ssh root@unraid(IP)

    2) mkdir /ramdisk

    3) mount -t tmpfs -o size=1024m tmpfs /ramdisk

    4) This will create a 1G /ramdisk

    5) Set Plex set to container (/transcode) host (/ramdisk)

    6) Change Plex settings to /transcode

    7) Be happy .. you can actually go inside the folder too: cd /ramdisk, start a movie and do a couple of ls or df -h and you will see that being used.
    8) To make it persistent, you can add the lines to the go script under /boot/config
    9) Here are the lines in mine that are working:
    #!/bin/bash
    # Start the Management Utility
    /usr/local/sbin/emhttp &
    ethtool -K eth0 tx off sg off tso off
    mkdir /ramdisk
    mount -t tmpfs -o size=1024m tmpfs /ramdisk

    NOTE: This is my whole go script, the only lines you really need are the last two ones to be added to whatever you have setup.

    • Like 1
  4. Hi Guys,

     

    I think the easiest way to do this and to make sure it works is:

     

    1) Login using SSH to your Unraid server > ssh root@unraid(IP)

    2) mkdir /ramdisk

    3) mount -t tmpfs -o size=1024m tmpfs /mnt/ramdisk

    4) This will create a 1G /ramdisk

    5) Set Plex set to container (/transcode) host (/ramdisk)

    6) Change Plex settings to /transcode

    7) Be happy .. you can actually go inside the folder too: cd /ramdisk, start a movie and do a couple of ls or df -h and you will see that being used.

     

    Enjoy!

    -Marco

×
×
  • Create New...