Setting Up Samba for Use with Plex (CentOS 7.2 Minimal)
-
@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?