-
Plex Hardware Transcoding using docker with AMD iGPU Ryzen 7900
Well it was a really solid two weeks but Plex Media Server now supports AMD GPUs so this is all no longer needed. Thus ends my foray into docker building.
-
[Guide] Changing block size on SAS and SCSI drives
Just wanted to throw a quick post together based on my research trying to get some cheap drives I got on eBay visible in Unraid. I bought 4 ST3000NXCLAR3000 drives for $12 a piece https://www.ebay.com/itm/374713184250 (out of stock but the vendor has other drives, shipping was great and all drives were in working order) For those that don't know, when you buy these drives from some manufacturers they come with a block size of 520, this means that they are unusable in Unraid and only show up in the device list with a "-" for the storage capacity: [6:0:0:0] disk SEAGATE ST3000NXCLAR3000 GS18 /dev/sdb - [8:0:0:0] disk SEAGATE ST33000650SS 0004 /dev/sde 3.00TB [8:0:1:0] disk SEAGATE ST33000650SS 0003 /dev/sdf 3.00TB Now there are several guides on here that point to using sg3-utils to format the drives to the useable 512 block size and this has worked for me in the past, but not with these drives. The process of formatting would complete as expected, but when the server came back up they'd report connection errors as though they were bad drives. However, after some Googling I found a guide that used a different tool which happens to work on these EMC drives called setblocksize. There is a full guide here on how to do it: https://spun.io/2019/12/06/changing-block-size-to-512-bytes-on-sas-and-scsi-disks-under-ubuntu-linux/ Use setblocksize on Unraid Unraid lacks the ability to use make so in order to use this tool we'll need to install the Ubuntu Playground container from Community Applications. You can leave everything on it's default (including privileged access) except add sg3-utils to APT-Packages. Once installed, open the console for the container and follow the rest of the guide here: wget https://github.com/ahouston/setblocksize/archive/master.zip unzip master.zip cd setblocksize-master make Now, we need to find the generic SCSI device that corresponds to the drive. First, we will install sg3-utils: sudo apt install sg3-utils Next, we will run sudo sg_map which will return the list of block devices and their corresponding SCSI generic devices: sudo sg_map | grep sdm /dev/sg14 /dev/sdm Now we know that /dev/sg14 is what corresponds to our disk sdm. Now, all that’s left to do is to reformat it with the correct block size by running sudo ./setblocksize -t1800 /dev/sg14 It'll take what seems like forever to finish but after this process the drive is seen and useable in Unraid: [6:0:0:0] disk SEAGATE ST3000NXCLAR3000 GS18 /dev/sdb 3.00TB [8:0:0:0] disk SEAGATE ST33000650SS 0004 /dev/sde 3.00TB [8:0:1:0] disk SEAGATE ST33000650SS 0003 /dev/sdf 3.00TB Hopefully this helps someone in the future.
-
Plex Hardware Transcoding using docker with AMD iGPU Ryzen 7900
Just a small update, I've pushed the image to dockerhub and it's available here for those looking to use this: https://hub.docker.com/r/mindaboveall/plex-amd Just open your current Plex container and swap the repo out with mindaboveall/plex-amd:latest and add --device=/dev/dri:/dev/dri to your Extra Parameters and you're good to go. Will be sporadically updated until I get the time to set something more robust up.
-
Mindaboveall started following Plex Hardware Transcoding using docker with AMD iGPU Ryzen 7900
-
Plex Hardware Transcoding using docker with AMD iGPU Ryzen 7900
All you have to do is open up the console on your unraid server and type: docker build https://raw.githubusercontent.com/skjnldsv/docker-plex/master/Dockerfile That command will run for a bit and at the end it'll say: Successfully built <IMAGE ID> Once you see that, copy that image ID and open up your existing Plex container and replace the repository with that new image ID. Alternatively, you can hit "Add Container" and select the profile of your Plex install and simply change the name to something else (I added GPU). The only other thing you need to do is add the following to Extra Parameters (advanced editing): --device='/dev/dri:/dev/dri' It should start up just like normal and work out of the box. I have an MSI Vega 56 that is currently transcoding three streams. Big thanks to OP for turning me onto this.
Mindaboveall
Members
-
Joined
-
Last visited