<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Fstab – Serverküche</title><link>https://serverkueche.de/en/tags/fstab/</link><description>Fstab – Neueste Beiträge von Serverküche</description><generator>Hugo</generator><language>en-US</language><managingEditor>feedback@serverkueche.de (Serverküche)</managingEditor><webMaster>feedback@serverkueche.de (Serverküche)</webMaster><copyright>2026 Serverküche</copyright><lastBuildDate>Tue, 01 Dec 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://serverkueche.de/en/tags/fstab/index.xml" rel="self" type="application/rss+xml"/><item><title>netcup Local Block Storage: attach, format, mount permanently</title><link>https://serverkueche.de/en/tutorials/mount-local-block-storage/</link><pubDate>Tue, 01 Dec 2026 00:00:00 +0000</pubDate><author>feedback@serverkueche.de (Serverküche)</author><guid>https://serverkueche.de/en/tutorials/mount-local-block-storage/</guid><description>Attach extra netcup storage the right way: identify the disk safely, format it, mount it via fstab – with the one switch that otherwise blocks the reboot.</description><content:encoded><![CDATA[<p>Photos, films, documents: sooner or later the system disk is full. Instead of booking the
bigger server right away, at netcup you simply attach a second disk: the Local Block
Storage.</p>
<p>Attaching it is quick. The mistake that costs you later sits in a single line of
<code>/etc/fstab</code>. That line is what this article is mostly about.</p>
<h2 id="what-are-we-building">What are we building?</h2>
<p>An extra disk that is available under <code>/mnt/lbs</code> after every reboot, automatically, and on
which your Docker applications keep their large data: Jellyfin&rsquo;s media library, Immich&rsquo;s
photos, Paperless&rsquo;s archive.</p>
<p>The steps come from a VPS 1000 G12 with 100 GB of Local Block Storage, including an actual
reboot. The extra disk there is just as fast as the system disk, by the way (figures at the
end).</p>
<h2 id="requirements">Requirements</h2>
<ul>
<li>A netcup server with root access, set up as in
<a href="/en/tutorials/first-steps-netcup-vps/">First steps with the netcup VPS</a>.</li>
<li>A <strong>Local Block Storage</strong> booked in the customer area. netcup allows up to five such units
per server.</li>
<li>A current <a href="/en/tutorials/netcup-snapshots-scp/">snapshot</a> of the server. You are about to
run commands that wipe a disk, so you want a way back.</li>
</ul>
<div class="not-prose my-6 overflow-hidden rounded-xl border border-paprika-200 bg-paprika-50 dark:border-paprika-800 dark:bg-paprika-900/20"
     data-track-content data-content-name="Affiliate-Box · /en/tutorials/mount-local-block-storage/" data-content-piece="VPS 1000 G12.5">
  <div class="flex items-center justify-between border-b border-paprika-200 bg-paprika-100 px-4 py-1.5 text-xs font-semibold uppercase tracking-wide text-paprika-700 dark:border-paprika-800 dark:bg-paprika-900/40 dark:text-paprika-300">
    <span>🍳 Recommendation</span>
    <span title="Links marked with * are affiliate links.">Ad</span>
  </div>
  <div class="flex flex-col gap-4 p-4 sm:flex-row sm:items-center sm:justify-between">
    <div>
      <p class="text-lg font-bold text-slate-900 dark:text-white">VPS 1000 G12.5</p>
      <p class="mt-1 text-sm text-slate-600 dark:text-slate-300">4 vCores · 8 GB RAM · 128 GB SSD</p>
      <p class="mt-1 text-sm font-semibold text-paprika-700 dark:text-paprika-400">from €14.50/month</p>
      <p class="mt-2 text-sm text-slate-600 dark:text-slate-400">The server from this article. Block storage can be added to all current VPS and root server plans.</p>
    </div>
    <a href="https://www.netcup.com/en/server/vps/vps-1000-g12.5-iv-24m-eu?ref=44083#vps-1000-g12.5-iv-12m-eu" rel="sponsored noopener" target="_blank"
   data-track-event="Affiliate|netcup: Affiliate-Box|VPS 1000 G12.5 · {page}"
   class="inline-flex shrink-0 items-center justify-center rounded-lg bg-paprika-600 px-5 py-2.5 font-semibold text-white transition-colors hover:bg-paprika-700">
  Go to netcup →
