<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>server on Kevin Heruer</title><link>/tags/server/</link><description>Recent content in server on Kevin Heruer</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Fri, 28 Jul 2023 01:00:00 +0100</lastBuildDate><atom:link href="/tags/server/index.xml" rel="self" type="application/rss+xml"/><item><title>Using the same dataset mounted on an app and share it via SMB</title><link>/posts/2023/07/28/sharing-data-sets-betweens-apps-and-smb/</link><pubDate>Fri, 28 Jul 2023 01:00:00 +0100</pubDate><guid>/posts/2023/07/28/sharing-data-sets-betweens-apps-and-smb/</guid><description>The Efficacy of Mounting a Dataset and Sharing It via SMB Simultaneously Discovering the intricacies of dataset management can sometimes seem like an overwhelming puzzle. But, after a lot of learning and tinkering, I’ve finally mastered a method to concurrently mount a dataset and share it via SMB.
Why is This Important? You might wonder, why go through all this trouble? Here’s my use case: I frequently upload videos to my Plex dataset, which is integrated with my Plex TrueNAS app.</description><content>&lt;h2 id="the-efficacy-of-mounting-a-dataset-and-sharing-it-via-smb-simultaneously">The Efficacy of Mounting a Dataset and Sharing It via SMB Simultaneously&lt;/h2>
&lt;p>Discovering the intricacies of dataset management can sometimes seem like an overwhelming puzzle. But, after a lot of learning and tinkering, I’ve finally mastered a method to concurrently mount a dataset and share it via SMB.&lt;/p>
&lt;h3 id="why-is-this-important">Why is This Important?&lt;/h3>
&lt;p>You might wonder, why go through all this trouble? Here’s my use case: I frequently upload videos to my Plex dataset, which is integrated with my Plex TrueNAS app. The conventional approach was to nest a dataset and mount the child dataset while concurrently sharing the parent dataset via SMB. This method, however, became nonviable following an update from TrueNAS.&lt;/p>
&lt;p>Fortunately, it opened up two alternatives. The first is to &lt;a href="/scale/scaletutorials/apps/appadvancedsettings/configuring-host-path-safety-checks/#using-shared-host-paths-with-safety-checks-disabled">disable host path validation&lt;/a>, while the second merges the strengths of NFS and SMB shares using TrueCharts.&lt;/p>
&lt;h3 id="why-i-chose-the-second-option">Why I Chose the Second Option&lt;/h3>
&lt;p>Given that I was already utilizing TrueCharts, the second option was more appealing. The process is simple: instead of the traditional host path, I employed the NFS option in the volume mount of the app. Prior to this change, it&amp;rsquo;s essential to establish the NFS share.&lt;/p>
&lt;p>This decision ensured that I could still manually upload videos to my Plex dataset without any disruption or the need for workarounds. By integrating NFS and SMB shares via TrueCharts, I created a more robust and efficient solution.&lt;/p>
&lt;h3 id="further-reading">Further Reading&lt;/h3>
&lt;p>If you&amp;rsquo;re looking to do the same or just intrigued about this process, you can find more detailed information in this guide: &lt;a href="https://truecharts.org/manual/SCALE/guides/dataset">https://truecharts.org/manual/SCALE/guides/dataset&lt;/a>. Diving into the world of dataset management might seem daunting, but with the right approach and resources, it can transform into a manageable task, and even an enjoyable one.&lt;/p>
&lt;p>Understanding how to effectively manage datasets and sharing options can greatly enhance your system&amp;rsquo;s functionality. It provides more flexibility and control over how your data is accessed and manipulated, leading to improved workflows and efficiencies. So, don&amp;rsquo;t be afraid to explore the world of data management—it&amp;rsquo;s an investment that&amp;rsquo;s sure to pay off.&lt;/p></content></item><item><title>Seagate Skyhawk Drives suck! Part 2</title><link>/posts/2022/10/15/seagate-hdd-updates/</link><pubDate>Sat, 15 Oct 2022 01:00:00 +0100</pubDate><guid>/posts/2022/10/15/seagate-hdd-updates/</guid><description>Last post was about the Seagate Skyhawk HDDs and how they seemed to die like flies. I replaced them with some Toshibas (which are noisier btw) but I wanted to be 100% sure if they were actually dying, so I put them in an external HDD caddy and read out the S.M.A.R.T values. Turns out there is nothing wrong with them??? I also used CrystalDiskInfo and CrystalDiskMark and they seem to be fine.</description><content>&lt;p>Last post was about the Seagate Skyhawk HDDs and how they seemed
to die like flies. I replaced them with some Toshibas (which are noisier btw)
but I wanted to be 100% sure if they were actually dying, so I
put them in an external HDD caddy and read out the S.M.A.R.T values.
Turns out there is nothing wrong with them??? I also used CrystalDiskInfo
and CrystalDiskMark and they seem to be fine.&lt;/p>
&lt;p>So the next thing on the list is the RAM, it&amp;rsquo;s possible the RAM is faulty
and makes the system do unexpected things. They are non ECC because
I&amp;rsquo;m running consumer grade hardware but that shouldn&amp;rsquo;t be the issue,
so now I loaded half of the sticks into my desktop and I&amp;rsquo;m running
MemTest86 to see if I can find anything.&lt;/p>
&lt;p>So now I have 3x 4TB drives extra, I can&amp;rsquo;t put them back into the
system because they&amp;rsquo;re 5700RPM instead of the 7200 the others are
running on. An alternative for them would be to use them as backup
drives, I still have an old 2-bay Synology NAS and backing up the critical
stuff shoulnd&amp;rsquo;t be even close to 4TB making it perfect to run them in
mirror.&lt;/p></content></item><item><title>Seagate Skyhawk Drives suck!</title><link>/posts/2022/10/08/seagate-hdd-experiences/</link><pubDate>Sat, 08 Oct 2022 20:00:00 +0100</pubDate><guid>/posts/2022/10/08/seagate-hdd-experiences/</guid><description>The Seagate Skyhawk drives are advertised as &amp;ldquo;surveillance&amp;rdquo; drives, this basically means that its made for lots of write actions.
But let me give you some backstory, I currently run a TrueNAS Scale server with 8TB in total in one pool split among 3 mirrored vdevs. 2 of these vdevs are 2 mirrored 2TB Skyhawks, the other and most recent one is a 4TB mirrored Toshiba vdev.
In a timespan of 2 years this server has run (1.</description><content>&lt;p>The Seagate Skyhawk drives are advertised as &amp;ldquo;surveillance&amp;rdquo; drives,
this basically means that its made for lots of write actions.&lt;/p>
&lt;p>But let me give you some backstory, I currently run a TrueNAS Scale
server with 8TB in total in one pool split among 3 mirrored vdevs.
2 of these vdevs are 2 mirrored 2TB Skyhawks, the other and most
recent one is a 4TB mirrored Toshiba vdev.&lt;/p>
&lt;p>In a timespan of 2 years this server has run (1.5 years on Proxmox),
I had to replace 3 Seagate drives. 1 2TB and both the 4TB ones. I
know these drives arent made for read/write but still, they tend do
die pretty quick with my setup. And the temperatures arent extremely
high either.&lt;/p>
&lt;p>I&amp;rsquo;ll be testing the Toshiba 4TB drives to see if they keep up better
since these are advertised as NAS drives.&lt;/p>
&lt;p>So at the bottom line, I do NOT recommend Seagate Skyhawk drives as
a cheap option for your server, get something else that&amp;rsquo;s a bit more
expensive instead. It&amp;rsquo;ll be cheaper in the end ;)&lt;/p>
&lt;p>P.S. The drives were advertised as 7200 RPM at tweakers.net but in
reality they&amp;rsquo;re 5400 RPM. The drives in queston are the ST4000VX013
models. Turns out I had to do some more research before buying, but
they are the cheapest (at time of writing).&lt;/p></content></item><item><title>Increasing VM disk size: Final edition</title><link>/posts/2021/07/23/increasing-vm-disk-size-final-edition/</link><pubDate>Fri, 23 Jul 2021 21:47:00 +0100</pubDate><guid>/posts/2021/07/23/increasing-vm-disk-size-final-edition/</guid><description>This post merges both A little follow up on this post and Increasing Disk Size on Existing VM and fixes a couple of mistakes.
First off, go to your Proxmox host. Run the resize command: bash qm resize &amp;lt;vmid&amp;gt; &amp;lt;disk&amp;gt; &amp;lt;size&amp;gt; where vmid is the ID in your VM ID, disk is the identifier of the disk inside the VM, it&amp;rsquo;s most likely to be scsi0. size is the size you want to add or remove, something like +100G or +1T is both valid.</description><content>&lt;p>This post merges both &lt;a href="/posts/2021/01/21/increasing-disk-size-on-existing-vm-disk">A little follow up on this post&lt;/a> and &lt;a href="/posts/2021/01/21/increasing-disk-size-on-existing-vm-disk">Increasing Disk Size on Existing VM&lt;/a>
and fixes a couple of mistakes.&lt;/p>
&lt;p>First off, go to your Proxmox host. Run the resize command:
&lt;div class="collapsable-code">
&lt;input id="763845219" type="checkbox" />
&lt;label for="763845219">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
qm resize &amp;lt;vmid&amp;gt; &amp;lt;disk&amp;gt; &amp;lt;size&amp;gt;
&lt;/code>&lt;/pre>
&lt;/div>
where &lt;code>vmid&lt;/code> is the ID in your VM ID, &lt;code>disk&lt;/code> is the identifier of the disk inside the VM, it&amp;rsquo;s most likely to be &lt;code>scsi0&lt;/code>.
&lt;code>size&lt;/code> is the size you want to add or remove, something like &lt;code>+100G&lt;/code> or &lt;code>+1T&lt;/code> is both valid.&lt;/p>
&lt;p>Now go into your VM, run the following command to check if the system has notices a disk resize:
&lt;div class="collapsable-code">
&lt;input id="617843592" type="checkbox" />
&lt;label for="617843592">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
dmesg | grep sda
&lt;/code>&lt;/pre>
&lt;/div>
Where &lt;code>sda&lt;/code> is the disk, it could be vda or sdb.&lt;/p>
&lt;p>Run the following command to get your disk and display the partitions, remember to change &lt;code>sda&lt;/code> if required.
&lt;div class="collapsable-code">
&lt;input id="147835296" type="checkbox" />
&lt;label for="147835296">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
fdisk -l /dev/sda | grep ^/dev
&lt;/code>&lt;/pre>
&lt;/div>
Remember the number of the partition you want to increase, it&amp;rsquo;s most likely the biggest one.&lt;/p>
&lt;p>Run the following command to open parted with the drive:
&lt;div class="collapsable-code">
&lt;input id="394721685" type="checkbox" />
&lt;label for="394721685">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
parted /dev/sda
&lt;/code>&lt;/pre>
&lt;/div>
&lt;/p>
&lt;p>Run a &lt;code>list&lt;/code> to check if everything is recognized correctly and run the following command:
&lt;div class="collapsable-code">
&lt;input id="438971526" type="checkbox" />
&lt;label for="438971526">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
resizepart &amp;lt;partition number, integer only&amp;gt; 100%
&lt;/code>&lt;/pre>
&lt;/div>
You could change the 100% to add only a percentage of the free space and add the remaining
space to another partition, but to keep it simple we&amp;rsquo;ll give it all to this partition.&lt;/p>
&lt;p>If it asks to fix the unused space type &lt;code>F&lt;/code> to fix it, if it asks for a partition number and
size; just put in the values like above.&lt;/p>
&lt;p>Ctrl-C out of Parted and run &lt;code>df -h&lt;/code>, you&amp;rsquo;ll notice that you still do not have your extra space!
Run &lt;code>pvresize /dev/&amp;lt;block&amp;gt;&lt;/code> to start resizing, remember to subsitute &lt;code>&amp;lt;block&amp;gt;&lt;/code> with your partition
like &lt;code>sda3&lt;/code>.&lt;/p>
&lt;p>Now run &lt;code>lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv&lt;/code> and &lt;code>resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv&lt;/code>
to actually resize your LVM partition. Remember to replace &lt;code>/dev/mapper/ubuntu--vg-ubuntu--lv&lt;/code>
with your LVM partition, you can find it by running &lt;code>df -h&lt;/code> and looking for the one mounted on &lt;code>/&lt;/code>.&lt;/p>
&lt;p>That&amp;rsquo;s it! The drive has been expanded and readily available, no need to reboot!&lt;/p>
&lt;p>Sources:&lt;br>
&lt;a href="https://pve.proxmox.com/wiki/Resize_disks">https://pve.proxmox.com/wiki/Resize_disks&lt;/a>&lt;/p></content></item><item><title>Follow up on increasing existing VM disk size</title><link>/posts/2021/03/21/follow-up-on-increasing-existing-vm-disk-size/</link><pubDate>Sun, 21 Mar 2021 13:47:57 +0100</pubDate><guid>/posts/2021/03/21/follow-up-on-increasing-existing-vm-disk-size/</guid><description>A little follow up on this post: Increasing Disk Size on Existing VM Disk
When extending an LVM system you should also run the following commands:
pvresize /dev/sda3 (replace with your partition)
lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv (replace with your lvm partition)
resize2fs /dev/mapper/dev/ubuntu--vg-ubuntu--lv (again replace with your lvm partition)</description><content>&lt;p>A little follow up on this post: &lt;a href="/posts/2021/01/21/increasing-disk-size-on-existing-vm-disk">Increasing Disk Size on Existing VM Disk&lt;/a>&lt;/p>
&lt;p>When extending an LVM system you should also run the following commands:&lt;/p>
&lt;p>&lt;code>pvresize /dev/sda3&lt;/code> (replace with your partition)&lt;/p>
&lt;p>&lt;code>lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv&lt;/code> (replace with your lvm partition)&lt;/p>
&lt;p>&lt;code>resize2fs /dev/mapper/dev/ubuntu--vg-ubuntu--lv&lt;/code> (again replace with your lvm partition)&lt;/p></content></item><item><title>Increasing Disk Size on Existing VM Disk</title><link>/posts/2021/01/21/increasing-disk-size-on-existing-vm-disk/</link><pubDate>Thu, 21 Jan 2021 17:05:03 +0100</pubDate><guid>/posts/2021/01/21/increasing-disk-size-on-existing-vm-disk/</guid><description>When you&amp;rsquo;re using your Proxmox server you might run in the problem of not having enough HDD space defined for some of your VMs, using ZFS (pools) it&amp;rsquo;s really easy to fix this.
Since all my VM disks are simple files you can easily increase their size by running the following command: bash qm resize &amp;lt;vmid&amp;gt; &amp;lt;disk&amp;gt; &amp;lt;size&amp;gt; Let&amp;rsquo;s say you have a VM with a disk named vm-100-disk-0 and you wan to increase the disk size by 100GB, you just run bash qm resize 100 vm-100-disk-0 &amp;#43;100G and you&amp;rsquo;re halfway there!</description><content>&lt;p>When you&amp;rsquo;re using your Proxmox server you might run in the problem of not having enough
HDD space defined for some of your VMs, using ZFS (pools) it&amp;rsquo;s really easy to fix this.&lt;/p>
&lt;p>Since all my VM disks are simple files you can easily increase their size by running
the following command:
&lt;div class="collapsable-code">
&lt;input id="157429683" type="checkbox" />
&lt;label for="157429683">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
qm resize &amp;lt;vmid&amp;gt; &amp;lt;disk&amp;gt; &amp;lt;size&amp;gt;
&lt;/code>&lt;/pre>
&lt;/div>
&lt;/p>
&lt;p>Let&amp;rsquo;s say you have a VM with a disk named vm-100-disk-0 and you wan to increase the disk
size by 100GB, you just run
&lt;div class="collapsable-code">
&lt;input id="582417639" type="checkbox" />
&lt;label for="582417639">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
qm resize 100 vm-100-disk-0 &amp;#43;100G
&lt;/code>&lt;/pre>
&lt;/div>
and you&amp;rsquo;re halfway there!&lt;/p>
&lt;p>Now you need to tell the VM to use the newly added space, first you need to check if
the system sees the new space by running
&lt;div class="collapsable-code">
&lt;input id="395684127" type="checkbox" />
&lt;label for="395684127">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
dmesg | grep sda
&lt;/code>&lt;/pre>
&lt;/div>
&lt;/p>
&lt;p>Now we need the right partition to add the space to, run the following to check which
partitions there are
&lt;div class="collapsable-code">
&lt;input id="594613782" type="checkbox" />
&lt;label for="594613782">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
fdisk -l /dev/sda | grep ^/dev
&lt;/code>&lt;/pre>
&lt;/div>
Remember the number /dev/sda3 for example would be 3.&lt;br>
(Just make sure you&amp;rsquo;re grepping the right device, vda is also a possibility.)&lt;/p>
&lt;p>Now run pared with the right device
&lt;div class="collapsable-code">
&lt;input id="539741826" type="checkbox" />
&lt;label for="539741826">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
parted /dev/sda
&lt;/code>&lt;/pre>
&lt;/div>
&lt;/p>
&lt;p>It will ask you to fix the unused space, enter &lt;code>F&lt;/code> for fix, then run
&lt;div class="collapsable-code">
&lt;input id="549763812" type="checkbox" />
&lt;label for="549763812">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
resizepart 3 100%
&lt;/code>&lt;/pre>
&lt;/div>
This will resize partition (sda)3 to use 100% of the newly added space.&lt;/p>
&lt;p>That&amp;rsquo;s it, no need to reboot!&lt;/p>
&lt;p>You can find a more detailed description at the source: &lt;a href="https://pve.proxmox.com/wiki/Resize_disks">https://pve.proxmox.com/wiki/Resize_disks&lt;/a>&lt;/p></content></item><item><title>Nextcloud</title><link>/posts/2021/01/20/nextcloud/</link><pubDate>Wed, 20 Jan 2021 10:23:09 +0100</pubDate><guid>/posts/2021/01/20/nextcloud/</guid><description>What is Nextcloud Nextcloud is a complete software package to replace most cloud services like Google, iCloud, Dropbox etc. Nextcloud is branched off from the other solution ownCloud because (from what I&amp;rsquo;ve heard) a couple of devs did not like the direction it was going so they started their own product.
Nextcloud is not just a storage solution, it&amp;rsquo;s a complete package, it&amp;rsquo;s not blazingly fast and it&amp;rsquo;s written in PHP.</description><content>&lt;h1 id="what-is-nextcloud">What is Nextcloud&lt;/h1>
&lt;p>Nextcloud is a complete software package to replace most cloud services
like Google, iCloud, Dropbox etc. Nextcloud is branched off from the other
solution ownCloud because (from what I&amp;rsquo;ve heard) a couple of devs did not
like the direction it was going so they started their own product.&lt;/p>
&lt;p>Nextcloud is not just a storage solution, it&amp;rsquo;s a complete package, it&amp;rsquo;s not
blazingly fast and it&amp;rsquo;s written in PHP. But it does offer great integration
with other services and has tons of plugins, there are plugins for monitoring
your Nextcloud instance itself or third party services. It also supports contacts,
calendars, Kanban boards, and even complete chat integrations with video.&lt;/p>
&lt;h1 id="why-nextcloud">Why Nextcloud&lt;/h1>
&lt;p>I mainly use Nextcloud as a Google Drive/Dropbox replacement, but the expandability
is what really got me. I&amp;rsquo;m pretty sure I want more functionality in the future so
using a different service like Seafile is not what I&amp;rsquo;m looking for in the long run,
plus Nextcloud being completely free to host yourself without limitations is great.&lt;/p>
&lt;p>A simple Samba/WebDAV was not going to cut it either, having a nice web interface is
important since having to install some app to use it sucks and sometimes I work on
public systems and having to connect to SMB/WebDAV is just not doable while opening
a webpage is easy.&lt;/p>
&lt;p>It also has apps, like for iOS, I recently moved all my photos from iCloud to my Nextcloud
instance and with the auto upload feature I won&amp;rsquo;t have to worry about missing any photo&amp;rsquo;s
or videos missing from my Nextcloud environment.&lt;/p>
&lt;p>Just owning your own data is great, I&amp;rsquo;m 99% sure Apple won&amp;rsquo;t do any crazy things with my
data, but you never know. Plus I don&amp;rsquo;t need to pay a montly fee to get more storage, a
HDD is really cheap these days and already having a server certainly did help.&lt;/p>
&lt;h1 id="how-to-set-it-up">How to set it up&lt;/h1>
&lt;p>You can set up Nextcloud in multiple ways, I went with the manual one because I want to
squeeze/optimize every little thing to save resources on my hardware.&lt;/p>
&lt;p>I basically followed the documentation for installation on Linux here:
&lt;a href="https://docs.nextcloud.com/server/20/admin_manual/installation/source_installation.html">https://docs.nextcloud.com/server/20/admin_manual/installation/source_installation.html&lt;/a>
I installed every required PHP module (and PHP itself) together with MariaDB, Redis, and SMB.&lt;/p>
&lt;p>It&amp;rsquo;s recommended to install imagick, apcu, memcached, and redis module for PHP so you don&amp;rsquo;t
run into any performance issues down the road. You could also always install these at a later
moment when you DO run into these performance issues ofcourse.&lt;/p>
&lt;p>Instead of following the Apache configuration I followed the Nginx one:
&lt;a href="https://docs.nextcloud.com/server/20/admin_manual/installation/nginx.html">https://docs.nextcloud.com/server/20/admin_manual/installation/nginx.html&lt;/a>
just because I&amp;rsquo;m more familiar with Nginx and I personally think it&amp;rsquo;s less resource hungry and
faster. I changed some default things like &lt;code>client_max_body_size&lt;/code> to 10G and ofcourse the
server_name.&lt;/p>
&lt;p>Instead of using SQLite I use MariaDB, it&amp;rsquo;s much faster and stable for long term use, Nextcloud
also only recommends SQLite for development environments.&lt;/p>
&lt;h1 id="optimization">Optimization&lt;/h1>
&lt;p>Make sure to read &lt;a href="https://docs.nextcloud.com/server/20/admin_manual/installation/server_tuning.html">https://docs.nextcloud.com/server/20/admin_manual/installation/server_tuning.html&lt;/a>
a lot of points here lead to a smooth server, I still need to optimize some things like PHP-FPM
but at least make sure you&amp;rsquo;re using MariaDB/MySQL and Redis caching. These two will speed up
things by a lot.&lt;/p>
&lt;p>Next check out &lt;a href="https://docs.nextcloud.com/server/20/admin_manual/configuration_server/caching_configuration.html">https://docs.nextcloud.com/server/20/admin_manual/configuration_server/caching_configuration.html&lt;/a>
it will explain/suggest the best caching settings for your Nextcloud instance. Remember PHP
runs best when properly cached/optimized. Just running PHP and PHP-FPM with default settings is
just OK, and that&amp;rsquo;s not good enough for most in production.&lt;/p>
&lt;p>At last, if you&amp;rsquo;re seriously thinking about using Nextcloud as your main cloud storage/Dropbox replacement
make sure you check out &lt;a href="https://docs.nextcloud.com/server/20/admin_manual/installation/harden_server.html">https://docs.nextcloud.com/server/20/admin_manual/installation/harden_server.html&lt;/a>
and be sure to run over HTTPS.&lt;/p>
&lt;p>Oh and run in RAID1 or ZFS Mirror, I advise using ZFS even though it uses more RAM it&amp;rsquo;s worth it.
Being able to have a pool you can modify however you want and having an abstract layer around
your hardware is great and (in theory) I won&amp;rsquo;t lose any data if any (1) HDD fails in a mirror.
Just don&amp;rsquo;t run striped RAIDs even when the 80% usable capacity is so tempting.&lt;/p>
&lt;p>PS. redundancy isn&amp;rsquo;t a backup, make sure you have one. :)&lt;/p>
&lt;p>PPS. this runs in a VM with 3GB of RAM and an intel i5 10500.&lt;/p></content></item><item><title>Proxmox Tip</title><link>/posts/2021/01/18/proxmox-tip/</link><pubDate>Mon, 18 Jan 2021 17:51:06 +0100</pubDate><guid>/posts/2021/01/18/proxmox-tip/</guid><description>When you&amp;rsquo;re using Proxmox for free without any subscription you may see bash TASK ERROR: command &amp;#39;apt-get update&amp;#39; failed: exit code 100 The issue here is that by default Proxmox is using subscription only repos, you can remove this &amp;ldquo;error&amp;rdquo; by either getting a subscription (duh), or change the repo to pve-no-subscription. This repo is not as stable as the subscription one they claim, but for a home server it should be enough.</description><content>&lt;p>When you&amp;rsquo;re using Proxmox for free without any subscription you may see
&lt;div class="collapsable-code">
&lt;input id="684572319" type="checkbox" />
&lt;label for="684572319">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
TASK ERROR: command &amp;#39;apt-get update&amp;#39; failed: exit code 100
&lt;/code>&lt;/pre>
&lt;/div>
The issue here is that by default Proxmox is using subscription only repos,
you can remove this &amp;ldquo;error&amp;rdquo; by either getting a subscription (duh), or change
the repo to &lt;code>pve-no-subscription&lt;/code>. This repo is not as stable as the subscription
one they claim, but for a home server it should be enough. If you really need
the stability you&amp;rsquo;re probably running a critial environment which probably is
worth paying for the subscription.&lt;/p>
&lt;p>To change the repo edit your &lt;code>/etc/apt/sources.list&lt;/code> and set the repo to
&lt;code>pve-no-subscription&lt;/code>.
&lt;div class="collapsable-code">
&lt;input id="589736142" type="checkbox" />
&lt;label for="589736142">
&lt;span class="collapsable-code__language">bash&lt;/span>
&lt;span class="collapsable-code__toggle" data-label-expand="△" data-label-collapse="▽">&lt;/span>
&lt;/label>
&lt;pre class="language-bash" >&lt;code>
deb http://ftp.debian.org/debian buster main contrib
deb http://ftp.debian.org/debian buster-updates main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve buster pve-no-subscription
# security updates
deb http://security.debian.org/debian-security buster/updates main contrib
&lt;/code>&lt;/pre>
&lt;/div>
&lt;/p>
&lt;p>Source: &lt;a href="https://pve.proxmox.com/wiki/Package_Repositories#sysadmin_no_subscription_repo">https://pve.proxmox.com/wiki/Package_Repositories#sysadmin_no_subscription_repo&lt;/a>&lt;/p></content></item><item><title>My Proxmox Setup</title><link>/posts/2021/01/11/my-proxmox-setup/</link><pubDate>Mon, 11 Jan 2021 11:39:26 +0100</pubDate><guid>/posts/2021/01/11/my-proxmox-setup/</guid><description>Proxmox VE is an interface for managing virtual machines and containers, it&amp;rsquo;s a lightweight solution that could run from ram/usb stick. Proxmox has more solutions like backup and email etc. but I only use the VE software. It&amp;rsquo;s free and open-source, is production ready, and is being worked on actively.
With Proxmox VE you can setup VMs on machines and also cluster multiple machines together, it&amp;rsquo;s easy to use (if you know how to use it) and fast.</description><content>&lt;p>Proxmox VE is an interface for managing virtual machines and containers,
it&amp;rsquo;s a lightweight solution that &lt;em>could&lt;/em> run from ram/usb stick.
Proxmox has more solutions like backup and email etc. but I only use the VE
software. It&amp;rsquo;s free and open-source, is production ready, and is being worked
on actively.&lt;/p>
&lt;p>With Proxmox VE you can setup VMs on machines and also cluster multiple machines
together, it&amp;rsquo;s easy to use (if you know how to use it) and fast. Currenly I am
running 6 VMs on my server, most of them still need some work done but all of
them are running Ubuntu Server 20.04.&lt;/p>
&lt;p>Proxmox VE also supports hardware passthrough for when a VM needs it, in my case
I use it for Plex to use the GPU for transcoding.&lt;/p>
&lt;p>Storage management is also easy to do in Proxmox, however when building a server
always calculate how much storage you thing you need and then double that. I am
currently running into the issue that I&amp;rsquo;m running out of storage, mainly because
I am running in ZFS mirror (RAID1) and cuts my storage in half. Thankfully storage
is not terribly expensive, unless you need multiple tens of TB.&lt;/p>
&lt;p>There are alternatives to Proxmox VE and it all comes down to your preference, the
reason I&amp;rsquo;m using Proxmox is because it made sense the first time I saw it. It does
not have a flashy UI but it works and everything is where it&amp;rsquo;s supposed to be.
But I might change my mind in the future and start using unRAID, who knows.&lt;/p></content></item></channel></rss>