<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>storage on Kevin Heruer</title><link>/tags/storage/</link><description>Recent content in storage 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/storage/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></channel></rss>