</a>

  </div><div class="px-4 pb-4"><div class="not-prose my-3 rounded-lg border border-herb-500/40 bg-herb-50 px-3 py-2 text-sm text-slate-700 dark:bg-herb-900/20 dark:text-slate-200"
     data-voucher-api="vps-1000" data-voucher-msg-empty="No code is available for this plan right now – use the €5.95 code." data-voucher-msg-limit="No more codes today – use the €5.95 code or try again tomorrow." data-voucher-msg-error="The code couldn&#39;t be fetched right now – use the €5.95 code."
     data-voucher-hint="Empty the cart first – the code adds the server itself.">
  <p class="flex flex-wrap items-center gap-x-2 gap-y-1"><span>💶 <span class="font-semibold">1 month free</span>:</span>
    <button type="button" data-voucher-reveal data-copy-title="Click to copy"
            class="cursor-pointer rounded bg-white px-2 py-0.5 font-mono text-sm font-semibold text-herb-800 hover:ring-2 hover:ring-herb-500/40 dark:bg-slate-800 dark:text-herb-400">Show code</button>
    <button type="button" data-voucher-next hidden
            class="rounded border border-herb-500/40 px-2 py-0.5 text-xs text-herb-800 hover:bg-white dark:text-herb-400 dark:hover:bg-slate-800">another code</button>
  </p><p class="mt-1 text-xs text-slate-500 dark:text-slate-400" data-voucher-hint-target>
    Single use, valid for VPS 1000 G12.5.
    <a href="https://www.netcup.com/en/checkout/cart?ref=44083" rel="sponsored noopener" target="_blank"
       data-track-event="Affiliate|netcup: Gutschein einlösen|VPS 1000 G12.5 · {page}"
       class="font-medium text-herb-800 underline underline-offset-2 hover:text-herb-900 dark:text-herb-400">Redeem in the cart →</a>
  </p><p class="mt-2 flex flex-wrap items-center gap-x-2 gap-y-1 border-t border-herb-500/30 pt-2">
    <span>💶 <span class="font-semibold">€5.95 voucher</span> for new netcup customers:</span>
    <button type="button" data-voucher-code data-track-voucher="36nc17844976032"
            title="Click to copy" class="cursor-pointer rounded bg-white px-2 py-0.5 font-mono text-sm font-semibold text-herb-800 hover:ring-2 hover:ring-herb-500/40 dark:bg-slate-800 dark:text-herb-400">36nc17844976032</button>
    <span class="text-xs text-slate-500 dark:text-slate-400">always valid · not for domains or VPS Lite</span>
  </p><p class="mt-1 text-xs"><a href="/en/netcup-voucher/" class="font-medium text-herb-800 underline underline-offset-2 hover:text-herb-900 dark:text-herb-400">All netcup vouchers →</a></p>
</div></div>
</div>

