ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Setting Up Samba for Use with Plex (CentOS 7.2 Minimal)

    IT Discussion
    plex centos 7.2 how to samba
    10
    37
    9.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stacksofplatesS
      stacksofplates
      last edited by

      Another thing to mention,

      chcon -t samba_share_t /samba
      

      This does not permanently change the context type. You will want this:

      semanage fcontext -a -t samba_share_t "/samba(/.*)?"
      

      Then do

      restorecon -R /samba
      

      This will survive a filesystem relabel.

      wirestyle22W 1 Reply Last reply Reply Quote 2
      • wirestyle22W
        wirestyle22 @stacksofplates
        last edited by wirestyle22

        @stacksofplates Very helpful. How would I go about performing the actual resize? I have never done that before.

        travisdh1T 1 Reply Last reply Reply Quote 0
        • travisdh1T
          travisdh1 @wirestyle22
          last edited by

          @wirestyle22 said in Setting Up Samba for Use with Plex (CentOS 7.2 Minimal):

          @stacksofplates Very helpful. How would I go about performing the actual resize? I have never done that before.

          Is it actually mounted anywhere yet? Could you show us?

          df -h
          

          Might just need to change the mount point from /home.

          1 Reply Last reply Reply Quote 1
          • wirestyle22W
            wirestyle22
            last edited by

            0_1474935740350_plex.jpg

            travisdh1T 1 Reply Last reply Reply Quote 0
            • travisdh1T
              travisdh1 @wirestyle22
              last edited by

              @wirestyle22 said in Setting Up Samba for Use with Plex (CentOS 7.2 Minimal):

              0_1474935740350_plex.jpg

              Yep, you just need to change the line in /etc/fstab that starts

              /dev/mapper/centos-home /home
              

              to

              /dev/mapper/centos-home /home/samba
              

              Sure, you could resize the partition, but if the box isn't used for anything else it won't cause a problem. /home is normally put on it's own partition to keep users from bringing the OS down due to running out of drive space. If users aren't going to be using anything but the samba share, then that's not going to become an issue.

              wirestyle22W travisdh1T 3 Replies Last reply Reply Quote 2
              • wirestyle22W
                wirestyle22 @travisdh1
                last edited by

                @travisdh1 Thanks! Testing in a minute.

                1 Reply Last reply Reply Quote 1
                • travisdh1T
                  travisdh1 @travisdh1
                  last edited by

                  @travisdh1 I might rename the logical volume as well, make sure to unmount /home first.

                  umount /home
                  lvrename /dev/centos/home /dev/centos/samba
                  mount -a
                  
                  travisdh1T 1 Reply Last reply Reply Quote 1
                  • travisdh1T
                    travisdh1 @travisdh1
                    last edited by

                    @travisdh1 I'm going to fast while multi-tasking tonight, can you tell? Don't forget to put the correct path in /etc/fstab if you rename the logical volume.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      You are going to fast? Religious thing?

                      travisdh1T 1 Reply Last reply Reply Quote 1
                      • travisdh1T
                        travisdh1 @scottalanmiller
                        last edited by

                        @scottalanmiller said in Setting Up Samba for Use with Plex (CentOS 7.2 Minimal):

                        You are going to fast? Religious thing?

                        Weight loss 😉

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @travisdh1
                          last edited by

                          @travisdh1 said in Setting Up Samba for Use with Plex (CentOS 7.2 Minimal):

                          @scottalanmiller said in Setting Up Samba for Use with Plex (CentOS 7.2 Minimal):

                          You are going to fast? Religious thing?

                          Weight loss 😉

                          I've had nothing but salads and beer today.

                          1 Reply Last reply Reply Quote 0
                          • wirestyle22W
                            wirestyle22 @travisdh1
                            last edited by wirestyle22

                            @travisdh1 So I did that as seen below, but I'm still running into that space issue. It's putting everything into the root folder. I'm sure this is something obvious but I'm not seeing it. Any ideas?

                            0_1475434189351_plex.jpg

                            travisdh1T 1 Reply Last reply Reply Quote 0
                            • travisdh1T
                              travisdh1 @wirestyle22
                              last edited by

                              @wirestyle22 We have to figure out where the files are going then, since they are not going into /home/samba like we thought. 'du -h' is what I'd use for this, it will show you the amount of storage used in the current directory and sub-directories.

                              wirestyle22W 1 Reply Last reply Reply Quote 0
                              • wirestyle22W
                                wirestyle22 @travisdh1
                                last edited by wirestyle22

                                @travisdh1 Figured it out. Thanks!

                                1 Reply Last reply Reply Quote 1
                                • NashBrydgesN
                                  NashBrydges
                                  last edited by

                                  So...any thoughts on best practice for Plex setup but with >30TB of content?

                                  1 Reply Last reply Reply Quote 0
                                  • 1
                                  • 2
                                  • 2 / 2
                                  • First post
                                    Last post