Setting Up Samba for Use with Plex (CentOS 7.2 Minimal)
-
@Dashrender weird
-
@JaredBusch said in Plex Media Server Install Guide (CentOS 7.2 Minimal):
@marcinozga said in Plex Media Server Install Guide (CentOS 7.2 Minimal):
@JaredBusch said in Plex Media Server Install Guide (CentOS 7.2 Minimal):
@scottalanmiller said in Plex Media Server Install Guide (CentOS 7.2 Minimal):
@marcinozga said in Plex Media Server Install Guide (CentOS 7.2 Minimal):
I find this guide really confusing. Plex installation should boil down to downloading package with wget and installing it with yum.
You probably don't need wget, you might be able to install it directly. Often that is the case.
I agree, this is really a guide to installing nano and Samba, not Plex.
They bit about transferring the Plex install just comes down to his admitted inexperience with Linux.
The document as it stands is decent. @wirestyle22 missed a little formatting and needs to retitle it setting up samba for use with Plex.
But that's the wrong way of working with Plex. Here's a guide of doing it the right way:
https://www.cuttingcords.com/home/ultimate-server/getting-started
It's a guide for Windows, but installation on Linux is very similar. Just ignore the author's statement that Plex is optimized to run on Windows, it's not. Plex server will run on anything, Plex client was build for Mac first, Windows came later.
This guide is no different it has little to do with setting up Plex.
how is this the wrong way of working with Plex? There is nothing here about working with Plex beyond installing it.
You said it, title should be setting up samba for use with Plex. Beyond initial media upload to Plex server, which is much more efficient with ftp anyway, there is no need to use samba at all. Adding media to Plex should be automated, and this is where Couchpotato and the likes comes into play.
-
Now that this has derailed, as the issue been looking into any further? What is the next step there?
-
@JaredBusch That is helpful. So if I'm understanding this correctly, making the directory in root is the issue. I should delete it and then
mkdir /home/samba
, correct? I basically chose the wrong partition. Is there any way to expand root or is that not a great solution? -
@wirestyle22 said in Setting Up Samba for Use with Plex (CentOS 7.2 Minimal):
@JaredBusch That is helpful. So if I'm understanding this correctly, making the directory in root is the issue. I should delete it and then
mkdir /home/samba
, correct? I basically chose the wrong partition right? Is there any way to expand root or is that not a great solution?You could do that but a better option would be to resize the /home volume and create another volume for the media.
-
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.
-
@stacksofplates Very helpful. How would I go about performing the actual resize? I have never done that before.
-
@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.
-
-
@wirestyle22 said in Setting Up Samba for Use with Plex (CentOS 7.2 Minimal):
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.
-
@travisdh1 Thanks! Testing in a minute.
-
@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
-
@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.
-
You are going to fast? Religious thing?
-
@scottalanmiller said in Setting Up Samba for Use with Plex (CentOS 7.2 Minimal):
You are going to fast? Religious thing?
Weight loss
-
@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.
-
@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?
-
@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.
-
@travisdh1 Figured it out. Thanks!
-
So...any thoughts on best practice for Plex setup but with >30TB of content?