<h2 id="step-by-step">Step by step</h2>
<h3 id="step-1-identify-the-new-disk-unambiguously">Step 1: Identify the new disk unambiguously</h3>
<p>After booking, the storage shows up in the server as an additional drive. List all drives:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINTS</span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">NAME     SIZE TYPE FSTYPE MOUNTPOINTS
</span></span><span class="line"><span class="cl">sr0     1024M rom
</span></span><span class="line"><span class="cl">vda      256G disk
</span></span><span class="line"><span class="cl">├─vda1     1M part
</span></span><span class="line"><span class="cl">├─vda2   244M part vfat   /boot/efi
</span></span><span class="line"><span class="cl">├─vda3   977M part ext4   /boot
</span></span><span class="line"><span class="cl">└─vda4 254.8G part ext4   /
</span></span><span class="line"><span class="cl">vdb      100G disk</span></span></code></pre></div>
</div>
<p><code>vda</code> is the system disk, recognisable by its partitions and the mount point <code>/</code>. The new
disk is <code>vdb</code>: exactly the booked size, no partitions, no file system.</p>
<div class="not-prose my-6 rounded-lg border-l-4 p-4 border-paprika-400 bg-paprika-50 dark:border-paprika-700 dark:bg-paprika-900/20">
  <p class="mb-1 flex items-center gap-2 font-semibold text-slate-900 dark:text-white">
    <span aria-hidden="true">🔥</span>Never go by the name, always by the size
  </p>
  <div class="prose-kitchen text-sm">The following commands wipe whichever disk you name. Hit the system disk and the server is
broken. So always identify the device by its <strong>size</strong> and its lack of partitions, not by the
expectation that it will surely be called <code>vdb</code>.</div>
</div>
<p>Also check that there really is nothing on it:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">wipefs -n /dev/vdb</span></span></code></pre></div>
</div>
<p>No output means: no partition table, no file system, nothing to lose.</p>
<h3 id="step-2-create-a-partition">Step 2: Create a partition</h3>
<p>One partition across the whole disk, with a GPT table. <code>sfdisk</code> is already installed on
Debian and, unlike interactive tools, can be typed in exactly as shown:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s1">&#39;label: gpt
</span></span></span><span class="line"><span class="cl"><span class="s1">type=linux&#39;</span> <span class="p">|</span> sfdisk /dev/vdb</span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">The partition table has been altered.
</span></span><span class="line"><span class="cl">Calling ioctl() to re-read partition table.
</span></span><span class="line"><span class="cl">Syncing disks.</span></span></code></pre></div>
</div>
<p>Why GPT rather than the older MBR: MBR can address at most 2 TiB. netcup lets you enlarge the
block storage later, and with GPT you will not hit a ceiling.</p>
<h3 id="step-3-create-the-file-system">Step 3: Create the file system</h3>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">mkfs.ext4 -L lbs /dev/vdb1</span></span></code></pre></div>
</div>
<p>The <code>-L lbs</code> gives the file system a name. You do not strictly need it, but it makes the
output of <code>lsblk</code> and <code>blkid</code> readable at a glance later on.</p>
<h3 id="step-4-get-the-5-percent-back">Step 4: Get the 5 percent back</h3>
<p>By default ext4 reserves 5 % of the disk for the root user. On the system disk that makes
sense, because the system stays usable when a program fills the disk. On a pure data disk it is
wasted space:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">tune2fs -m <span class="m">0</span> /dev/vdb1</span></span></code></pre></div>
</div>
<p>At 100 GB that is a good 5 GB:</p>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">before:  /dev/vdb1   98G  2.1M   93G   1% /mnt/lbs
</span></span><span class="line"><span class="cl">after:   /dev/vdb1   98G  2.1M   98G   1% /mnt/lbs</span></span></code></pre></div>
</div>
<p>That <code>df</code> shows 98 rather than 100 in total is down to the file system&rsquo;s own bookkeeping,
mainly the inode table. It is not the units: the disk has exactly 100 GiB
(107,374,182,400 bytes), and <code>df -h</code> counts in GiB as well.</p>
<h3 id="step-5-mount-it">Step 5: Mount it</h3>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">mkdir -p /mnt/lbs
</span></span><span class="line"><span class="cl">mount /dev/vdb1 /mnt/lbs
</span></span><span class="line"><span class="cl">df -h /mnt/lbs</span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">Filesystem      Size  Used Avail Use% Mounted on
</span></span><span class="line"><span class="cl">/dev/vdb1        98G  2.1M   98G   1% /mnt/lbs</span></span></code></pre></div>
</div>
<p>The disk is now usable, but only until the next reboot.</p>
<h3 id="step-6-make-it-permanent--with-nofail">Step 6: Make it permanent – with nofail</h3>
<p>For the disk to come back after every reboot, it belongs in <code>/etc/fstab</code>. First read the
UUID. Device names like <code>/dev/vdb1</code> can change once a second extra disk is added; the UUID
stays.</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">blkid /dev/vdb1</span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">/dev/vdb1: LABEL=&#34;lbs&#34; UUID=&#34;8f849e77-858a-4b48-afaa-5391a2dc81a5&#34; BLOCK_SIZE=&#34;4096&#34; TYPE=&#34;ext4&#34; PARTUUID=&#34;30e5e236-02df-40d2-b580-e342c236e178&#34;</span></span></code></pre></div>
</div>
<p>Make a copy of the fstab first, then append the line with <strong>your</strong> UUID:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">cp /etc/fstab /etc/fstab.before
</span></span><span class="line"><span class="cl"><span class="nb">echo</span> <span class="s1">&#39;UUID=YOUR_UUID  /mnt/lbs  ext4  defaults,nofail  0  2&#39;</span> &gt;&gt; /etc/fstab</span></span></code></pre></div>
</div>
<p>The <code>nofail</code> is the most important part of this article. Without it, systemd treats the disk
as <strong>required</strong> for booting. You can check that without putting the server at risk. Reload
first, then ask:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">systemctl daemon-reload
</span></span><span class="line"><span class="cl">systemctl show mnt-lbs.mount -p RequiredBy -p WantedBy</span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">with nofail:      RequiredBy=                    WantedBy=local-fs.target
</span></span><span class="line"><span class="cl">without nofail:   RequiredBy=local-fs.target     WantedBy=</span></span></code></pre></div>
</div>
<p><code>RequiredBy</code> means: if the disk is missing at boot, the <code>local-fs.target</code> target fails and the
server ends up in emergency mode, with no network and no SSH. Then it is reachable only through the
console in the Server Control Panel. The disk can go missing sooner than you think: after
cancelling the add-on, during maintenance, after moving to another server. With <code>nofail</code> the
server boots anyway, just without <code>/mnt/lbs</code>.</p>
<div class="not-prose my-6 rounded-lg border-l-4 p-4 border-amber-400 bg-amber-50 dark:border-amber-700 dark:bg-amber-900/20">
  <p class="mb-1 flex items-center gap-2 font-semibold text-slate-900 dark:text-white">
    <span aria-hidden="true">⚠️</span>Do not forget daemon-reload
  </p>
  <div class="prose-kitchen text-sm">After every change to the fstab, systemd keeps working with the old version until you run
