Skip to content

Commit

Permalink
chore: minor configuration updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrarimarco committed Jan 1, 2025
1 parent 4cf0563 commit 451e9a4
Show file tree
Hide file tree
Showing 27 changed files with 627 additions and 480 deletions.
4 changes: 4 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"extends": ["config:best-practices", ":semanticCommits"],
"forkProcessing": "enabled",
"gitAuthor": "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>",
"gitIgnoredAuthors": [
"41898282+github-actions[bot]@users.noreply.github.com",
"github-actions[bot]@users.noreply.github.com"
],
"labels": ["dependencies"],
"packageRules": [
{
Expand Down
2 changes: 1 addition & 1 deletion config/ansible/playbooks/proxmox-vms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Resize: qm disk resize 100 scsi0 8G
# Set boot order: qm set 100 --boot order=scsi0

# Attach and configure a second disk from the rpool-sata pool: qm set 100 -scsi1 rpool-sata:vm-100-disk-0,discard=on,iothread=1,size=100G,ssd=1,aio=io_uring
# Attach and configure a second disk from the rpool-sata pool: qm set 100 -scsi1 rpool-sata:vm-100-disk-0,discard=on,iothread=1,size=113G,ssd=1,aio=io_uring

# Enable UEFI and create a UEFI disk volume: qm set 100 --bios ovmf

Expand Down
5 changes: 5 additions & 0 deletions docs-src/architecture/references.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@

- [NixOS flakes tutorial](https://www.tweag.io/blog/2020-07-31-nixos-flakes/)
- [Integration testing with NixOS in GitHub Actions](https://jnsgr.uk/2024/02/nixos-vms-in-github-actions/)

## ZFS

- [ZFS: You should use mirror vdevs, not RAIDZ](https://jrs-s.net/2015/02/06/zfs-you-should-use-mirror-vdevs-not-raidz/)
- [Choosing the right ZFS pool layout](https://klarasystems.com/articles/choosing-the-right-zfs-pool-layout/)
14 changes: 14 additions & 0 deletions docs-src/architecture/storage-configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Storage configuration

## Storage planning

## ZFS topology

ZFS pool of mirrored vdevs.

## Storage access

For containers: bind mount ZFS datasets to LXC containers that need them.

For VMs: bind mount ZFS datasets to a LXC container running NFS and Samba
servers, then mount shares in VMs that need them.
32 changes: 0 additions & 32 deletions docs-src/guides/expand-partition-debian.md

This file was deleted.

32 changes: 31 additions & 1 deletion docs-src/guides/useful-proxmox-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,34 @@ Notes:

## Expand disk, filesystem, and partition

See: <https://pve.proxmox.com/wiki/Resize_disks>.
On the Proxmox host:

1. Resize the partition using the GUI (VM -> Hardware -> Select disk -> Disk
action -> Resize disk). To get the max capacity, see the corresponding storage
pool page in the Proxmox admin GUI.

On the VM:

1. Get the device ID: `sudo dmesg | grep capacity`

1. Resize the partition:

```shell
sudo parted /dev/<DEVICE_ID>

# Get the partition ID
print

# Resize the partition
resizepart <PARTITION_ID> 100%

quit
```

1. Grow the filesystem:

```shell
sudo resize2fs /dev/<DEVICE_ID><PARTITION_ID>
```

For more information, see <https://pve.proxmox.com/wiki/Resize_disks>.
42 changes: 21 additions & 21 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,27 @@









<li class="md-nav__item">
<a href="/home-lab/architecture/storage-configuration/" class="md-nav__link">


<span class="md-ellipsis">
Storage configuration
</span>


</a>
</li>




</ul>
</nav>

Expand Down Expand Up @@ -491,27 +512,6 @@



<li class="md-nav__item">
<a href="/home-lab/guides/expand-partition-debian/" class="md-nav__link">


<span class="md-ellipsis">
Expand a partition and a filesystem on Debian
</span>


</a>
</li>










<li class="md-nav__item">
<a href="/home-lab/guides/linux-disk-setup/" class="md-nav__link">

Expand Down
42 changes: 21 additions & 21 deletions docs/architecture/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,27 @@









<li class="md-nav__item">
<a href="storage-configuration/" class="md-nav__link">


<span class="md-ellipsis">
Storage configuration
</span>


</a>
</li>




</ul>
</nav>

Expand Down Expand Up @@ -553,27 +574,6 @@



<li class="md-nav__item">
<a href="../guides/expand-partition-debian/" class="md-nav__link">


<span class="md-ellipsis">
Expand a partition and a filesystem on Debian
</span>


</a>
</li>










<li class="md-nav__item">
<a href="../guides/linux-disk-setup/" class="md-nav__link">

Expand Down
42 changes: 21 additions & 21 deletions docs/architecture/network-configuration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,27 @@









<li class="md-nav__item">
<a href="../storage-configuration/" class="md-nav__link">


<span class="md-ellipsis">
Storage configuration
</span>


</a>
</li>




</ul>
</nav>

Expand Down Expand Up @@ -604,27 +625,6 @@



<li class="md-nav__item">
<a href="../../guides/expand-partition-debian/" class="md-nav__link">


<span class="md-ellipsis">
Expand a partition and a filesystem on Debian
</span>


</a>
</li>










<li class="md-nav__item">
<a href="../../guides/linux-disk-setup/" class="md-nav__link">

Expand Down
67 changes: 45 additions & 22 deletions docs/architecture/references/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link rel="prev" href="../network-configuration/">


<link rel="next" href="../../guides/capture-proxmox-vm-network-traffic/">
<link rel="next" href="../storage-configuration/">


<link rel="icon" href="../../assets/images/favicon.png">
Expand Down Expand Up @@ -377,6 +377,15 @@
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#zfs" class="md-nav__link">
<span class="md-ellipsis">
ZFS
</span>
</a>

</li>

</ul>
Expand All @@ -388,6 +397,27 @@









<li class="md-nav__item">
<a href="../storage-configuration/" class="md-nav__link">


<span class="md-ellipsis">
Storage configuration
</span>


</a>
</li>




</ul>
</nav>

Expand Down Expand Up @@ -562,27 +592,6 @@



<li class="md-nav__item">
<a href="../../guides/expand-partition-debian/" class="md-nav__link">


<span class="md-ellipsis">
Expand a partition and a filesystem on Debian
</span>


</a>
</li>










<li class="md-nav__item">
<a href="../../guides/linux-disk-setup/" class="md-nav__link">

Expand Down Expand Up @@ -816,6 +825,15 @@
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#zfs" class="md-nav__link">
<span class="md-ellipsis">
ZFS
</span>
</a>

</li>

</ul>
Expand Down Expand Up @@ -846,6 +864,11 @@ <h2 id="nixos">NixOS</h2>
<li><a href="https://www.tweag.io/blog/2020-07-31-nixos-flakes/">NixOS flakes tutorial</a></li>
<li><a href="https://jnsgr.uk/2024/02/nixos-vms-in-github-actions/">Integration testing with NixOS in GitHub Actions</a></li>
</ul>
<h2 id="zfs">ZFS</h2>
<ul>
<li><a href="https://jrs-s.net/2015/02/06/zfs-you-should-use-mirror-vdevs-not-raidz/">ZFS: You should use mirror vdevs, not RAIDZ</a></li>
<li><a href="https://klarasystems.com/articles/choosing-the-right-zfs-pool-layout/">Choosing the right ZFS pool layout</a></li>
</ul>



Expand Down
Loading

0 comments on commit 451e9a4

Please sign in to comment.