<code>systemctl daemon-reload</code>. <code>mount</code> reminds you with
<code>your fstab has been modified, but systemd still uses the old version</code>.</div>
</div>
<h3 id="step-7-check-before-you-reboot">Step 7: Check before you reboot</h3>
<p>Otherwise a typo in the fstab only shows up at the next reboot. So check twice: first the
syntax, then whether the line actually mounts.</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">findmnt --verify</span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">/media/cdrom0
</span></span><span class="line"><span class="cl">   [W] cannot detect on-disk filesystem type (No medium found)
</span></span><span class="line"><span class="cl">/media/cdrom1
</span></span><span class="line"><span class="cl">   [W] unreachable source: /dev/sr1: No such file or directory
</span></span><span class="line"><span class="cl">   [W] cannot detect on-disk filesystem type (No such file or directory)
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">0 parse errors, 0 errors, 3 warnings</span></span></code></pre></div>
</div>
<p>The three warnings concern the CD-ROM lines netcup puts into the fstab by default. They were
there before and are harmless. What matters is <strong>0 errors</strong> and no warning under <code>/mnt/lbs</code>.</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">umount /mnt/lbs <span class="o">&amp;&amp;</span> mount -a <span class="o">&amp;&amp;</span> findmnt /mnt/lbs</span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">TARGET   SOURCE    FSTYPE OPTIONS
</span></span><span class="line"><span class="cl">/mnt/lbs /dev/vdb1 ext4   rw,relatime</span></span></code></pre></div>
</div>
<p>If the disk is mounted again after <code>mount -a</code>, the entry is right.</p>
<h3 id="step-8-the-real-reboot">Step 8: The real reboot</h3>
<p>In the end all that counts is whether it is really back after a reboot. Create a test file and
restart:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">echo</span> <span class="nb">test</span> &gt; /mnt/lbs/marker.txt
</span></span><span class="line"><span class="cl">systemctl reboot</span></span></code></pre></div>
</div>
<p>After the reboot:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">findmnt /mnt/lbs<span class="p">;</span> cat /mnt/lbs/marker.txt<span class="p">;</span> systemctl --failed</span></span></code></pre></div>
</div>
<div class="sk-code">
  <span class="sk-code-head">Ausgabe</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-text" data-lang="text"><span class="line"><span class="cl">TARGET   SOURCE    FSTYPE OPTIONS
</span></span><span class="line"><span class="cl">/mnt/lbs /dev/vdb1 ext4   rw,relatime
</span></span><span class="line"><span class="cl">test
</span></span><span class="line"><span class="cl">  UNIT LOAD ACTIVE SUB DESCRIPTION
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl">0 loaded units listed.</span></span></code></pre></div>
</div>
<p>After about 40 seconds the server is reachable again, the disk mounted and the file there.
Docker restarts running containers such as Traefik by itself.</p>
<h3 id="step-9-put-docker-applications-on-it">Step 9: Put Docker applications on it</h3>
<p>The best way to use the disk is to give each application its own subdirectory, which it mounts
as a bind mount:</p>
<div class="sk-code">
  <span class="sk-code-head">Terminal</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">mkdir -p /mnt/lbs/jellyfin/media /mnt/lbs/immich/library</span></span></code></pre></div>
</div>
<p>In the Compose file the large data path then points at the block storage, while the small
configuration stays on the system disk:</p>
<div class="sk-code">
  <span class="sk-code-head">YAML</span>
  <div class="highlight"><pre tabindex="0" class="chroma"><code class="language-yaml" data-lang="yaml"><span class="line"><span class="cl"><span class="w">    </span><span class="nt">volumes</span><span class="p">:</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">./config:/config                  </span><span class="w"> </span><span class="c"># small, system disk</span><span class="w">
</span></span></span><span class="line"><span class="cl"><span class="w">      </span>- <span class="l">/mnt/lbs/jellyfin/media:/media    </span><span class="w"> </span><span class="c"># large, block storage</span></span></span></code></pre></div>
</div>
<p>How this looks for the individual applications is covered under
<a href="/en/tutorials/jellyfin-media-server/">Jellyfin</a> and
<a href="/en/tutorials/self-host-immich-photos/">Immich</a>. Mind the ownership: if an application runs
as user 1000, it needs <code>chown -R 1000:1000</code> on its directory.</p>
<h3 id="how-fast-is-the-extra-disk">How fast is the extra disk?</h3>
<p>According to netcup, the block storage uses the same disk type as the server, so NVMe on NVMe
systems. Measured with <code>fio</code> on our test server, warm-up run discarded, median of three runs:</p>
<table>
	<thead>
			<tr>
					<th>Measurement</th>
					<th>System disk <code>vda</code></th>
					<th>Block storage <code>vdb</code></th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>4K random read</td>
					<td>101,000 IOPS</td>
					<td>101,000 IOPS</td>
			</tr>
			<tr>
					<td>4K random write</td>
					<td>97,900 IOPS</td>
					<td>100,000 IOPS</td>
			</tr>
			<tr>
					<td>1M sequential read</td>
					<td>4,128 MiB/s</td>
					<td>4,129 MiB/s</td>
			</tr>
			<tr>
					<td>1M sequential write</td>
					<td>2,743 MiB/s</td>
					<td>2,842 MiB/s</td>
			</tr>
	</tbody>
</table>
<p>No difference that matters day to day. Something else stands out instead: both disks top out
at exactly 101,000 IOPS and 4,128 MiB/s on reads. We measured the same values on a different
server too. That looks like a fixed ceiling netcup sets per disk, not a limit of the hardware.</p>
<h2 id="when-things-go-wrong">When things go wrong</h2>
<div class="troubleshoot not-prose">
<p><strong>After a reboot the server can no longer be reached over SSH.</strong> Most likely it is stuck in
emergency mode because an fstab line could not be mounted and carries no <code>nofail</code>. Open the
console in the Server Control Panel, log in as root, fix the line in <code>/etc/fstab</code> or comment
it out with <code>#</code>, and reboot. The copy <code>/etc/fstab.before</code> from step 6 helps here.</p>
<p><strong><code>mount</code> reports <code>wrong fs type, bad option, bad superblock on /dev/vdb</code>.</strong> You named the disk
instead of the partition. The file system lives on <code>/dev/vdb1</code>, not on <code>/dev/vdb</code>.</p>
<p><strong><code>df</code> shows clearly less than you booked.</strong> In the <code>Avail</code> column it is usually the 5 %
reserve that is still active (step 4). In <code>Size</code>, about 2 % less is normal: that is the file
system&rsquo;s bookkeeping, and both the booking and the display are in GiB.</p>
<p><strong>An application cannot write to the block storage.</strong> The new file system belongs to root. If
the container runs as a different user, give it its directory with
<code>chown -R 1000:1000 /mnt/lbs/APPLICATION</code>. The number is the user ID from the Compose file.</p>
<p><strong>After enlarging it in the customer area, <code>/mnt/lbs</code> is still the same size.</strong> netcup only
enlarges the drive; you grow the partition and the file system yourself. That works while the
disk is in use, though a snapshot first does no harm. Once <code>lsblk</code> shows the new size for
<code>vdb</code>, first extend the partition to the end, have the kernel re-read it, then grow the file
system: <code>echo ', +' | sfdisk --no-reread -N 1 /dev/vdb</code>, then <code>partx -u /dev/vdb</code> and
<code>resize2fs /dev/vdb1</code>. The message <code>Re-reading the partition table failed</code> from <code>sfdisk</code> is
normal here; that is exactly what <code>partx</code> is for.</p>

</div>
<p class="mt-3 text-sm text-slate-500 dark:text-slate-400">
  Your problem is not listed?
  <a href="/en/errors/" class="font-medium text-paprika-700 hover:underline dark:text-paprika-400">Search all error messages →</a>
</p>

<h2 id="maintenance--backups">Maintenance &amp; backups</h2>
<p><strong>Block storage is not a backup.</strong> It sits in the same data centre and hangs off the same
server; netcup itself calls it less suitable for backups. Whatever lives on it belongs in your
<a href="/en/tutorials/restic-backups/">restic backup</a> just like everything else, precisely because
this is usually where the large, irreplaceable data ends up.</p>
<p><strong>Snapshots have a restriction.</strong> According to netcup, online snapshots are currently not
possible for Local Block Storage, only offline snapshots. So plan a short downtime for a
snapshot.</p>
<p><strong>Shrinking is not possible.</strong> netcup can enlarge block storage later, but not shrink it. Book
on the small side and top up later rather than the other way round.</p>
<p><strong>Keep an eye on the fill level.</strong> Media libraries grow quietly. A <code>df -h /mnt/lbs</code> in the
monthly round or an alert in your <a href="/en/tutorials/monitoring-grafana-prometheus/">Prometheus monitoring</a> at
85 % stops an application from grinding to a halt one night in the middle of an import.</p>
]]></content:encoded></item></channel></rss>